Pages: [1]   Go Down
Author Topic: Reading 3 PWM signals on ATTINY84? (from RC RX)  (Read 657 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 1
Posts: 127
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am wanting to read 3 channels from an RC TX, note that output is PWM NOT PPM.  I have seen examples of using pin change interrupts on arduino to look for when it goes high, have timer count until it goes low and get pulse width, but how do I do this on ATTINY84?  I have pin's 8 through 10 connected to the PWM inputs from the RX and I need to read all 3 of them.  The module itself will take the values and appropriately generate a PWM signal on pins 5 to 7 to control 3 sets of high power LEDs.

Basically I am not sure how to 1, enable the interrupt properly, 2, accurately measure the time (use timer, or in main loop?), 3, will setting a timer on timer1 effect PWM generation, and if so how can I tackle that?

Thanks ahead for the guidance!
Logged

Pages: [1]   Go Up
Jump to: