Weird inverted output from codec....(with pics)

Status
Not open for further replies.
Hi all,
I'm using an ARM microcontroller to interface with a PCM3060 24 bit codec using I2S.

I am trying to generate a sine wave using a lookup table.

Trouble is that the top and bottom halves of the sine wave are flipped over!!

Anyone got any ideas?
 

Attachments

  • Photo 0515.jpg
    Photo 0515.jpg
    341.4 KB · Views: 77
Ok problem solved. I was using positive values only with what I thought was an unsigned int. The library for the micro indicated an unsigned 16 bit int, so I used values from 0-65535 for the sine.

When I plugged both positive and negative values (-32768 to 32768) for the look up table the problem went away.... strange but there ya go. Variable must have been maxing out and resetting to 0 etc...

Hope this helps someone else sometime 🙂
 
Status
Not open for further replies.