Class for AD7390, a 12 bit SPI driven external DAC from Analog Devices.
Datasheet - http://www.analog.com/static/imported-files/data_sheets/AD7390_7391.pdf
main.cpp
- Committer:
- cassar10
- Date:
- 2014-04-05
- Revision:
- 2:8633e348822f
- Parent:
- 0:82cd70f9fc3f
- Child:
- 3:37ec9ea72264
File content as of revision 2:8633e348822f:
#include "mbed.h" #include "AD7390.h" AD7390 Test(p5,p7,p10,p11,5,2000000); DigitalOut Led(LED1); int main(){ while (1){ Test.WriteL(2.5); Led = 1; wait(5); Led = 0; Test.WriteL(4); Led = 1; wait(5); Led = 0; Test.WriteL(0.5); Led = 1; wait(5); Led = 0; } }