12 bit linear frequency change
Posted: Sun Feb 23, 2014 10:00 pm
Hello
I am looking to use a 12 bit ADC input to vary a frequency of an output between 0 and around 45Khz.
I have chosen to use the PIC18f4423 and I thought that the PWM component may be able to do this. I was hoping not to go down the bit banging route.
The issue I am having is that T=1/f, so trying to get a linear frequency output is difficult.
Any help on this would be appreciated - example V5 codes would be useful too,
thanks
I am looking to use a 12 bit ADC input to vary a frequency of an output between 0 and around 45Khz.
I have chosen to use the PIC18f4423 and I thought that the PWM component may be able to do this. I was hoping not to go down the bit banging route.
The issue I am having is that T=1/f, so trying to get a linear frequency output is difficult.
Any help on this would be appreciated - example V5 codes would be useful too,
thanks