About sensors and microcontroller PIC18F4550

Thread Starter

Claudinho

Joined Nov 1, 2015
10
PANEL_ANSEL_ANS_BIT = 1;

BATTERY_ANSEL_ANS_BIT = 1;

Are these two lines of code that you gave me that are causing error in the compilation.
 

spinnaker

Joined Oct 29, 2009
7,835
PANEL_ANSEL_ANS_BIT = 1;

BATTERY_ANSEL_ANS_BIT = 1;

Are these two lines of code that you gave me that are causing error in the compilation.
Did you define them? And are they configured to your hardware?

#define PANEL_TRIS TRISCbits.TRISC0
#define PANEL_ANSEL_ANS_BIT ANSELbits.ANS4

I just posted some example code. You are going to have to do some work in configuring it to work with your chip.
 
Top