View previous topic :: View next topic |
Author |
Message |
Bill Legge
Joined: 07 Sep 2010 Posts: 24 Location: West Australia
|
PIC24 and PCD |
Posted: Wed Oct 27, 2010 10:01 pm |
|
|
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
|
|
Posted: Wed Oct 27, 2010 11:04 pm |
|
|
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
|
PCD and pin allocation |
Posted: Thu Oct 28, 2010 2:56 am |
|
|
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
|
|
Posted: Thu Oct 28, 2010 9:10 am |
|
|
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. |
|
|
|