View previous topic :: View next topic |
Author |
Message |
daviz
Joined: 19 Nov 2004 Posts: 11
|
Cant program PIC18F2331 and 4331!!! |
Posted: Wed Dec 22, 2004 2:23 am |
|
|
Hi,
I have just upgraded the C complier software.
I am new, can someone help me in getting my PIC18F2331 to work?
I have CCS C complier + ICD-U40. I am sure that I wire the programming pins correctly.
But I could not program the chip.
I tried to press "Test Target", it shows
"Unknown PIC18 device, ID: 0101 if there is a valid id, then make sure algorithm inside is set correct."
what should i do now?
Thanks alot
Regards,
Daviz |
|
|
Guest Guest
|
|
Posted: Tue May 03, 2005 11:57 am |
|
|
There is additional pin #7 (AVdd) on this device. You should tie this pin to +5v in order to program correctly your device. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue May 03, 2005 12:21 pm |
|
|
It's not just the AVdd pin which must go to +5v. There is also an AVss
pin which must be connected to ground.
Go into MPLAB vs. 7.10 Help, for the ICD2. Buried deep within the
help file is a section on limitations:
Quote: | PIC18FXX20/XX31 Limitations
You must connect the AVDD and AVSS pins for the device to program. |
Yes, this is for ICD2, but this is a hardware limitation of the PIC,
and thus it will also apply to the CCS ICD. |
|
|
|