Page 1 of 1

ECIO40P16 PULLUP RESISTORS

Posted: Thu Aug 19, 2021 8:01 am
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

Re: ECIO40P16 PULLUP RESISTORS

Posted: Thu Aug 19, 2021 10:11 am
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;

Re: ECIO40P16 PULLUP RESISTORS

Posted: Thu Aug 19, 2021 4:52 pm
by DAVIDJOINER
Steve

Many thanks using CNPU works fine


David