Alanis
Joined: 28 Sep 2007 Posts: 13
|
Connecting MAX232 pcb to Pickit 1 demo board |
Posted: Sat Dec 08, 2007 4:17 am |
|
|
Hello!
I made some pcb with max232 that i want to use as connection between pickit1 and PC, so i can output processed data. I dont know what is wrong but i can not get any output on the PC. I did get, just once time, some garbage but am not sure if this is from the pickit starter kit demo board.
Please look at attach where you can find the connections to pickit and max232 pcb. MAX232 PCB is connected directly to starter kit.
This is the code that am using on hyperterminal:
Hyperterminal is set on 9600 b/s.
Code: | #include <12F675.h>
#fuses HS,NOWDT,NOPROTECT, NOMCLR, BROWNOUT
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_A4, rcv=PIN_A3)
void init()
{
setup_comparator( NC_NC_NC_NC );
setup_adc( ADC_OFF );
}
main()
{
init();
while (1)
{
printf("\r\n Test");
delay_ms(800);
}
} |
|
|