Allow me to recommend MCP4921 DAC for easier and less complex control.
======================
Allow me to recommend MCP4921 DAC for easier and less complex control.
======================
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Many PICs have onboard Voltage Reference Modules (See the 16F628A for example). With this PIC for example, you can output the reference voltage on RA2 (and use an external buffer if and as necessary). You can get between 4.5 and 5 Bit resolution depending on the segment selected. See the Voltage Reference Module section of your PIC's datasheet.
For the 16F628A, you can output (assuming VDD = 5.00V)
0-3.125V by 0.15625V intervals
0-3.594V by 0.20833 intervals
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Hi,
One of PBP build in maths functions is sine.
This mean PIC pin can generate time dependent voltage.
So by means of software pwm(***pbp build in function) technique you can get any analog volt between 0 volt and 5 volt.
To get smooth voltage you should use passive low pass filter.(R & C series )
from_myanmar
Hi Sayzer,
MCP4921 is using SPI instead of I2C. I tought I2C, which I'm currently using, was easier than SPI because PBP has I2CREAD and I2CWRITE commands. I saw example of SPI slave & master on melabs website, but I can't see why you said MCP4921 was easier. Can you elaborate?
J-P
Last edited by GrandPa; - 21st August 2007 at 21:18.
Bookmarks