|
|||||||
| Home | Forums | Rules | Articles | Store | Gallery | Blogs | Register | Donations | FAQ | Calendar | Search | Today's Posts | Mark Forums Read | Search |
| 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 |
|
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
diyAudio Member
Join Date: Apr 2010
|
Hi everyone,
I'm building an additive synth with a dspic33f processor and midi input. The DAC I'm using is a TDA 1543. I know the I2S encoding, but I'm confused as to what I'm actually encoding in the bytes. Say I want to generate a 700 Hz Sine wave. What would I output onto the I2S data line? Is it the current voltage level of the wave? If so what voltage level does 0xFF and 0x00 represent?(TTL?) I'm thoroughly confused as this is the first time I'm trying such a project. Thanks! John |
|
|
|
#2 |
|
diyAudio Member
Join Date: Mar 2007
|
The I2S spec can be obtained from NXP/Philips here.
It is MSB first (big-endian) two's complement (signed) integer format. The number of bits/sample is not defined as part of the interface, you can send as much as you want, only the MSB that the DAC can produce are looked at. Full scale + is 0x7fff, full scale - is 0x800. This is standard 16-bit two's complement. TTL means TTL levels, or 5V logic. You may need level shifters to use this with your dsPIC if it uses a 3.3V supply. Fairly straightforward.
__________________
http://audio.gotroot.ca/ |
|
|
|
#3 |
|
diyAudio Member
Join Date: Apr 2010
|
Hi,
Thanks a lot for the reply. So 0x7fff would represent a 5V analog output and 0x8000 would be -5? These values are huge numbers, so am I to understand that they scale to 5 and -5V? Also, the digital bits are describing the analog voltage level, and the dac says that it reads a high input(ie a 1) as 2 volts(and it says it uses TTL levels, in which case 2V to 5V is a high). This being the case, I'm unsure as to why I would need to do any shifting on my pic's output. Sorry for being so ignorant! ![]() Thanks, John Last edited by Johnny225; 14th April 2010 at 04:47 AM. |
|
|
|
#4 | ||
|
diyAudio Member
Join Date: Mar 2007
|
Quote:
Quote:
__________________
http://audio.gotroot.ca/ |
||
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What is I2S | SamL | Digital Source | 9 | 8th December 2009 06:01 PM |
| Left-justified I2S to Philips I2S Converter | curva | Digital Line Level | 23 | 19th February 2009 01:50 PM |
| Direct Wiring a DDDAC USB-->I2S to a P3A DAC I2S DIN input | dkj7a | Digital Source | 1 | 26th March 2006 05:46 PM |
| How do i get i2s? | homer09 | Digital Source | 7 | 25th May 2004 10:30 PM |
| Need help with I2S | vit | Digital Source | 0 | 7th November 2003 04:07 PM |
| New To Site? | Need Help? |
| Page generated in 0.08437 seconds (75.40% PHP - 24.60% MySQL) with 10 queries |