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.

16F877a disable psp and make portA and E as digital

Status
Not open for further replies.

varunme

Advanced Member level 3
Joined
Aug 10, 2011
Messages
741
Helped
17
Reputation
36
Reaction score
17
Trophy points
1,318
Activity points
5,764
for setting port A and E as digital and disable PSP, is the below code enough, or we need any further declaration ?


Code:
    ADCON1 = 0x07 ;  //Disable all analogs
    CMCON = 7;         //Disable all comparators
    TRISE.f4 = 0;        //PSP off 
    trisa=0xff;            // porta as input
    trise=0xff;            // porte as input
 
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top