Hello everybody
I'm using the following code:
#include <io.h> void main(void) { DDRA=0x00; PORTA=0x00; DDRB=0xFF; while (1) { // Please write your application code here PORTB=PINA; } }
and the circuit shown in the attached '11.png' image, which depicts an open circuit on all PORTA pins.
According to the diagram shown in the attached '12.png' image, should PINA has the value "0" or unknown? I could understand that the answer must be unknown, but simulation results shows "0", I can't understand why it is "0".
And the value of PORTB will be "0"?