Re: Dual USART, Second USART sends but not receives, PIC18F24K22
also, char2 we cant see how it was declared but if its a byte then it can only receive a single hex digit
it may never be $13 it may only be 0 to F
$13 sent as serial hex is ascii 0x31,0x33 ie two chrs
you need to be sure what you actually sending
I'd try this if hex is whats sent
hserin2 100, main, [hex2 char2]
hserout2 ["input was", hex char2]
if char2 = $13 then
Last edited by richard; - 12th January 2018 at 13:13.
Warning I'm not a teacher
Bookmarks