Aug 13, 2013 #1 P.Copper Member level 5 Joined Mar 18, 2013 Messages 82 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 1,807 Greetings, I want to set two port pins for analog inputs for a 12bit ADC in dsPIC30F4013. i know that i have to use the TRIS and ADPCFG registers to do that. I'm not familiar with C language. in assembly i know how to set it. help would be appreciated.
Greetings, I want to set two port pins for analog inputs for a 12bit ADC in dsPIC30F4013. i know that i have to use the TRIS and ADPCFG registers to do that. I'm not familiar with C language. in assembly i know how to set it. help would be appreciated.
Aug 13, 2013 #2 A amayilsamy Advanced Member level 1 Joined Feb 5, 2013 Messages 420 Helped 38 Reputation 76 Reaction score 34 Trophy points 1,308 Location Chennai,India Activity points 3,370 This link having ADC example code. https://www.mikroe.com/chapters/view/55/chapter-7-a-d-converter/#ch7.1 I hope its helps you.
This link having ADC example code. https://www.mikroe.com/chapters/view/55/chapter-7-a-d-converter/#ch7.1 I hope its helps you.