Using the LTC1298 DAC with the BAS2p stamp
zacharypch ~!at!~ gmail ~!dot!~ com
Posts: 13
Hi, I am trying to figure out how to hook up the DAC with my board. Specifically, is the clock pin on the DAC for input or output? What should I do with it? Is there a pin on the stamp that it should go with?
Thanks
Z
Thanks
Z
Comments
·· The Clock Pin on that chip is an input which is driven by the BASIC Stamp when using the SHIFTOUT command.· If you look up the SHIFTOUT command in the BASIC Stamp Manual or the Editor Help File you will see how the pins are used.· You could also check this older AppNote for information specific to this chip as well as the N&V article.· I hope this helps.
http://www.parallax.com/dl/docs/prod/appkit/ltc1298.pdf
http://www.parallax.com/dl/docs/cols/nv/vol1/col/nv4.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Thanks
Zak
Thanks
·· You might want to have a look at the datasheet for this device.· What that .3V refers to is how much higher than the supply voltage the input voltage can be.· So if you're powering the chip from 5V you cannot exceed 5.3V on the inputs without damaging the chip.· That does not affect you 0-5V range.· Measuring negative voltages gets a little trickier dpending on the relationship·of the ground to the circuit, you are measuring.· Still, that is a 10V span which is outside the range of the device.· I would recommend searching Google for circuit to do this.· They will likely be very similar and since you're trying to do both negative and a large range you will likely want to familiarize yourself with how that all works.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Now I have a question about using the LCD display, its the 2x16 version with 5 pins. I am having difficulty just displaying a 4 digit number. The number is stored in a VAR of Word type.
Right now I am using the following instruction to print this variable:
Where AD is the variable, set to some number like 4000, . Any suggestions? This prints a \ on the screen and nothing else.
Thank you,
Zak
·· Try using the DEC modifier to display the value.· It appears you have a serial display, so referring to your code you would use:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com