Welcome to the Parallax Discussion Forums, sign-up to participate.
PropGuy2 wrote: »
So lets try this for the P2 newbie - I need a DAC output voltage at exactly 1.378 Volts DC, continuous. It might be for a DC motor, or instrumentation set point, or who knows what else. I really do not care about PASM2 or anything else, I just need the P2 to output 1.378 volts DC on pin 15.
SetDCvolts( 15, 1378, DCmilliVolts, Continuous ) = Happy camper! Love the P2 !!!
My project is a success...
CON mV = 256 FRAC 3300 '3300mV in 256 steps (8 bits)
dira. := 1
wrpin(15, P_DAC_990R_3V + (1378 sca mV) << 8)
pub SetDCVolts(pin, mV)
wrpin(pin, P_DAC_990R_3V + (mV * 256 / 3300) << 8)
Peter Jakacki wrote: »
Unfortunately (and fortunately) there is only one person editing the document. Even if we have it organized that we document little sections that Chip could review and perhaps use in the main document, I doubt that Chip would find the time to do so.
For that reason I have my own copy of the P2 document and instruction set that I fill in. I have made many documents available, including the color column version of the instruction set so you can actually find stuff in there, but nobody looks at it. Come to think of it I even did up a datasheet brief well over a year ago with artwork and diagrams and tables. I did it at the time because there was no information anywhere and I was doing a reference design that turned into the P2D2. but nobody seems to know that the unofficial P2 datasheet exists, even though there is nothing else.
BTW, I did up lots of scope captures of smartpins with simple one line examples in TAQOZ, since it is already built into the ROM, and literally anybody can type that one line, even on a BC PC, and get it to do the same thing. My Tachyon Sourcepage wiki is now being filled with these examples, bit by bit.
JonTitus wrote: »
... I have shown a divide-by-2 input and increments of $5010 for the output square wave...