>
> I have the serial input and variable change functions written. I have been
trying to output to HWPWM at the frequency. But even though the variables are
changing, I can see no difference in the output voltage using a digital
voltmeter.
>
> ITVL=OFreq/2
> HWPWM (1,OFreq,20)
You probably won't be able to see a VOLTAGE difference of a 20 microsecond pulse
on your meter varying between 5 and 440 Hz. If the meter measures FREQUENCY it
may see that.
Also I don't see your conversion of Frequency to cycle time (unless its just a
naming error of your variable)
Cyclctime = 1000000/OFreq ' in microseconds
>
> Do
> debugin A$
This will work for the problem as you state it, but DEBUGIN will wait until
input comes in, potentially forever. You will peobably eventually want to use
RXD0 to test for input (it returns -1 if nothing available)
Frequency output
-
YahooArchive
- Posts: 1462
- Joined: Fri Oct 19, 2012 5:11 am
Re: Frequency output
The CycleTime in Microseconds instead of HZ was my problem.