inbetween to debug.
I have the 32028 connected RX to PIC TX and TX to PIC RX. No resisters.
Hyperterminal is also connected to the PIC at the same time via my laptop's USB-->serial converter cable.
I'm sending a number 0x87 from the 32028 to the PIC and asking the PIC to send it back. The number gets as far as coming back to HT, since HT prints it over and over. Since the RX and TX lines are the same on both HT and 32028, I would think they'd print the same thing.
But they don't. The 320238 prints "FE" over and over every newline.
Obviously an operator error, but this operator is clueless.
Here is the 32028 code:
func main()var ch,num;setbaud(6);gfx_Cls();txt_Set(FONT_SIZE, FONT2);print ("Serial I/O Test\n");// looprepeatch := serin();num := 0x87;serout(num);pause(990);if (ch != -1)print("\n",[HEX2]ch );pause(990); // value in millisecendifforeverendfunc
int ch;void main(){delay_ms(1000);while(1){if (kbhit()){ch = getc();delay_ms(1040);printf("\n %x",ch); // send msg}else{delay_ms(300);printf("\n NO"); // send msgdelay_ms(300);}}}
I get garbage on the 32028, but "HELLO" on the Hyperterminal.
Thanks!
Nora
Comment