ITP
Advanced Member level 4
dspic fun
Hi all,
How can I interface Four keys to PortB of dsPIC30F2020 Micro.
I have some problem in configuring the port. My code is as follows.
ADPCFG = 0xffff; // all PORTB = Digital
TRISB = 0xffff; // port B input
CNEN1 = 0x00ff;
CNPU1=0x00ff;
I this I am not able to enable pullups on this port.
Please help me.
Regards
Itp
Hi all,
How can I interface Four keys to PortB of dsPIC30F2020 Micro.
I have some problem in configuring the port. My code is as follows.
ADPCFG = 0xffff; // all PORTB = Digital
TRISB = 0xffff; // port B input
CNEN1 = 0x00ff;
CNPU1=0x00ff;
I this I am not able to enable pullups on this port.
Please help me.
Regards
Itp