Hi Ben
I need to use the dspic internal pull up resistors on E0 E1 E2
can you advise me of the C code to achieve this
Best regards
David
ECIO40P16 PULLUP RESISTORS
-
- Posts: 140
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 7:35 pm
- Been thanked: 18 times
-
- Matrix Staff
- Posts: 1465
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 204 times
- Been thanked: 347 times
Re: ECIO40P16 PULLUP RESISTORS
Looking at the datasheet for the dsPIC33EP256MU806, it looks like the CNPUE and CNPDE control the pull-ups and pull-downs for that chip.
To enable only the pull-ups on E0-2, I think the C code is:
To enable only the pull-ups on E0-2, I think the C code is:
Code: Select all
CNPUE = 0x07;
CNPDE = 0x00;
-
- Posts: 140
- Joined: Wed Dec 02, 2020 7:35 pm
- Been thanked: 18 times