View previous topic :: View next topic |
Author |
Message |
Torello
Joined: 29 Sep 2006 Posts: 120
|
Peripheral Pin Select |
Posted: Mon Jun 30, 2014 2:37 pm |
|
|
Hi,
Maybe it's late, but I don't get it. One can assign all kinds of IO to
"RPn or RPIn" by like 40+ registers on a Pic24FJ128GC010. Clear.
But ?? how does the RPn or RPIn relate to the actual pins on my pin diagram? They are called in the good old format RA0 up to whatever.
I'm flabbergasted. There must be a simple answer.
Has anyone also a simple code example?
Regards,
Edwin. _________________ Regards, Edwin. PCWHD v5.114 |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19482
|
|
Posted: Mon Jun 30, 2014 2:41 pm |
|
|
A search here would have found some examples.
You don't use the the RP names at all.
In CCS, you use the function name, and the pin name.
Look at ex_pinselect.c, and ex_pinselect2.c |
|
|
Torello
Joined: 29 Sep 2006 Posts: 120
|
|
Posted: Mon Jun 30, 2014 2:43 pm |
|
|
Yep... the COMPLETE pin function descriptions. Not listed in the bookmarks and not linked or mentioned in the PPS section. Thank you Microchip
Still, if anyone has an example for me... _________________ Regards, Edwin. PCWHD v5.114 |
|
|
Torello
Joined: 29 Sep 2006 Posts: 120
|
|
Posted: Mon Jun 30, 2014 2:48 pm |
|
|
Thanks Ttelmah, I'll take a look on mentioned examples.
Btw. I did do several searches on "Peripheral Pin Select". Did not found the obvious you did. _________________ Regards, Edwin. PCWHD v5.114 |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19482
|
|
Posted: Tue Jul 01, 2014 1:03 am |
|
|
If you'd searched on the CCS function name (PIN_SELECT), you'd find lots of threads with the function being used.
Sometimes it is the obvious.
The #PIN_SELECT entry in the manual, also lists most of the function names used.
The problem was trying to be a bit too specific, and including 'peripheral' in the search.... |
|
|
|