' using pic16f84 and 4Mhz
`~~~~~~~~~~~~~~~~~~~~~~~~~```
INCLUDE "modedefs.bas"
w0 var word[2]
b0 var w0.byte0
b1 var w0.byte1
DEFINE OSC 4
pause 1000
start:
SerOut PORTA.3,t2400,["input a number",13,11]
serin PORTA.2,t2400,b0,b1
pause 1000
SerOut PORTA.3,t2400,[" the number are",w0,13,11]
where is my mistake?
i try to input a 2 number example '56'
the output only show '5' the first number that i input
what should i do to correct it
........
Bookmarks