Hi, I plan to use a 16F628A and have both A/D's on to load B0 and B1 respectively. I only need 8 bit conversions for 0-255 values. Can anyone help me with sample code to set these up? Also, how do I change the reference voltage swings to allow for, say, 0 to 3.5 V to produce 0 to 255 values internally?
I also want to try to multiplex the PWM output to 4 inputs to a couple of H bridges to control two motors in both directions. (will use a 74LS08 quad AND gate using other outputs from PIC to bring one side of each gate high to enable that channel. The PWM out will drive all four AND gates.)
I'm pretty sure how to use the PWM module, but need to know if I can change the duty cycle fast enough to operate all four AND gates properly and independantly.
Any and all suggestions and sample code will be welcomed!
Thanks a bunch!
Ron
Bookmarks