download - EEE 212 MICROPROCESSORS SPRING 2011 PROGRESS...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
1 EEE 212 MICROPROCESSORS – SPRING 2011 PROGRESS REPORT BÜŞRA ÖZBAY DERYA YEŞİLYURT GİZEM SARIKAYA OKAN POLATKAN
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 1. Program Flow Figure 1: Flow chart that describes the functionality of the system
Background image of page 2
3 Figure 2: Flow chart for Timer Interrupt 1 that measures and updates current temperature every 5 seconds and changes the status of the heater Figure 3: Flow chart for Timer Interrupt 2 that updates remaining time every second and checks whether countdown time had ended
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 Figure 4: External Interrupt that makes the system switch to Rush Mode System description: The system functions as a digital thermometer and heater. It has three running modes which are Free Run Mode, Countdown Mode and Rush Mode. The system is in Free Run Mode upon startup/ reset. In Free Run Mode, the system monitors the temperature and time which is 000:00. The heater is off in this mode. Default values for target temperature and countdown minute are 30 degrees and 5 minutes respectively. When one of ‘t’, ‘T’, ‘m’, ‘M’, ‘c’ or ‘C’ characters comes from serial port and a valid input for that character, the system will enter the Countdown Mode. In this mode, the system tries to keep the current temperature at the target for the given amount of time and turn the heater off when countdown time is finished. While in this mode, the system can get input characters from serial port and update target temperature and/or countdown time accordingly. Both in Free Run and Countdown Modes, whenever an external interrupt comes through the pushbutton, the system enters the Rush Mode, where it keeps the temperature at 60±2 and counts down from 1 minute. When 1 minute is finished, the system returns its previous state. In this mode, serial inputs are ignored.
Background image of page 4
5 2. Program Design GetTargetTemperature : Inputs : Target temperature – P3.0. Target temperature is sent through serial communication. After the input coming from serial port is converted by MAX232 chip, it is given to P3.0 pin of 8051. Outputs : After reading input temperature, this subroutine will return the target temperature. The target temperature will be kept in R3 register. Affected flags : RI flag of SCON register, TF1 TCON register. RI is raised by 8051 to indicate that a byte has been received. And it is cleared by CLR RI instruction to get ready to receive next byte. TF1 is set by hardware when timer 1 overflows and is cleared by hardware as the processor vectors to the ISR. Calls
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/23/2011 for the course ENGINEERIN 102 taught by Professor Pablo during the Spring '11 term at Bilkent University.

Page1 / 11

download - EEE 212 MICROPROCESSORS SPRING 2011 PROGRESS...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online