Hi to all,
I wish to implement a Timing Generator with a 16F628A. The premises are:
- uC Oscillator (4 to 20 MHz)
- 1 Master Signal of 400kHz
- 2 Binary signals at 10kHz, based in Master Signal
- 4 signals with a programmable timing of 10 to 20 us, each one in each of the four Binary Signals states.
- 1 Reset signal af the final of each binary state
- Communication with other uC (future)
At the moment, I've obtained 400kHz in pin RB3 using PWM mode and TMR2 but I'm clogged and I don't know how to follow.
I don't want to abuse so I don't hope for code (well, if there's some example, it will be welcome, of course), but I need some suggestions as how can I to implement that to follow.
breixo
P.S. Any interrupt driven routine?
I wish to implement a Timing Generator with a 16F628A. The premises are:
- uC Oscillator (4 to 20 MHz)
- 1 Master Signal of 400kHz
- 2 Binary signals at 10kHz, based in Master Signal
- 4 signals with a programmable timing of 10 to 20 us, each one in each of the four Binary Signals states.
- 1 Reset signal af the final of each binary state
- Communication with other uC (future)
At the moment, I've obtained 400kHz in pin RB3 using PWM mode and TMR2 but I'm clogged and I don't know how to follow.
I don't want to abuse so I don't hope for code (well, if there's some example, it will be welcome, of course), but I need some suggestions as how can I to implement that to follow.
breixo
P.S. Any interrupt driven routine?