You may want to connect pwm pin of 628A with an led or fish frying probe to say PORTB.0.
Then have PWM set to a level that will give you the voltage you need.
PWM will run in background.
On the main program, you will have a simple flip flop loop turning PORTB.0 on and off.
When PORTB.0 is low, then PWM will be flowing through your probe (or led for test) to PORTB.0.
If you aso control flip flop frequency with a pot and also connect your pwm with another pot, then you can control both the voltage and the flip flop rate externally.
P.S. - Voltage reference feature of this chip can give you 1.25V on Vref pin.
-------------------------
Last edited by sayzer; - 8th February 2008 at 19:23.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks