need help in interfacing R2S15902fp audio ic with pic16f886 microcontroller

Status
Not open for further replies.

kavin_eees

Member level 3
Joined
May 11, 2012
Messages
57
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,843
dear friends
currently am working with audio development
i want to interface R2S15902FP audio ic with pic16f886 using i2c protocol...
am not familiar with i2c and this audio ics...

can any one tell how to interface this ic with pic microcontroller

thanks in advance
s.kavin
 

Attachments

  • rej03f0152_r2s15902fp.pdf
    741.1 KB · Views: 299

Hi,

This seems to be an old EOL product. Why do you want to use it?
The datasheet tells everything you need to know.

Either we need to read the datasheet and post the contents here....and you need to you the posts,
Or you read the datasheet directely.

This is all I can say ... as long as you don't ask a specific question.

Klaus
 




hi klaus
thanks for replying..
i know its eol product..
one of my customer having 1000 ics in stock,
so he asked me to work with this ,
i read the datasheet fully but still i cant get clearly...
now i know basics of i2c communication like how to start and finish.
but i want to know what data to be sent from micro controller to this audio ics,

in that data sheet shows its having four slots having different functions, i need to know how we can identify these four slots using coding...
 

Hi,

* open the datasheet PDF
* do a search on "slot"
* 4 hits, all on page #6
* see that d22 and d23 are for slot coding
* "0b00" selects slot1 ... and so on.

Klaus
 

    V

    Points: 2
    Helpful Answer Positive Rating
dear

thanks for reply

i ill try and if i have any problem means i ill mention my problem here...

- - - Updated - - -

dear klaus

i tried it but i cant get a proper way for sending data from micro controller to audio ic...

could u help me in this...
bcz am new to i2c and audio...

- - - Updated - - -

dear klaus

i tried it but i cant get a proper way for sending data from micro controller to audio ic...

could u help me in this...
bcz am new to i2c and audio...
 

Hi,

Please ask a detailed question and give enough information:
* what have you done so far?
* what do you expect?
* what is working like expected?
* what is not working like exoected?
* what have you done to debug/encircle the problem? What are the rssults.

If it is an I2C related problem:
* basic communication: start - chip_address - slave_ACK....does this work?

Klaus
 

hi,
according to my knowledge i2c is an open drain ,we have to pullup data and clock line with resistors(theory i got in google).
so by default both the clock and the data will be high, we have to bring up and down according to the data...
but in the audio ic datasheet (see page no 5), the data and the clock wave form is low by default...

and i cant find the address of the ic in the data sheet.
and i want to know how to transfer 23 bit of data,
in the audio ic four slots are there,each slot having 23 bits of data for various functions,

* how to change a particular data in that 23 bit,

i know only basics (theoretically)
am not familiar with this,

any sample code means i can able to get it clearly Klaus,
thanks
 

Hi,

I can't find any information about I2C in the datasheet. How do you know it is I2C?
I doubt this. I rather think this some kind of synchronous serial interface, for one direction only, without device addressing via the protocol.

Just follow the datasheet...waveform, timing, voltage levels..

Klaus
 



ya klaus
i too doubt same only...

thn how can we differentiate '0' & '1' for sending data to that ic..
how can we send 23 bits of data to that ic...

waiting for ur reply?
 

Hi,

There's DATA and CLOCK.
If you want to send a "0" then set DATA = "0" and perform a clock cycle.
If you want to send a "1" then set DATA = "1" and perform a clock cycle.
This is quite usual ... and described in the datasheet.

What is not clear? Please be more detailed and give examples.

Klaus
 
The IC is not using I2C protocol, just simple synchronous serial protocol similar to SPI, but without chip select line. You can either use processor hardware SPI interface or two IO pins in bit-banging style (software SPI).

Apparently there's no means for resynchronizing the serial frame, not even a reset pin, at least it's not described in the datasheet. If so you must take care not to send unintended glitches on the clock line after powering the audio chip.
 
hi fvm
i agree with your point,
but in that datasheet ( see page no.5) clock and timings wave form is available, i cant able to get the clear idea from the wave form....

- - - Updated - - -

am not familiar with the waveform and all,
if possible kindly tel me the sequence for communicating with the audio is with a simple program (any one function)...
thanks in advance...
 
dear friends!

i had completed the interfacing r2s15902fp!
thanks a lot for your suggestions..
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…