2x16 LCD timer in assembly ?
Calebjo
Posts: 15
Hey does anyone know where I could find an example of making a timer with the parallax 2x16 serial LCD in·assembly? I found a few on controlling LCDs with SX/B so if I would appreciate a good example program of making a serial LCD stopwatch in assembly or SX/B.
Thanks, Calebjo
[noparse][[/noparse]Edit] Calebjo, I added a subject for you. Bean
Post Edited By Moderator (Bean (Hitt Consulting)) : 12/5/2008 11:38:31 AM GMT
Thanks, Calebjo
[noparse][[/noparse]Edit] Calebjo, I added a subject for you. Bean
Post Edited By Moderator (Bean (Hitt Consulting)) : 12/5/2008 11:38:31 AM GMT
Comments
In the future please try to use a more descriptive subject for your post. "(No Subject)" doesn’t convey what you need help with. This will often limit potential useful responses as those who can help may never see your message.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
This can solve a lot of headache.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my
Jonnymac, what exactly do you mean by having a direct connection to the LCD?·Do you mean just directly connecting the·serial LCD to the SX?·Sorry if there is an obvious inference here.
Ok, let's start by defining it.
=======================
Project Description:
To develop a timer using a 2x16 LCD panel.
Timer is to have ?? buttons labeled ???, ???, ???
Display is to be formated as (in other words what do you want to display)
xxxx.xxxx.xxxx.x
xxxx.xxxx.xxxx.x
========================
Additional Options you might consider:
1) Timer to have a resolution of ??? milliseconds (or microseconds or just tenths of a second)
2) Are the buttons going to be simple push buttons or are you connecting to a piece of equipment?
3) You will probably need to "debounce" push buttons.
4) Do you want to be able to turn off (or dim) the backlight to save power?
5) Is the power source a battery or will you be plugging it into a power supply (a.k.a. wall wart)
6) Do you need to have more than one timer (like some watches that have two or three timers that you can independently start and stop)
7) How accurate does it need to be? (this means if you are just measuring tenths of a second over the period of a couple of minutes, you are fine using an resonator. However, if you want to measure over a period of several days you might want to consider a real time clock.
8) Do you want to use one of the SX pins to simoultaneously send the time to a RS-232 connector so you can read the timer with your Desktop PC? (for logging purposes).
===========================
Hope this helps. Keep it simple at first something like:
-- display "hello world" on the LCD
-- program a loop to count from zero to 255
-- start and stop the count with one button
-- add logic to display seconds, minutes, hours
-- start and stop your timer
-- etc, etc
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John J. Couture
San Diego Miramar College
The program is happily running on my PDB at the moment, using this display format: HH:MM:SS.th (where th is tenths and hundredths). Even though the timer has higher resolution (100us) you can barely see the tenths digits with the display being updated so frequently; the hundredths is a blur.
Take this code and John C's good advice from the response above and create your stopwatch.
Post Edited (JonnyMac) : 12/8/2008 12:41:38 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G