Thought I'd share this in case it is useful to someone. It should be able to generate PWM from 244 Hz to 1MHz with up to 10 bit resolution on the PWM.
Just program the PIC, wire it up to a MAX232 or similar and connect to your serial port. Output is on pin 9 and MCLR needs holding high with a resistor.
Check the PIC16F628A datasheet for formulas to calculate the actual frequency and duty ratio.
If you just press enter, it keeps the last value and goes to the next option.
Just program the PIC, wire it up to a MAX232 or similar and connect to your serial port. Output is on pin 9 and MCLR needs holding high with a resistor.
Check the PIC16F628A datasheet for formulas to calculate the actual frequency and duty ratio.
If you just press enter, it keeps the last value and goes to the next option.
Attachments
-
12.3 KB Views: 98
-
20.8 KB Views: 288
Last edited: