I'm pretty lost here. What I need to do is build some sinewave tables. The end result is to use these tables in a PIC micro to send the values to a 14 bit DAC. Basically I want to input a frequency and build a table for it. For you people great in math the ability to mix two frequencies would be great but I think a summing opamp will solve that problem

I just need pointed in the right direction, not asking for someone to write the code for me

an example table:

Thank you

Doug

I just need pointed in the right direction, not asking for someone to write the code for me

an example table:

Code:

' table for DAC sine wave 8 bit I think DAC_Table: CData $80,$00,$81,$C9,$83,$92,$85,$5B,$87,$24,$88,$EC,_ $8A,$B4,$8C,$7A,$8E,$40,$90,$04,$91,$C8,$93,$89,$95,$4A,$97,$08,$98,_ $C5,$9A,$80,$9C,$39,$9D,$F0,$9F,$A4,$A1,$56,$A3,$05,$A4,$B2,$A6,$5B,_ $A8,$02,$A9,$A6,$AB,$46,$AC,$E3,$AE,$7C,$B0,$12,$B1,$A4,$B3,$32,$B4,_ $BD,$B6,$43,$B7,$C5,$B9,$42,$BA,$BB,$BC,$30,$BD,$9F,$BF,$0A,$C0,$71,_ $C1,$D2,$C3,$2D,$C4,$84,$C5,$D5,$C7,$21,$C8,$68,$C9,$A8,$CA,$E3,$CC,_ $18,$CD,$47,$CE,$71,$CF,$94,$D0,$B0,$D1,$C7,$D2,$D7,$D3,$E1,$D4,$E4,_ $D5,$E0,$D6,$D6,$D7,$C5,$D8,$AD,$D9,$8F,$DA,$69,$DB,$3C,$DC,$08,$DC,_ $CD,$DD,$8B,$DE,$42,$DE,$F1,$DF,$98,$E0,$39,$E0,$D1,$E1,$62,$E1,$EC,_ $E2,$6E,$E2,$E8,$E3,$5B,$E3,$C6,$E4,$29,$E4,$84,$E4,$D7,$E5,$23,$E5,_ $66,$E5,$A2,$E5,$D6,$E6,$02,$E6,$26,$E6,$42,$E6,$56,$E6,$62,$E6,$66,_ $E6,$62,$E6,$56,$E6,$42,$E6,$26,$E6,$02,$E5,$D6,$E5,$A2,$E5,$66,$E5,_ $23,$E4,$D7,$E4,$84,$E4,$29,$E3,$C6,$E3,$5B,$E2,$E8,$E2,$6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24,$C3,_ $23,$F7,$23,$32,$22,$74,$21,$BD,$21,$0E,$20,$67,$1F,$C6,$1F,$2E,$1E,_ $9D,$1E,$13,$1D,$91,$1D,$17,$1C,$A4,$1C,$39,$1B,$D6,$1B,$7B,$1B,$28,_ $1A,$DC,$1A,$99,$1A,$5D,$1A,$29,$19,$FD,$19,$D9,$19,$BD,$19,$A9,$19,_ $9D,$19,$9A,$19,$9D,$19,$A9,$19,$BD,$19,$D9,$19,$FD,$1A,$29,$1A,$5D,_ $1A,$99,$1A,$DC,$1B,$28,$1B,$7B,$1B,$D6,$1C,$39,$1C,$A4,$1D,$17,$1D,_ $91,$1E,$13,$1E,$9D,$1F,$2E,$1F,$C6,$20,$67,$21,$0E,$21,$BD,$22,$74,_ $23,$32,$23,$F7,$24,$C3,$25,$96,$26,$70,$27,$52,$28,$3A,$29,$29,$2A,_ $1F,$2B,$1B,$2C,$1E,$2D,$28,$2E,$38,$2F,$4F,$30,$6B,$31,$8E,$32,$B8,_ $33,$E7,$35,$1C,$36,$57,$37,$97,$38,$DE,$3A,$2A,$3B,$7B,$3C,$D2,$3E,_ $2D,$3F,$8E,$40,$F5,$42,$60,$43,$CF,$45,$44,$46,$BD,$48,$3A,$49,$BC,_ $4B,$42,$4C,$CC,$4E,$5B,$4F,$ED,$51,$83,$53,$1C,$54,$B9,$56,$59,$57,_ $FD,$59,$A4,$5B,$4D,$5C,$FA,$5E,$A9,$60,$5B,$62,$0F,$63,$C6,$65,$7F,_ $67,$3A,$68,$F7,$6A,$B5,$6C,$76,$6E,$37,$6F,$FB,$71,$BF,$73,$85,$75,_ $4B,$77,$13,$78,$DB,$7A,$A4,$7C,$6D,$7E,$36,$7F,$FF,

Thank you

Doug

## Comment