david90
Advanced Member level 1

Code:
#elif defined(__PCH__)
#include <18F458.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=8000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7) // Jumpers: 8 to 11, 7 to 12
#endif
#byte port_b=6
void main() {
printf("HiThere");
}
I get garbage output in hyperterminal. The baud rate was set to 9600, 8 bits, flow control non and no parity.
Is there anything wrong with my code? The c code above is for PIC C compiler/CCS C