Example host software for the Maxim Integrated MAX5715 12-bit 4-channel voltage-output DAC. Hosted on the MAX32625MBED.
Dependencies: MAX5715
Diff: Hello_MAX5715.cpp
- Revision:
- 17:45d1cf899e40
- Parent:
- 16:1892ac340a35
--- a/Hello_MAX5715.cpp Wed Oct 30 15:33:40 2019 -0700 +++ b/Hello_MAX5715.cpp Wed Oct 30 23:34:16 2019 +0000 @@ -123,10 +123,10 @@ // example code main function int main() { + g_MAX5715_device.Init(); + while (1) { - g_MAX5715_device.Init(); - g_MAX5715_device.REF(MAX5715::REF_AlwaysOn_2V500); uint16_t ch; @@ -148,6 +148,6 @@ code = 0x0fff; // 100.0% of full scale REF(2.50V) = 2.50V g_MAX5715_device.CODEnLOADn(ch, code); - // wait(3.0); + // wait(3.0); } }