International Electronics and Technology Forum
May 21, 2012, 01:46:09 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: A question about Programming?  (Read 446 times)
SanD
Newbie
*
Posts: 4


« on: July 06, 2011, 09:18:59 AM »

I would like to ask some questions on programming to help me get started on a project i'm working on.

I have a 8051 microcontroller board, and a 7 SEG display board. I am supposed to come up with a Counter program and a timer program to get a display on the 7 seg

What is a counter program and how does it work? Thats my question. Any help would be appreciated.
Logged
Ben
Newbie
*
Posts: 58


« Reply #1 on: July 06, 2011, 09:41:44 AM »

A counter is a program that does just that- counts. Every tick (or x number of ticks), it increments the count by one. When it reaches the end of where it's supposed to count (I suppose whatever the max number of the 7 segment display is), it resets the whole thing back to 0.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC | Privacy Policy Valid XHTML 1.0! Valid CSS!