| ??? 03/20/03 09:33 Read: times |
#41939 - RE: Duty cycle problem. Responding to: ???'s previous message |
Dear kader,
One way is connecting the wave that you want to measure to the INT0 and adjust your Timer0 in the gate mode i.e., TMOD=00001001B, and turn on the Timer0 (TR0=1) in this mode timer0 run only when the INT0 pin is high, so you have the on time(t), on the other hand by measure the interval between two interrupts you have the period of (T), so you find duty cycle as t/T. in the following link you find more info about measuring Duty cycle by MCS51 family: http://www.smartec.nl/pdf/appsmt01.pdf Regards Roozbeh |
| Topic | Author | Date |
| Duty cycle problem. | 01/01/70 00:00 | |
| RE: Duty cycle problem. | 01/01/70 00:00 | |
| Measure Duty Cycle | 01/01/70 00:00 | |
| RE: Duty cycle problem. | 01/01/70 00:00 | |
RE: Duty cycle problem. | 01/01/70 00:00 |



