View previous topic :: View next topic |
Author |
Message |
Vovachess
Joined: 15 Mar 2004 Posts: 33 Location: Swiss
|
ICD programming PIC16F874 |
Posted: Fri Mar 10, 2006 3:54 am |
|
|
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
|
|
Posted: Fri Mar 10, 2006 7:16 am |
|
|
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
|
|
Posted: Fri Mar 10, 2006 8:43 am |
|
|
.
(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 |
|
|
|