View previous topic :: View next topic |
Author |
Message |
umka
Joined: 28 Aug 2007 Posts: 99 Location: New Zealand
|
Problem Pic 18f4431 and ICD-U40 |
Posted: Tue Mar 18, 2008 1:10 am |
|
|
I just bought a ICD-U40 and it works not a problem with the PIC16f877a setup i have but when connected to a PIC18f4431 is comes up that the addresses are empty.
here is my code i think that might be the problem
Code: | #include <18f4431.h>
#device icd=true
#fuses xt,nowdt,put,nolvp,noprotect
#use delay(clock=4000000)
void main()
{
while(true)
{
while ( input(pin_d0) == 1 )
{
output_high(pin_d3);
}
while ( input(pin_d1) ==1 )
{
output_high(pin_d2);
}
output_low(pin_d3);
output_low(pin_d2);
}
} |
I am using a 4MHz ceramic resonator as i have had no luck getting it working with crystal ones.
I have the IDE v4 and PCB,PCM,PCH v4 |
|
|
Guest_7068 Guest
|
|
Posted: Wed Mar 19, 2008 6:31 pm |
|
|
The ICD-U40 does support the 18F4431 chip, so check all your hardware connections. Make sure that the VDD and AVDD pins are connected to 5V and the VSS and VSS pins are connected to GND. |
|
|
umka
Joined: 28 Aug 2007 Posts: 99 Location: New Zealand
|
|
Posted: Wed Mar 19, 2008 7:47 pm |
|
|
that is very annoying. i didn't have anything going to AVDD. what is AVDD
works not a problem now. thanks |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Mar 19, 2008 9:17 pm |
|
|
In the MPLAB help file for the ICD2, in this section:
--Troubleshooting
---Limitations
----PIC18FXXXX Limitations
-----PIC18F2431/4431 Limitations
It says:
Quote: |
You must connect the AVDD and AVSS pins for the device to program. |
|
|
|
|