
Originally Posted by
bcd
OK, we might need a bit more info here.
Is the voltage you want to measure AC or DC ? What's the application - if its in a vehicle you will need to add some voltage spike protection to the sense inputs and power supply lines.
The 12F683 has a Hardware PWM output from memory so it is really easy to set the duty cycle to the required value and it will stay at that level until it is next changed - have a look in the manual for the HPWM command.
You will need a voltage divider circuit to allow you to get the full scale voltage into the A/D. Try doing a search on the forums, its been discussed before.
Bill.
Bookmarks