Config Timer1 for Video VGA application
Posted: 15 Aug 2012, 21:09
ciao,
per una applicazione VGA con il bascom-avr avrei bisogno di generare due segnali di sincronismo con un ATmega16 o con un arduino2560 che lavora a 16Mhz.
-----------------------------------------------------------------------------------------------------------------------
for a VGA controller application with Bascom-AVR, I need to generate two synchronized signals with a ATmega16 clock 16Mhz.
1) VGA_HS -> pwm with a period of ~31.77 uS
2) VGA_VS -> pwm with a period of ~16.68 mS
using the timer1 properly configured as PWM.
outputs that I use are OC1A and another pin type OC1B
How can I configure timer1, using registers to get these results or using Config Timer1 ?
thank you very much fo the help.
NB. questo topic l'ho postato anche sul forum bascom di MCSELEC (e per questo l'ho lasciato in inglese)
per una applicazione VGA con il bascom-avr avrei bisogno di generare due segnali di sincronismo con un ATmega16 o con un arduino2560 che lavora a 16Mhz.
-----------------------------------------------------------------------------------------------------------------------
for a VGA controller application with Bascom-AVR, I need to generate two synchronized signals with a ATmega16 clock 16Mhz.
1) VGA_HS -> pwm with a period of ~31.77 uS
2) VGA_VS -> pwm with a period of ~16.68 mS
using the timer1 properly configured as PWM.
outputs that I use are OC1A and another pin type OC1B
How can I configure timer1, using registers to get these results or using Config Timer1 ?
thank you very much fo the help.
NB. questo topic l'ho postato anche sul forum bascom di MCSELEC (e per questo l'ho lasciato in inglese)