Powerpoint Summary On Ucessor and Ucomputers
Powerpoint Summary On Ucessor and Ucomputers
microcontroller
Lecture 14
15.1: Control
• µprocessor systems – use as control
system and are term as embedded
microprocessor
• Dedicated to controlling a specific function
• Self-started, self-contained with own
operating program
• Requiring no human intervention
15.2: Microprocessor systems
• Have 3 parts:
1. Central processing unit (CPU) – recognise
and carry out program instruction
2. Input/output interface – handle
communication between computer and
outside world
3. Memory – to hold program instructions and
data
12C50x 4MHz
12C67x 10MHz
16Cxxx, 16Fxxx 20MHz
17C4x / 17C7xxx 33MHz
18Cxxx, 18Fxxx 40MHz
PIC FAMILY
MEMORY
PIC program space is different for each chip.
B.Outputs
• Hot/cold water valve
• Water pump control
• Door lock
• Buzzer
• Motor direction
• Heater control
15.4.2: Application- Domestic washing
machine (cont.)
C. Outputs
• Displays
• Inputs from keyboards
D. Others
• PWM – provide signal to motor
• Interrupt – stopped if interrupt i.e. door opened
Domestic washing machine
15.5: Programming steps
1. Define problem – function to perform, i/o
required, constraints – speed, accuracy,
memory size, etc.
2. Define algorithm – sequence of steps
3. Flowchart and pseudo code –steps and
program flow
4. Translate flow chart/algorithm into
instruction using language – assembly, C
5. Test and debug program
Flow chart symbols
Flow chart
Sequence
WHILE-DO
IF-THEN-ELSE
End of Lecture 14