fateme91
Member level 2
- Joined
- Nov 18, 2014
- Messages
- 48
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 18
- Location
- Iran,Mashad
- Activity points
- 349
Hi every body
i have an atmega128A and i need to generate a pulse with duty cycle 50% and i need to change it's frequence from 5kHz to 10 Khz.
I need this pulse to give it to an optocoupler. and measure the output frequency.
And which mode is better ? does timer1 is ok? which parameters do i need?
i have an atmega128A and i need to generate a pulse with duty cycle 50% and i need to change it's frequence from 5kHz to 10 Khz.
I need this pulse to give it to an optocoupler. and measure the output frequency.
And which mode is better ? does timer1 is ok? which parameters do i need?