Code:
;
; u24 accum1 = 0; // 24 bit phase accumulator for SQ1 output
; u24 accum2 = 0; // 24 bit phase accumulator for SQ2 output
; u24 accum3 = 0; // 24 bit phase accumulator for SIN output
;
; u24 phase1 = 90000<<4; // phase offset, (900.00-Hz * 100)<<4
; u24 phase2 = 40000<<4; // phase offset, (400.00-Hz * 100)<<4
; u24 phase3 = 1031<<4; // phase offset, ( 10.31-Hz * 100)<<4
;
; u08 sine[] = { 100,102,104,107,109,112,114,117,119,121,124,126,129,131,133,135,
; 138,140,142,144,147,149,151,153,155,157,159,161,163,165,167,168,
; 170,172,174,175,177,178,180,181,183,184,185,187,188,189,190,191,
; 192,193,194,194,195,196,197,197,198,198,198,199,199,199,199,199,
; 200,199,199,199,199,199,198,198,198,197,197,196,195,194,194,193,
; 192,191,190,189,188,187,185,184,183,181,180,178,177,175,174,172,
; 170,168,167,165,163,161,159,157,155,153,151,149,147,144,142,140,
; 138,135,133,131,129,126,124,121,119,117,114,112,109,107,104,102,
; 099,097,095,092,090,087,085,082,080,078,075,073,070,068,066,064,
; 061,059,057,055,052,050,048,046,044,042,040,038,036,034,032,031,
; 029,027,025,024,022,021,019,018,016,015,014,012,011,010,009,008,
; 007,006,005,005,004,003,002,002,001,001,001,000,000,000,000,000,
; 000,000,000,000,000,000,001,001,001,002,002,003,004,005,005,006,
; 007,008,009,010,011,012,014,015,016,018,019,021,022,024,025,027,
; 029,031,032,034,036,038,040,042,044,046,048,050,052,055,057,059,
; 061,064,066,068,070,073,075,078,080,082,085,087,090,092,095,097 };
;
Bookmarks