Programmable control systems
-
Sequence controllers
- Memory is persistent data that is stored in an array of data units
- Each data unit stores a number of bits of data that can be handled through a set of pins A0 called a data bus
- Each data unit has a unique memory address that is chosen through a set of pins called a memory bus
- Data can be read or written according to a Read/Write pin: when reading, the data from the address referenced by the address bus is outputted through the data buss; when writing, the data from the data bus is stored into the address referenced by the address bus
- By connecting a counter to the address bus, a memory IC can be made to output a sequence of preloaded data, and can be made to reset when reaching a certain state using logic
-
Software-based controllers
- A microcontroller is a multipurpose chip whose function is programmed into it
- It contains its own program memory, data storage memory, input/output ports and a clock oscillator
- This allows it to take signals from input sensors and send signals to output devices
-
A program is a sequence of instructions, which can be represented using a flowchart, which typically contains the following nodes:
- Start: a single start node is used to indicate the beginning of every flowchart
- Stop: used to end program; there can be any number of stop nodes, even none
- Process: used for calculations or delays
- Decision: branches according to whether the conditional in the node is true or false
- Output: sends data to an output pin