View previous topic :: View next topic |
Author |
Message |
tems
Joined: 26 Nov 2008 Posts: 8
|
pin_select again |
Posted: Mon Jan 16, 2023 9:21 am |
|
|
If the pic is setup for dynamically changing the PPS and you set pin_select("U1RX", PIN_B12, TRUE, FALSE); for instance. I want to make this pin a digital pin again. How do you undo this dynamically?
any help would be appreciated |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9215 Location: Greensville,Ontario
|
|
Posted: Mon Jan 16, 2023 9:30 am |
|
|
Which PIC ?
I was under the impression 1st gen PPS were selected once, not 'dynamic'...
edit...
found a paper on PPS by microchip....
OK ,seems as long as you do NOT 'lock' the PPS 'control register lock', you CAN 'dynamically' ( change in run time ), the pins.
Hopefully there's a few 'barriers' to prevent coding errors from changing PPS for you !
Last edited by temtronic on Mon Jan 16, 2023 9:56 am; edited 1 time in total |
|
|
gaugeguy
Joined: 05 Apr 2011 Posts: 303
|
|
Posted: Mon Jan 16, 2023 9:31 am |
|
|
This depends greatly on which processor is being used, but "NULL" should be the output function for standard digital.
The output function list is in the processor header file. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19477
|
|
|
|