Proposed solution to lab 3

Committer:
sebbarpar
Date:
Thu Feb 27 09:47:08 2020 +0000
Revision:
6:a5841dd9e3b2
Lab 3;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sebbarpar 6:a5841dd9e3b2 1 // Look up table for a sine wave as 16 bits
sebbarpar 6:a5841dd9e3b2 2 // Note that it is possible to construct the full period from
sebbarpar 6:a5841dd9e3b2 3 // the first quarter, but the code is more complex
sebbarpar 6:a5841dd9e3b2 4 //
sebbarpar 6:a5841dd9e3b2 5 // These number were calcuated using a spreadsheet
sebbarpar 6:a5841dd9e3b2 6 const uint16_t sine[] = {
sebbarpar 6:a5841dd9e3b2 7 32768, 35980, 39161, 42280, 45308, 48215, 50973, 53556,
sebbarpar 6:a5841dd9e3b2 8 55938, 58098, 60014, 61667, 63042, 64125, 64906, 65378,
sebbarpar 6:a5841dd9e3b2 9 65535, 65378, 64906, 64125, 63042, 61667, 60014, 58098,
sebbarpar 6:a5841dd9e3b2 10 55938, 53556, 50973, 48215, 45308, 42280, 39161, 35980,
sebbarpar 6:a5841dd9e3b2 11 32768, 29556, 26375, 23256, 20228, 17321, 14563, 11980,
sebbarpar 6:a5841dd9e3b2 12 9598, 7438, 5522, 3869, 2494, 1411, 630, 158,
sebbarpar 6:a5841dd9e3b2 13 0, 158, 630, 1411, 2494, 3869, 5522, 7438,
sebbarpar 6:a5841dd9e3b2 14 9598, 11980, 14563, 17321, 20228, 23256, 26375, 29556
sebbarpar 6:a5841dd9e3b2 15 } ;