AJEFenConsultancy
Joined: 09 Sep 2010 Posts: 11 Location: Ely, UK
|
Code not running on PIC16F88 when pic kit 3 is disconnected |
Posted: Thu Sep 09, 2010 4:10 am |
|
|
Hi,
I have a project where I have a PIC16F88 to communicate with a PC via RS232, and control a relay, and read an ADC. When I have the PIC kit 3 interface connected to my board and MPLAB is communicating with the PIC my code works fine. As soon as I disconnect the PIC kit 3 from my board, and reset the power the code stops running.
I have a 1k resistor pulling MCLR to 5V, and a 0.1uF capacitor from MCLR to Ground.
I'm using the internal oscillator at 8MHz. My fuse settings are:
Code: |
#fuses INTRC,NOWDT,PUT,NOPROTECT,NOBROWNOUT,NOLVP,NOCPD,NOWRT,MCLR
#device ADC=10
#use delay(clock=8000000)
#use rs232(baud=2400,bits=8,parity=N,xmit=PIN_B5,rcv=PIN_B2,stream=PC,UART1)
|
Can someone shed some light on my problem for me please? _________________ Kind regards
Andrew Ellis |
|