Emic Problem
Humanoido
Posts: 5,770
The Emic is on a Basic Stamp 2 HomeWork board. The wiring is checked and appears good. The battery is new and tested good. Two DIP switches are in the OFF or down position. The program is loaded in and it works fine. Then the battery is disconnected and reconnected and it says, "Basic stamp primary computer working." It misses the first two sentences. At this time, if reset is pressed, it works fine. I would like it to say all three sentences at power on. Any ideas?
BS2
3K
Comments
I'm happy it works - I wonder if there are any timing rules/formula to follow when using serial to communicate from board to board... thanks again!
a byte 0x55 (or 'U') from the EPIC. You'd probably be best looking for it near the beginning of your program
rather than a PAUSE xxxx.
[noparse][[/noparse]Edit: You could use the Wait_OK routine from the sample code in the manual.]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rusty-
--
Rusty Haddock <=> AE5AE
**Out yonder in the Van Alstyne (TX) Metropolitan Area**
Microsoft is to software what McDonalds is to gourmet cooking
Post Edited (Fe2o3Fish) : 10/13/2008 5:47:26 PM GMT
Post Edited (humanoido) : 10/14/2008 8:36:44 AM GMT
The question is how to send a control-P when the emic is in text mode? Obviously it cannot be sent as text. In the Editor, typing a control-P brings up the print screen. I checked the stamp reference and tried sending hex which is a $10 serially on a code line by itself and that didn't work (system hangs).
The manual on page 10 shows a list of allowable ascii characters, and control-P shows as ^P. But sending that as text is not working. My guess is the Emic text mode won't read the hex. Any ideas for a workaround?
You might try:
SEROUT Tx, Baud, [noparse][[/noparse]16]
but I'm not sure why $10 didn't work unless that, as you said, is on a source code line
by itself -- that's just not legit PBASIC.
"^P" is just a textual representation of Control-P -- a byte containing the value 16 (decimal) --
and not a string sent on the serial line to the EMIC.
BTW, you really never want to put a raw control character into a source code file.
Pressing Control-P inside the editor is a command to the editor.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rusty-
--
Rusty Haddock <=> AE5AE
**Out yonder in the Van Alstyne (TX) Metropolitan Area**
Microsoft is to software what McDonalds is to gourmet cooking
http://forums.parallax.com/forums/default.aspx?f=5&m=300923
My sincere thanks to everyone who contributed to the success of this project. humanoido