Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ADC input and CMCON0 register

Status
Not open for further replies.

HighTechPower

Member level 5
Joined
Jul 10, 2020
Messages
91
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
703
Hi. I'm designing a board with PIC12F683. The datasheet is attached herewith. I'm little bit confused about CMCON0 register. For comparator yes I have to set some values in 3 LSBs but what about if I use these pins as ADC input. Do I still have to declare the COMCON0 register for that GPIO as analog channel or digital channel i.e. if I declare GPIO as analog in COMCON0 then it will be directly connected to comparator which I don't want to use. The confusion arises due to the reason that ADC is also analog channel but I'm declaring it as digital in the said register.
 

Attachments

  • 41211B.pdf
    2.4 MB · Views: 65

Hi,

Unless otherwise noted in the accirding sections:
* use the ADC configuration register for ADC things only
* use the Comparator configuration register for comparator things only

In doubt read through code examples and/or application notes given by the chip manufacturer.

Klaus
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top