ECIO40P16 PULLUP RESISTORS

For general Flowcode discussion that does not belong in the other sections.
Post Reply
DAVIDJOINER
Posts: 140
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

ECIO40P16 PULLUP RESISTORS

Post by DAVIDJOINER »

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

Steve-Matrix
Matrix Staff
Posts: 1279
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 170 times
Been thanked: 287 times

Re: ECIO40P16 PULLUP RESISTORS

Post by Steve-Matrix »

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:

Code: Select all

CNPUE = 0x07;
CNPDE = 0x00;

DAVIDJOINER
Posts: 140
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

Re: ECIO40P16 PULLUP RESISTORS

Post by DAVIDJOINER »

Steve

Many thanks using CNPU works fine


David

Post Reply