Programmable Control Flashcards
what is the ALU - Arithmetic Logic Unit?
The brain of the microcontroller. Operates by reading instructions from the ROM.
RAM - Random Access Memory is?
Temporary memory used to store information while a program is running.
Volatile => computer off means memory lost.
ROM - Read Only Memory is?
Permanent memory that contains operating instructions for the microcontroller
EEPROM - Electronically Erasable Read Only Memory is?
Similar to ROM, can be reprogrammed.
ROM - Permanent memory that contains operating instructions for the microcontroller.
what does the clock do in programming?
Controls the speed at which operations occur.
Synchronises the blocks to the microcontroller works properly (ALU, RAM etc.)
what do buses do?
Information is carried between blocks along groups of wires called buses.
input & output ports are?
ports that communicate information between the microcontroller and the real world.
how to set pins as inputs and outputs?
let dirs = %11110000
inputs (0) outputs (1)
note that it goes largest to smallest so 1100 goes pins 3,2,1,0
how to name a pin? Call pin 7 “LED”
Symbol LED = 7
Create the main programming section
-
-
go to MAIN
(go to main loops)
turn on and off pins
high LED
low LED
create a delay
pause