8051 timer Items tagged with 8051 timer
I want to add a Totalize Timer function into my RTC w/DS1307 + AT89S51.
Here some details how it will work. The totalize timer will check the condition of port 1.0 (port number for example only, other port available). When this port in low state, it will start the timer to count the time how long this port in low state. When the port in high state, time counting process is terminated and ... Read Compelte post
It's been a long time I have been developing things for 8051/52 core family and got always stuck with the same old thing. The timer calculations. So I decided to write a small Calculator to do the job for me. It is very basic but hopefully solve most of day to day needs.
Please note you will require MS-Windows'98 or higher and VB runtime DLL's.
--------... Read Compelte post
general formula for timer is
(65536-xx)*machine cycle= delay u want
where xx is a 16 bit no having value of TH0 and TL0
when timer run in 16 bit mode with 11.0592 mhz max delay
that can be generated is 72 ms almost.
now let say u use 12MHz crystal then Machine cycle is calculated
as for every crystal value
(crystal value / 12)= frequency
(1 / frequency) = Machine cycle
now for 12 MHz
12... Read Compelte post