Weird inverted output from codec....(with pics) - diyAudio
Go Back   Home > Forums > Source & Line > Digital Line Level

Digital Line Level DACs, Digital Crossovers, Equalizers, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 30th July 2010, 03:18 PM   #1
diyAudio Member
 
wildswan's Avatar
 
Join Date: May 2006
Red face Weird inverted output from codec....(with pics)

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?
Attached Images
File Type: jpg Photo 0515.jpg (341.4 KB, 41 views)
  Reply With Quote
Old 30th July 2010, 04:04 PM   #2
diyAudio Member
 
wildswan's Avatar
 
Join Date: May 2006
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 :-)
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sundown SAE-1200Dv1 Weird output issue possible Fet problem? RosDaddy Car Audio 7 11th April 2010 02:12 AM
Replacing 5-pin DIN inputs on a Telefunken Radio? +weird speaker output? hageir Tubes / Valves 8 19th January 2008 07:59 PM
Why does the inverted gainclone have a resistor at the output goldyrathore Solid State 10 12th April 2005 11:36 AM
noob question: inverted/non-inverted dieselpower Chip Amps 2 20th December 2004 09:19 PM
Circuit questions - Inverted vs non-inverted (again) alvinlim Chip Amps 4 1st July 2003 11:27 AM


New To Site? Need Help?

All times are GMT. The time now is 08:47 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright ©1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2