![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Sin generator using 2nd-ordered IIR filter for ST Nucleo F401RE.
Diff: main.cpp
- Revision:
- 2:799a843be414
- Parent:
- 0:8edfedfcdd26
- Child:
- 4:9b973a35d1e5
--- a/main.cpp Wed Oct 22 09:11:01 2014 +0000 +++ b/main.cpp Thu Oct 23 00:33:39 2014 +0000 @@ -1,7 +1,7 @@ //-------------------------------------------------------------- // Sin generator using IIR filter // Analog Output: MCP4922 using SPI -// 2014/10/21, Copyright (c) 2014 MIKAMI, Naoki +// 2014/10/23, Copyright (c) 2014 MIKAMI, Naoki //-------------------------------------------------------------- #include "mbed.h" @@ -12,9 +12,9 @@ using namespace Mikami; -const int FS_ = 12000; // Sampling frequency: 12 kHz -ADC_Base adc_(A0, FS_); // for AD -DAC_MCP4922 myDac_(DAC_MCP4922::DAC_A); // for DA +const int FS_ = 12000; // Sampling frequency: 12 kHz +ADC_Base adc_(A0, FS_); // for AD +DAC_MCP4922 myDac_; // for DA int main() {