Kaleborg
Member level 4
Hello!
I'm having problems in setting the RA1 pin as digital.
This is how i'm configuring it and everything seem to be working fine(PWM, timers, uart) exept the pin RA1 it just does not go high.
I thought that the chip may be faulty but same thing happens on the other chip.
Is there something that i'm missing here.
I appreciate any tips.
Regards
I'm having problems in setting the RA1 pin as digital.
Code:
void InitHware(void){
OSCCON = 0x60; //4MHz clock
TRISA = 11101000;
TRISB = 0;
CMCON = 0; //comparators disabled
ADCON0 = 0;
ADCON1 = 0; //disable A/D
RCONbits.IPEN = 1; //enable IPEN, which enables interrupt priority lrvels
INTCONbits.GIE = 1;
INTCONbits.PEIE = 1; /*all interrupts enabled*/
I thought that the chip may be faulty but same thing happens on the other chip.
Is there something that i'm missing here.
I appreciate any tips.
Regards