Bga Clock

Submitted by: Submitted by

Views: 199

Words: 3351

Pages: 14

Category: Literature

Date Submitted: 02/23/2013 10:59 PM

Report This Essay

Abstract

This assignment required to write a program for the real time clock timer with switch button to set the time. The clock timer will be displayed on the LCD. The tasks need to complete are on displaying the clock timer on the LCD and using switch to set or to change the time. Basically PIC16F628A will be used to program the code. The use of PIC16F628A is more than enough to support LCD module as well as the time clock.

Interrupt will be used as a clock to obtain a more accurate timing of 1 second. Which mean that the program will use this interrupt to control the generate 1 second. This can be done by using calculation based on the number of interrupt that required obtaining a 1 second time frame.

Table of Contents

Introduction ---------------------------------------------------------------------------------------3

1.1 Overview------------------------------------------------------------------------------------3

1.2 Timer and Clock signal--------------------------------------------------------------------3

1.3 LCD module--------------------------------------------------------------------------------4

1.4 Interrupt--------------------------------------------------------------------------------------4

1.5 Input/Output---------------------------------------------------------------------------------6

Pseudo Code---------------------------------------------------------------------------------------7

Flow Charts (LCD Display with 8 bits data transfer) ---------------------------------------8

Initialize LCD-----------------------------------------------------------------------------------8

LCD Enable-------------------------------------------------------------------------------------9

Delay---------------------------------------------------------------------------------------------10

Write Character---------------------------------------------------------------------------------11

Get...