Looking to enact a low precision, 8-bit, D to A convertor on a PIC12F1822
Announcement
Collapse
No announcement yet.
8-bit D/A with PIC12F1822
Collapse
X
-
The 12F1822 has an on board DAC but it's only 5bits so you can't mean that, right?
You can achieve 8bits resolution with the old low-pass filtered and buffered PWM approach and the 12F1822 has a CCP module you can use for that. Otherwise it's an external DAC chip interfaced via I2C or SPI or something else.
EDIT: Or an R2R ladder driven by a shift register...
/Henrik.
-
The important point I believe Henrik wanted to make is that PWM (however you create it) can accomplish your goals. You have the option of the CCP modules, some PICs have separate PWM modules, then of course there's software controlled PWM (PBP). Any choice you make should get you there.We can crack this cotton PIC'n thang!
Comment
-
Originally posted by Henrik Olsson View PostThe 12F1822 has an on board DAC but it's only 5bits so you can't mean that, right?
You can achieve 8bits resolution with the old low-pass filtered and buffered PWM approach and the 12F1822 has a CCP module you can use for that. Otherwise it's an external DAC chip interfaced via I2C or SPI or something else.
EDIT: Or an R2R ladder driven by a shift register...
/Henrik.
WalgreenslistensLast edited by Darius15; 11-16-2021, 07:50 PM.
Comment
-
The DS1804 digital pots are a 100 tap output adjusted 1 increment at a time by tapping a pin. It either goes up or down depending on the state of the U/D pin. There are other tap versions with more resolution as well.
There are also addressable digital pots (SPI/I2C) with 1-4 individual pots in a single housing. Search through Digi-Key (or your favorite supplier) for options.We can crack this cotton PIC'n thang!
Comment
-
Originally posted by mpgmike View PostThe important point I believe Henrik wanted to make is that PWM (however you create it) can accomplish your goals. You have the option of the CCP modules, some PICs have separate PWM modules, then of course there's software controlled PWM (PBP). Any choice you make should get you there.
mybalancenow.comLast edited by Cooley87; 11-18-2021, 07:49 PM.
Comment
Comment