??? 01/31/07 14:02 Read: times |
#131798 - how to take duty cycle of hex Responding to: ???'s previous message |
Have it somewhat working. Got the frequency to change by varying the TOR2H and TOR2L. I want to make somekind of division with duty cycle.
duty = 50; trigger = TOR2H:TOR2L; Something like x = duty*trigger/100 Then store the OCRAH = (unsigned char)(x) >> 8; OCRAL = (unsigned char)(x); Any pointers? |
Topic | Author | Date |
PWM 89LPC935 | 01/01/70 00:00 | |
How Many Bits of Resoultion? | 01/01/70 00:00 | |
128 should be enough | 01/01/70 00:00 | |
how to take duty cycle of hex![]() | 01/01/70 00:00 |