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

PIC24 and PCD

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



Joined: 07 Sep 2010
Posts: 24
Location: West Australia

View user's profile Send private message

PIC24 and PCD
PostPosted: Wed Oct 27, 2010 10:01 pm     Reply with quote

I'm missing something in the Microchip documentation.

Take, for example, the chip PIC24FJ128GA010 (on the Explorer16 board) and try to find what pins are used for A/D input (AN0,AN1,AN2...)

I've had a good search through:
1. PIC24F family manual.
2. The PICFJ128GA010 manual.

Can't find the words that associate AN0,AN1.. with PORTB?

Sorry if this is a bit basic but I can't find the document that associates ports and pins with functions?

In the PIC18 series documentation - one simply looks at the register maps.

Regards Bill Legge
_________________
Denmark in West Australia
'Where the forest meets the sea'
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Wed Oct 27, 2010 11:04 pm     Reply with quote

Table 1-2 in the family data is representing the assignment of pin functions.
Bill Legge



Joined: 07 Sep 2010
Posts: 24
Location: West Australia

View user's profile Send private message

PCD and pin allocation
PostPosted: Thu Oct 28, 2010 2:56 am     Reply with quote

Thanks for that. I can see that by matching up the physical pin numbers the is a correspondence between RB0 and AN0 etc.

I assumed that there would be a table that was indexed on the port numbers:

RB0 = AN0
RB1 = AN1
..and so on.

So that all the functions of RB0 would be listed . I guess they have not done this because of the flexibility of the peripheral pins in the PIC24 chips?

Regards Bill legge
_________________
Denmark in West Australia
'Where the forest meets the sea'
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Thu Oct 28, 2010 9:10 am     Reply with quote

Quote:
I guess they have not done this because of the flexibility of the peripheral pins in the PIC24 chips?


I think there's a different philosophy with PIC24. The I/Os are not longer understood as digital ports A,B,... with auxilary functions. Rather digital ports are one of many available functions. But the table representation in the datasheet isn't readable very well. It's even more complicated with those PICs that have a software configurable pin mapping, that's mainly based on RP pin numbers.
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