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.

Setting Speical Function Registers in PIC18F26K20 and XC8 C

Status
Not open for further replies.
T

treez

Guest
Hello,
We are using a PIC18F26K20 in our simple DALI dimmable lamp.
Our software engineer used XC8 C in MPLAB X IDE.

His code does not have any mention of the ANSEL, ANSELH, INTCON or INTCON3 registers.
Is this allright?
We want RA1 and RA2 as analog inputs (ADC ). All the other pins we want as Digital I/O.
He also said he didn’t need to set the INTCON or INTCON3 registers because he wasn’t using them. (I thought you haD to disable interrupts in the INTCON register if you are not using them?…GIE=0;)

One of the PCBs is working and some work intermittently, most don’t work.

PIC18F26K20 Datasheet:-
**broken link removed**
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top