PWMPAL help
davidss
Posts: 5
I have tried everything I can think of to get this PWMpal to work with my BS2p24 and it just won't respond. I send it the following program:
SEROUT 0, 6, [noparse][[/noparse]"!PMWGS"]
SERIN 0, 6, [noparse][[/noparse]status]
DEBUG status
and it never gets past the SERIN. Should I be setting all the pins to input mode before this? Does anyone have any clues not mentioned in the manual? I searched this forum and on google and I couldn't find any new ideas.
Thanks for your help.
-DAvid
SEROUT 0, 6, [noparse][[/noparse]"!PMWGS"]
SERIN 0, 6, [noparse][[/noparse]status]
DEBUG status
and it never gets past the SERIN. Should I be setting all the pins to input mode before this? Does anyone have any clues not mentioned in the manual? I searched this forum and on google and I couldn't find any new ideas.
Thanks for your help.
-DAvid
Comments
Better yet, add this to the top of your programs that require serial routines:
Then your code becomes...
... and will work with any BS2 module.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
I have to go try that right now! I just wish I had keys to the lab.
I'll post back my progress later.
Thanks again.
-David
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA