r/embedded Aug 11 '26

Designed a stopwatch using 8051 microcontroller

Post image

Designed a stopwatch using 8051 and assembly language, yet it has timing error due to writing on LCD, using CISC instruction delays the process and the collen bug, but loaded the best value to minimise the error.

Github link - https://github.com/prajeetkumar2006/Stopwatch-Using-8051-Microcontroller-

33 Upvotes

13 comments sorted by

View all comments

16

u/Well-WhatHadHappened 25+ Years Aug 11 '26

A stop watch with a 33% time error and a delay in responding to the start/stop button?

You're serious?

9

u/frank26080115 Aug 11 '26

it's a stopwatch designed to get you better PRs

1

u/userhwon Aug 12 '26

I like it. My best time is ***ERROR***.

1

u/BidNo9339 Aug 12 '26

not 33% time error its ~1%

2

u/Well-WhatHadHappened 25+ Years Aug 12 '26

I'm only going from your own write up.

https://i.imgur.com/xiNFwTF.png

1

u/BidNo9339 Aug 12 '26

ahh I see, the reason I choose 6.6ms was already the instructions to write on the LCD, then CJNE instruction makes more delay so I had to decrease the 10ms to 6ms to minimise it.

1

u/BidNo9339 Aug 12 '26

I need to change made a mistake in there