Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

stopwatch in LCD using AT89C2051

Status
Not open for further replies.

yukato

Newbie level 1
Joined
May 12, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,287
lcd + at89c2051

i'm working on a stopwatch using AT89C2051 and in assembly language.

i want my stopwatch to generate 1/100 of a second interrupt, such that it will display on the LCD the [second].[millisecond]... for example, 3.99

also, i am using a 12Mhz crystal and a 2x16 LCD (4-bit mode).

please help and guide me go through the process in making this project.

thank you very much.
:D
 

at89c2051 lcd

if you need 1/100 second, you should set the interrupt at 10ms.

if use 12MHz X-tall,
it's done by load the value in tlx and thx by -10000

every each interrupt reload the value:

mov thx,# high (-10000)
mov tlx,#low (-10000)

and interrupt will taken at 10000 machine cycles
one machine cycle same as X-tall/12 (1us)
1uS*10000 = 10ms

thats it. (^_^)"
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top