jayanth.devarayanadurga
Banned
- Joined
- Dec 4, 2012
- Messages
- 4,280
- Helped
- 822
- Reputation
- 1,654
- Reaction score
- 791
- Trophy points
- 1,393
- Location
- Bangalore, India
- Activity points
- 0
I want to know how to setup adc ports in CCS C Compiler. I am using PIC16F887 MCU for the project. I will be using all the analog pins for adc and I will be using the Vref- and Vref+ pins for reference voltage. vref- will be connected to ground and vref+ will be given +2V.
I need an example for setup_adc_ports() function. What should be the arguments for the function? Should I define Vref somewhere else in the code?
I also want to disable the comparators on PORTA.
I need an example for setup_adc_ports() function. What should be the arguments for the function? Should I define Vref somewhere else in the code?
I also want to disable the comparators on PORTA.