PSC Issue
James Anderson
Posts: 52
I bought a psc a few moths ago and never really used it for much. Now i ran a program to tell me the version # but i Dont get any thing. The Red light is on and ive checked all connections. any Ideas?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.startrek.com
www.starwars.com
www.google.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.startrek.com
www.starwars.com
www.google.com
Comments
Care to provide the program, so we can take a look at it?
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
'{$PBASIC 2.5}
Sdat PIN 15
Baud CON 396
buff VAR Byte(3)
FindPSC:
DEBUG "finding PSC" , CR
SEROUT Sdat, Baud+$8000, [noparse][[/noparse]"!SCVER?",CR]
DEBUG "PSC ver: ", buff(0) , buff(1) , buff(2),CR
STOP
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There once was a lady named Bright
who traveled much faster than light
She departed one day in a relative way
and Returned on the Previous Night
Cheers,
Wannabe Ub3r Geek
·· That may be your problem right there.· That program never receives the version information back from the PSC.· It just displays an empty array.· Please consult the documentation for the full code.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There once was a lady named Bright
who traveled much faster than light
She departed one day in a relative way
and Returned on the Previous Night
Cheers,
Wannabe Ub3r Geek
Can you please add the correct code so we can all see what you did to change it.
Thanks
Joe
In the listed code:
DEBUG "finding PSC" , CR
SEROUT Sdat, Baud+$8000, [noparse][[/noparse]"!SCVER?",CR]
'Add SERIN here (see below)
DEBUG "PSC ver: ", buff(0) , buff(1) , buff(2),CR
no SERIN was being done to fetch the version number to fill "buff", so the DEBUG dsiplay was listing an empty array.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
FindPSC:
DEBUG "finding PSC" , CR
SEROUT Sdat, Baud+$8000, [noparse][[/noparse]"!SCVER?",CR]
SERIN Sdat, Baud, 500, FindPSC , [noparse][[/noparse]STR buff\3]
DEBUG "PSC version: ", buff(0) , buff(1) , buff(2),CR
STOP
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There once was a lady named Bright
who traveled much faster than light
She departed one day in a relative way
and Returned on the Previous Night
Cheers,
Wannabe Ub3r Geek
I am using the BS2px24 chip and I can't seem to find the correct baud setting.
Anyone know what to use for this chip??
Thanks
Joe
(see code posted in Basic Stamps forum thread)
All baud parameters are also listed in the help file of the editor, in table format.
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com