lets think I have micro controller 89c51 ,LED,switch,compiler(keil),programmer (flesh magic)
SWITCH is input device connected port pin P0.1
LED is output device connected port pin P1.1
I have written assembly code in keil software
when we write code it end some hardware
example when we write command SETB P1.1 that means 0100 0000
1) how the processor understand this command FIRST it will take information from rom memory or ram memory?
3) how the data create with logic gates in ROM memory?
3)how address create with logic gate in RAM memory ?
SWITCH is input device connected port pin P0.1
LED is output device connected port pin P1.1
I have written assembly code in keil software
Code:
ORG OH
ON:
SETB P1.1 ; LED IS ON
OFF:
CLRB P1.1 ; LED IS OFF
LOOP:
JB P0.1 ; SWITCH ON
JNB P0.1 ; SWITCH OFF
SJMP LOOP
END
example when we write command SETB P1.1 that means 0100 0000
1) how the processor understand this command FIRST it will take information from rom memory or ram memory?
3) how the data create with logic gates in ROM memory?
3)how address create with logic gate in RAM memory ?