micro controller contain mainly ALU, control unit
Processor take information from ROM, RAM, Input port
fetching - decoder take command from rom memory
decode - decoder decode instruction and tell the cpu what to do like add, sub
execution- alu do the operation like add, sub.. and sand the result into ram memory
processor take input from the input port
Input are the signal or data received by the processor
output are signal or data sent from it
I don't want to someone explain whole things
but can you give hint its lots for me
I have many doubts, but at this time the main doubt I have that signal from the input device(switch) goes into the input port
Q. 1 how does processor know that which port pin is high and which port pin is low ?
same for output device (LED) signal come from port ?
Q.2 how does processor send the signal to output port ?
Processor take information from ROM, RAM, Input port
fetching - decoder take command from rom memory
decode - decoder decode instruction and tell the cpu what to do like add, sub
execution- alu do the operation like add, sub.. and sand the result into ram memory
processor take input from the input port
Input are the signal or data received by the processor
output are signal or data sent from it
I don't want to someone explain whole things
but can you give hint its lots for me
I have many doubts, but at this time the main doubt I have that signal from the input device(switch) goes into the input port
Q. 1 how does processor know that which port pin is high and which port pin is low ?
same for output device (LED) signal come from port ?
Q.2 how does processor send the signal to output port ?