Must be: Setting it to 0 would result in 0V at the output pin, a value of 127 would be approx 1.65V at the output pin and 255 would be 3.3V.
And I get reverse value:
Setting it to 0 would result in 3V, setting it to 255 would result in 0V
Search found 2 matches
- Tue Apr 16, 2019 12:14 pm
- Forum: ESP-IDF
- Topic: DAC work reverse
- Replies: 2
- Views: 3927
- Mon Apr 15, 2019 7:43 am
- Forum: ESP-IDF
- Topic: DAC work reverse
- Replies: 2
- Views: 3927
DAC work reverse
Hi, I use code like these: u8_t dac_value=0; dac_output_enable(DAC_CHANNEL_1); while (1) { dac_output_voltage(DAC_CHANNEL_1, dac_value++); delay(10ms); } On the oscillograph I see a falling saw on DAC1(GPIO25). If I use next code u8_t dac_value=0; dac_output_enable(DAC_CHANNEL_1); while (1) { dac_va...