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.

Set GPIO to digital I/O for PIC12F609

Status
Not open for further replies.

guesslsc85

Newbie level 5
Joined
Aug 11, 2009
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,349
Could anyone help on settings of PIC12F609 in order to make all GPIO to digital I/O?
PIC12F609 has CMCON0 and CMCON1 register, how to set GPIO 0, 1, 2 output to digital I/O?

*If using PIC12F629, it is equivalent to setting CMCON=0x07.

Thanks for replying.
:)
 

Hi,


Try this :

CMCON0 = 0 // turn off comparators
ANSEL = 0b11110100 // turn off analog inputs
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top