Code:
HELLO EVERYONES AGAIN LOL, IM TRYING TO SEND DEC NUMBERS FROM PC TO PIC BUT I DONNO HOW TO WHY WHEN I SEND EX: 15 IT STORES $60 IN EEPROM OR DEC 20 IT STOR $08 . AND IT STUCKS
Mus.me,
Serin2 SI,N2400,[B0] is wrong. For 2400 bauds use : Serin2 SI,396,[B0]. The same apply for SEROUT2.
Do you use hyperterminal for RS232 com with the pic?
...... I SEND 5 TIMES OR MORE THEN IT RECEIVE THEM 1 TIME ....????????
WRITE 5,B0 'SAVE NUMBERS IN EEPROM
You are writing "5 TIMES OR MORE" in the same location, so at the end you will see only the last byte Txed.
Al.
Last edited by aratti; - 30th November 2009 at 00:31.
All progress began with an idea
Bookmarks