Final_Report_Group13 - Bilkent University EEE 212:...

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

View Full Document Right Arrow Icon
Bilkent University EEE 212: Microprocessors 2011 Summer Semester LABORATORY PROJECT – FINAL REPORT İlker Köksal Güher Kayalı Okan Polatkan Kemal Sami Karaca 7/31/2011
Background image of page 1

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

View Full DocumentRight Arrow Icon
1 T ABLE OF C ONTENTS 1. Functional Description . ......................................................................................................................................... 2 1.1. LCD Module . ................................................................................................................................................. 2 1.2. Serial Communications module . .................................................................................................................. 8 1.3. Timer module . ............................................................................................................................................ 18 1.4. External Interrupt module . ........................................................................................................................ 25 1.5. Heater module . .......................................................................................................................................... 28 2. Tests . ................................................................................................................................................................... 31 3. Self Assessment . ................................................................................................................................................. 32 4. Feedback . ............................................................................................................................................................ 33
Background image of page 2
2 1. F UNCTIONAL D ESCRIPTION The whole process of program is executed in the following code. ‘DISPLAY_INFO’ is the only part that provides the execution of other subroutines. ;R0=Minute ;R1=Second ;R2=Current temp ;R3=Target temp 4 ;R4=Target min ;*****************DISPLAY_INFO ******************* DISPLAY_INFO: LCALL FIRST_LINE_LCD LCALL CURRENT_TEMP LCALL TARGET_TEMP LCALL SECOND_LINE_LCD LCALL UPDATE_TIMER LCALL CHECK_COUNTDOWN SJMP DISPLAY_INFO RET ;*****************END OF DISPLAY_INFO ************ 1.1. LCD M ODULE This module consists of the display functions. Everything is related to the LCD including initializations are included here. It prepares first line of the lcd to write on. In the first line, there is target temperature and current temperature.
Background image of page 3

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

View Full DocumentRight Arrow Icon
3 ;*****************FIRST_LINE_LCD ******************* FIRST_LINE_LCD: PUSH ACC MOV A,#38H ;TWO LINES, 5X7 MATRIX ACALL COMNWRT ;WHEN SENDING A COMMAND, USE COMNWRT SUBROUTINE ACALL DELAY ;GIVE LCD SOME TIME MOV A,#0FH ;DISPLAY ON, CURSOR BLINKING ACALL COMNWRT ACALL DELAY MOV A,#01H ;CLEAR DISPLAY SCREEN ACALL COMNWRT ACALL DELAY MOV A,#06H ;INCREMENT CURSOR (SHIFT CURSOR TO RIGHT) ACALL COMNWRT ACALL DELAY MOV A,#80H ;FORCE CURSOR TO BEGINNING OF THE FIRST LINE ACALL COMNWRT POP ACC RET ;*****************END OF FIRST_LINE_LCD ************
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 35

Final_Report_Group13 - Bilkent University EEE 212:...

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

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