473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to display two timer?

hello!
i need someone to help me..
i need to display two independent timer, this timer need input from keyboard key to stop, terminate and reset the timer..
i am using 8051 microcontroller
Oct 15 '09 #1
8 2560
donbock
2,426 Expert 2GB
You need two indepedent timers.
Do you plan to use timers built into the 8051 or will there be external timers?
If external timers, do you understand the software interface to them?

You need some means to display the timer values.
What is your display device?
Do you understand the software interface to it?

You need to acquire inputs from the keyboard.
Do you understand the software interface to the keyboard?
Oct 15 '09 #2
thank you for respond to this message.. this timer need to be display at hyper terminal.. i have 2 options, whether to use c or assembly to display this timer.. i don't know how to declare inputs from keyboard to stop, terminate and restart the timer.. need your help..
Oct 16 '09 #3
newb16
687 512MB
So now we know that the output must be transmitted over rs-232, and let me guess that the input keys must be read from it as well. For this task , C/asm preference depends mostly on your familiarity with one of them on 8051. I would set up timer interrupt to fire once in 1 millisecond, update timer values for running timers, and use uart interrupt to update 'running'/'stopped' flags for timers.
Oct 18 '09 #4
really? can you please help me..
Oct 20 '09 #5
newb16
687 512MB
Haven't I already? Anyway, the most difficult parts of the task - setting up the toolchain, making the hardware part, ( like progressing from "nothing" to "blinking led" ) are up to you and can't be helped remotely.
Oct 20 '09 #6
i dont know how to make the keyboard as an input
Oct 21 '09 #7
Banfa
9,065 Expert Mod 8TB
By the sounds of it you will have your microprocessor connected to a PC via a serial (RS232) cable and run Hyper-terminal (or some other terminal emulator) on the PC.

Hyper-terminal becomes your input and output, anything you write to the serial port on your micro-processor will be displayed in hyper terminal. Anything you type into hyper-terminal can be read by your micro-processor from the serial port.

The serial port in you micro-controller is the UART. In most implementations the UART outputs TTL level logical so a buffer device (external IC) has to be used to convert this to RS232 line level.
Oct 21 '09 #8
newb16
687 512MB
You mentioned hyperterminal - so you need to connect computer's serial port to 8051's rxd pin (using with level convertor), then poll rxc flag or setup rxc interrupt handler.
Oct 21 '09 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: lauren quantrell | last post by:
I am using a timer to display the time it takes a user to complete a file transfer using the code below. The code below will display the total elapsed time, but is there a way to update the time...
4
by: Tom | last post by:
Hi, I want to display a text "Hello" in a textbox for every 30 seconds. How can I do this? I saw the code static void Main() {
5
by: Trint Smith | last post by:
I need to display a timer ticking down. Example: 11h:52m:39s to 00h:00m:00s How can I do this? Thanks, Trint .Net programmer trintsmith@hotmail.com
2
by: libsfan01 | last post by:
Hi all! I have this javascript timer which counts down the number of secs that i put in and then then redirects my page, what i want to know is how to i modify the code so that i can input the...
6
by: Aspiring .NET Programmer | last post by:
Happy Friday everyone!!! I am working on a windows service and a C# application and needed some help with certain functionality. Please read through my issue below. Thanks! I have a windows...
1
by: Bob | last post by:
Hi, Hope you can help me with this one. I'm at my wits end. I'm trying to create an intelligent edit-box like the excellent "Customer" one at the URL: ...
13
by: kimiraikkonen | last post by:
Hello, I have an aritmetic calculation like this: First note that: i need a "timer" to get the value for value3. (however removing "timer" didn't differ) Dim value1 As Long Dim value2 As...
4
by: JuAn2226 | last post by:
Hi, can anyone help me . when my program starts there is numbers and time will be display in the form of visual basic. it will run continuesly .My problem here is i dont know how to display the data...
0
by: Newbeeinvb | last post by:
I have found many bits of source code to send info to the LCD display, but none to get the display and place it in a textbox. the source code is below, Private Sub HPDisplay(RHost As String,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.