This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AIC3254 SPI Interface

Other Parts Discussed in Thread: TLV320AIC3254, TLV320AIC3254EVM-K

I cannot get the SPI interface to work.

I am using a real-world system consisting of an Atmel CPU (ATTiny24) driving the AIC3254. I have been using the TLV320AIC3254 EVAL-K kit with great success. I based my design on the EVAL board, except that I use SPI instead of I2C.

System Setup:
    I have supplied an 8MHz clock to the MCLK input.
    I have SPI_SELECT set high
    I have 1.8V on all supply pins
    I have checked the data format of the SPI (with a Logic Analyser) in both write and read modes and cannot find anything wrong,
    I have read everything I can find.
   

1. Do I need any other clocks?
2. Do I need to write to any AIC3254 registers before I can read any data back?
3. I found a post (from Matt Osborne) which pointed out a inconsistency in the SPI timing diagrams, I cannot find the figures referred to in the reply, which doc is he referring to? 
4. Is there an idiots guide to getting a simple system to work?


Any help would be most appreciated.

  • Hi Howard,

    First, you can use the TLV320AIC3254EVM-K in SPI mode as well. The control software allows changing the control interface to SPI. There is a switch at the upper part of the board where you can select SPI or I2C.

    "1. Do I need any other clocks?"

    No clocks are needed to read registers from the part. Reading register 5 should return 0x11.

    "2. Do I need to write to any AIC3254 registers before I can read any data back?"

    No.

    "3. I found a post (from Matt Osborne) which pointed out a inconsistency in the SPI timing diagrams, I cannot find the figures referred to in the reply, which doc is he referring to?  "

    This has been fixedin the datasheet SPI timing diagram. If you check SPI in Wikipedia, you'll find CPOL and CPHA (polarity and phase). You would need to configure your SPI master CPOL and CPHA correctly to match the AIC3254.

    Maybe you can connect the SPI lines from J15 of the motherboard of the EVM-K to your system. You host processor would need to 3-state the SPI lines and you need to set the /RESET switch on the EVM-K daughtercard such that the red LED is lit so that only the AIC3254 in your system responds to SPI commands.

    Regards,

    J-