18 lines
958 B
C
18 lines
958 B
C
#include "sine_table.h"
|
|
|
|
// One complete sine-wave cycle for the F28377S 12-bit buffered DAC.
|
|
// The waveform is centered at mid-scale (2048) and spans 0 through 4095.
|
|
const uint16_t sineTable[SINE_TABLE_LENGTH] =
|
|
{
|
|
2048U, 2176U, 2304U, 2431U, 2557U, 2680U, 2801U, 2919U, 3034U, 3145U,
|
|
3251U, 3353U, 3449U, 3540U, 3625U, 3704U, 3776U, 3842U, 3900U, 3951U,
|
|
3995U, 4031U, 4059U, 4079U, 4091U, 4095U, 4091U, 4079U, 4059U, 4031U,
|
|
3995U, 3951U, 3900U, 3842U, 3776U, 3704U, 3625U, 3540U, 3449U, 3353U,
|
|
3251U, 3145U, 3034U, 2919U, 2801U, 2680U, 2557U, 2431U, 2304U, 2176U,
|
|
2048U, 1919U, 1791U, 1664U, 1538U, 1415U, 1294U, 1176U, 1061U, 950U,
|
|
844U, 742U, 646U, 555U, 470U, 391U, 319U, 253U, 195U, 144U,
|
|
100U, 64U, 36U, 16U, 4U, 0U, 4U, 16U, 36U, 64U,
|
|
100U, 144U, 195U, 253U, 319U, 391U, 470U, 555U, 646U, 742U,
|
|
844U, 950U, 1061U, 1176U, 1294U, 1415U, 1538U, 1664U, 1791U, 1919U
|
|
};
|