|
Oh, man, and it's April 16 already. You're lucky you have an Atom, with its single-stepping debugger.
Get the docs for the EMIC, and see what you have to send it to make it say anything.
Then write a very simple program that makes the EMIC say "Hello". Get that working. This will debug and verify your hardware, as well as how to talk to the EMIC. I THINK it will support the 'TTL' rs-232 that the Atom puts out.
Worst case, you can do a brute-force version of the program:
Main: GOSUB GetTemperature ' Into Temperature variable. GOSUB ConvertTemp ' Temperature into three variables -- One, Two, Three GOSUB SayHeader' ' Tells the EMIC to say "The temperature is" ON One GOSUB SendOne, SendTwo, SendThree, SendFour, SendFive, SendSix ON Two GOSUB SendOne, SendTwo, SendThree, SendFour, SendFive, SendSix ON Three GOSUB SendOne, SendTwo, SendThree, SendFour, SendFive, SendSix
PAUSE 5000 ' Wait five seconds GOTO MAIN ' and do it again. SayHeader: SEROUT EmicPin, EmicBaud, ["Say The Temperature is", cr] RETURN
SendOne: SEROUT EmicPin, EmicBaud, ["ONE", cr] RETURN
SendTwo: SEROUT EmicPin, EmicBaud, ["Two", cr] RETURN
|