- This topic has 8 replies, 3 voices, and was last updated 11 years, 5 months ago by .
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › counter
i want counter program to understand the concept of counter in8051.
Download doc4345 from atmel.com it contains programs to use different timer,counters. If you carefully read it you can surely understand it.
To understand concept of counter in 8051, start with simple programming and u can apply it on Proteus (softwere) & keil (hex converter)
sir,i need a sample c code for counter in8051.now only i understand the use of timers in 8051.like that i want counter programming and what are the devices to be connected in protessus software to display the counter output
You can interface lcd in proteus to display counter value. for that you have to add code to display counter variable on lcd.
you can easily make one yourself.Just put appropriate controller,connect leds to approriate port,right click on controller and add hex file generated by keil,set clock frequency and you are done. Just run simulation.
In this code,TMOD=0x05,this means counter0 mode2.IN PROTESUS,whether i want to connect DC pulse to T0 and T1 or not.