USART isn't working because you're not using it.
Compare the commands you have used against the PICBasic manual to discover what you have doen.
USART isn't working because you're not using it.
Compare the commands you have used against the PICBasic manual to discover what you have doen.
thank u very much for ur kind concerns madam.i got ur point but this is how the serial i/o r define in manual(serin pin,mode[qualifier][item])Originally Posted by Melanie
my syntex is
serin portc.7,t9600,[0],{bo}
wherin b0 is a variable wher byte vl b stored after the start bit(0) detected on rc7 pin.kindly reply what is the mistake.
SERIN or SEROUT does not use the USART.
Apart from that, you detect Data comming in at the start of your code then WAIT TWO SECONDS before you try to grab it. It's long gone and history by the time you even get to the SERIN command.
Bookmarks