Please help! Part of code(written in C) in MPLAB is:
TRISA=0xf0;
ADCON1=0x0f;
but when I try to simulate it and to give PORTA some values it does not respond. I tried with LATA but its the same. I check WATCH all the time: TRISA and ADCON1
are OK but PORTA still does not respond. Does anyone has some idea? Is it the problem with configuration bits or is there some other register which is connected with PORTA. I want only 4 lower bits to be the output.
TRISA=0xf0;
ADCON1=0x0f;
but when I try to simulate it and to give PORTA some values it does not respond. I tried with LATA but its the same. I check WATCH all the time: TRISA and ADCON1
are OK but PORTA still does not respond. Does anyone has some idea? Is it the problem with configuration bits or is there some other register which is connected with PORTA. I want only 4 lower bits to be the output.