Escolar Documentos
Profissional Documentos
Cultura Documentos
Multi-state systems
Dr. Tran Thanh Hung Department of Automation Technology, College of Engineering, Can Tho University Email: tthung@ctu.edu.vn
Review
In the seminar 5, we have used EOS to implement periodic functions for one state system.
Outline
How to implement for multi-state systems? multi-state systems implement for multi-state systems: type 1 implement for multi-state systems: type 2
Seminar objectives
At the end of this seminar, by referring the lecture notes, students will be able to: understand issue of multi-state systems implement multi-state systems, using EOS
3 state system
4 state system
EOS: Review
#include "Main.h" #include "EOS.h" void main (void) { EOS_init(50000); //Initialize EOS to interrupt every 50ms while(1) { } } #pragma vector = TIMERA0_VECTOR interrupt void EOS_ISR(void) LPM1; // Enter low power mode to save power
{
// Put your code here }
Exercise 6.1
Write a program to control a complete traffic light system with states and hardware configuration as following:
Exercise 6.2
Write a program to control a washing machine. You decide the hardware configuration