Answer the question
In order to leave comments, you need to log in
What is stored in the registers of the PIC18 controller?
PIC18F84A controller.
Initialization of the PORT and TRIS registers.
TRISA = %11111111 //все выводы порта А - входы
PORTA = %00000000
TRISB = %00000000 //все выводы порта B - выходы
PORTB = %00000000
if(PORTA.0 == 0)
{
...
}
Answer the question
In order to leave comments, you need to log in
it is "all port A pins low". What does it mean?
Some strange notation, usually the Microchip has binary numbers written as 0b00000000. And on PIC18 it's better to use LATA rather than PORTA to avoid "read-modify-write" problem (use PORT to read port status, and LAT to write logic level).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question