Ryo Od
/
Nucleo-F767_DCO_Test01
Nucleo-F767 DCO Test 01
Diff: main.cpp
- Revision:
- 2:4834d4483ea6
- Parent:
- 1:4fc93890f58e
- Child:
- 3:19bb7c30c354
--- a/main.cpp Mon Jul 23 17:22:53 2018 +0000 +++ b/main.cpp Mon Jul 23 17:34:47 2018 +0000 @@ -5,8 +5,8 @@ */ #include "mbed.h" -#include "wavetable_12bit_16k.h" -#define COUNT_OF_ENTRIES (16384) +#include "wavetable_12bit_32k.h" +#define COUNT_OF_ENTRIES (32768) #define PIN_CHECK (1) #define UART_TRACE (0) @@ -53,9 +53,9 @@ #endif phaccu = phaccu + tword_m; - uint16_t idx = phaccu >> 18; // use upper 14 bits + uint16_t idx = phaccu >> 17; // use upper 15 bits - InternalDacWrite(sin_12bit_16k[idx]); + InternalDacWrite(sin_12bit_32k[idx]); #if (PIN_CHECK) CheckPin.write(0);