I have been tasked with using a PIC12F1822 to create a 1MHz TTL level output with a 50% duty cycle. I am trying different methods of achieving this output. I wrote one and used just delays to create an output, the next one I wrote I used Timer 0 and T0 interrupt flag to increment a variable and produce a 1Mhz output.
I would like to find a method to improve the output level frequency and period to a more perfect 1 MHz freq and better 50% duty cycle other than using the delays and timer 0.
What do you all think I could use to improve on the level of output?
Timer 1? , 2?
interrupts?
What are your thoughts?
I would like to find a method to improve the output level frequency and period to a more perfect 1 MHz freq and better 50% duty cycle other than using the delays and timer 0.
What do you all think I could use to improve on the level of output?
Timer 1? , 2?
interrupts?
What are your thoughts?