Signal gen using 12F683
Posted: Sat Nov 26, 2016 2:35 pm
Hi,
I would really appreciate any help.
I am trying to generate a square wave signal of 2ms (on/off) using a 12F683. I have a very simple flowchart that only varies the pulse between signals. I need to be able to generate from 1 hz to 300hz only.
I have and ADC on pin 7 of the pic and use that to vary the delay
It works fine on lower frequencies but I find that there are large jumps in the frequency when I approach 200hz.
Here is my flowchart....
I'm sure there is a better way to do it but have racked my brain and not been able to come up with anything better.
Regards
Conroy
I would really appreciate any help.
I am trying to generate a square wave signal of 2ms (on/off) using a 12F683. I have a very simple flowchart that only varies the pulse between signals. I need to be able to generate from 1 hz to 300hz only.
I have and ADC on pin 7 of the pic and use that to vary the delay
It works fine on lower frequencies but I find that there are large jumps in the frequency when I approach 200hz.
Here is my flowchart....
I'm sure there is a better way to do it but have racked my brain and not been able to come up with anything better.
Regards
Conroy