CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Code not running on PIC16F88 when pic kit 3 is disconnected

 
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go
View previous topic :: View next topic  
Author Message
AJEFenConsultancy



Joined: 09 Sep 2010
Posts: 11
Location: Ely, UK

View user's profile Send private message Visit poster's website

Code not running on PIC16F88 when pic kit 3 is disconnected
PostPosted: Thu Sep 09, 2010 4:10 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group