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 CCS Technical Support

ICD programming PIC16F874

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Vovachess



Joined: 15 Mar 2004
Posts: 33
Location: Swiss

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

ICD programming PIC16F874
PostPosted: Fri Mar 10, 2006 3:54 am     Reply with quote

Hello.
I have problem with ICD-U40 programming of PIC16F874-
I have the simpliest programm:

#include <16F874A.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP

#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_A3, rcv=PIN_A2)

main() {

while (1) {

output_high(PIN_D0);
output_high(PIN_D1);
delay_ms(1000);

output_low(PIN_D0);
output_low(PIN_D1);

delay_ms(1000);
}
}

I can programm MC with ICD but software goesnot run. Even occilator diesnot run. I looks like problem with fuses or LVP.....
What could it be?
Thanks
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Fri Mar 10, 2006 7:16 am     Reply with quote

Quote:

I have problem with ICD-U40 programming of PIC16F874-


(1) Your program should run.
(2) Did you select PIC16F874 or PIC16F874A in your header ?
(3) Does the Reset pin keep close to 5V while running ?
(4) Did the hardware run properly once at least ? If not re-chek the OSC capacitors.
(5) Regarding the FUSES i will try
#fuses XT,NOWDT,NOPROTECT,NOLVP


Humberto
Guest








PostPosted: Fri Mar 10, 2006 8:43 am     Reply with quote

.
(2) Did you select PIC16F874 or PIC16F874A in your header ?
I use PIC16F874A header

(3) Does the Reset pin keep close to 5V while running ?
Yes

(4) Did the hardware run properly once at least ? If not re-chek the OSC capacitors.
Yes

(5) Regarding the FUSES i will try
#fuses XT,NOWDT,NOPROTECT,NOLVP
Tried....
It does not run Crying or Very sad
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion 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