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
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...
* 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.
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?
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
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..
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..
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.
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...