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.

PIC16F887 Initial configuration

Status
Not open for further replies.

brunofunchas

Full Member level 3
Joined
Jul 1, 2009
Messages
168
Helped
10
Reputation
20
Reaction score
7
Trophy points
1,298
Location
Portugal
Activity points
2,348
Hi,

I am using PIC16F887, QL200 development board and MikroC. My project is very simple and consists only in using digital inputs/outputs.

I should define the following SFR:

CM1CON0 = 0x00; // Comparator 1 set off
CM2CON0 = 0x00; // Comparator 2 set off
CM2CON1 = 0x02; // Comparator 2 Timer1 Control register default set
ANSEL = 0x00; // ALL set as Digital I/O
ANSELH = 0x00; // ALL set as Digital I/O

also the TRIS registers.

There are others SFR that I should define also?

Thanks,
Bruno
 
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top