EyeofHorus
Member
I am amplifying the output signal from DAC pin A21 with an op amp to get to the 0-5V range instead of 0-3.3V. During startup of the Teensy I can measure a voltage after the op amp that increases up to about 4.8 V, which I really don't want to have. If I measure directly on the A21 pin, on the other hand, the voltage is 0 and also disappears from the op amp output.
This behavior seems to be independent of the specific code I upload to the Teensy. If I don't use the pin in the code at all, or if I declare it but write no value to it, the output voltage stays at 4.8V and doesn't disappear after the setup is done.
Is there anything I can do to make this go away? Preferably some piece of code that would make sure pin A21 is actively at output 0 as soon as the device has any power.
This behavior seems to be independent of the specific code I upload to the Teensy. If I don't use the pin in the code at all, or if I declare it but write no value to it, the output voltage stays at 4.8V and doesn't disappear after the setup is done.
Is there anything I can do to make this go away? Preferably some piece of code that would make sure pin A21 is actively at output 0 as soon as the device has any power.