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

Problem Pic 18f4431 and ICD-U40

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



Joined: 28 Aug 2007
Posts: 99
Location: New Zealand

View user's profile Send private message

Problem Pic 18f4431 and ICD-U40
PostPosted: Tue Mar 18, 2008 1:10 am     Reply with quote

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







PostPosted: Wed Mar 19, 2008 6:31 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Mar 19, 2008 7:47 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Mar 19, 2008 9:17 pm     Reply with quote

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.
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