Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

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.
:)
 

hugo

Full Member level 6
Joined
Dec 31, 1999
Messages
323
Helped
49
Reputation
98
Reaction score
23
Trophy points
1,298
Location
canada
Activity points
2,162
Hi,


Try this :

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

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top