Tensy 3.2/3.5 analog out

I have a teensy 3.2 and a 3.5. I need an analog out - not music, a stable analog voltage level. So I have some questions:
How many bits is the D/A? What are the voltage references? Is the output rail/rail or is there an offset or range? Is it buffered? What is the output current? And most importantly, how do I write to the register(s).
 
The DACs are 12 bit.
According to the 3.2 spec para 6.6.3, and 3.5 spec para 3.6.3, the output range is rail-to-rail minus 100mV.
Output current is 1mA max.
Output impedance is 250Ω.

Paul
 
Not quite there. Using D/A

The DACs are 12 bit.
According to the 3.2 spec para 6.6.3, and 3.5 spec para 3.6.3, the output range is rail-to-rail minus 100mV.
Output current is 1mA max.
Output impedance is 250Ω.

Paul

But I still can't get it to work. In the header, I have the line -


#define analogPin 14;


and in the MAIN loop, I have


analogWrite(analogPin,x *5); // (x is a float)



But regardless of the value of 'x', I get (basically) 3.3V on pin 14

I believe this is in accordance with the Arduino manual. But apparently, it isn't.
 
Back
Top