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: Is any possible to use external SPI Flash as instruction source?



Due to MCU msp430G2xxx has limit internal Flash storage size,

and I have 50 image of coefficient for AIC3254, it will cost large memory needs,

Therefore, I think I need external storage for the instruction of AIC3254.

The basic method is read data from external Flash back to MCU,

and then transfer data to AIC3254 from MCU.

But I think it will consume MCU too many computing power.

Is possible like DMA method, MCU send address to external Flash, and external Flash send out data to AIC3254?

But how to do it? 

Any sample code and circuit for it?


Thanks in advance.

  • Hi,

    If your worried about using too many MCU resources then upgrade to another one. Unless you want to overcomplicate things, using an external flash to store and read from with the MCU seems the most reasonable way.  You can store the AIC3254 code in the flash and then read and write the codec to configure it when you wish. With SPI bus this should be fast enough ...

    Cheers, Mik

  • Hi, Mik,

    Thanks for your response.

    I also noticed AIC3254EVM-K that it has similar design.

    There is a I2C Flash (U2, MICROCHIP_24LC64) on the board,

    It is connected to AIC3254 directly when SW1 is switch to I2C.

    Does it mean the instruction is come from Flash, and then send to AIC3254 directly?

    Best Regards,

    Greg

  • Hi Greg,

    I believe the schematic for the EVM-K board is available on the TI website. You can look there to see how it is done.

    I do not think the AIC3204 can directly read from flash memory without microprocessor intervention. There just insn't anything about that written in the datasheet, unless you have found something that we do not know. You could use a simple low cost microcontroller to read from flash and write to the codec using the I2C bus as you need. The EVM and USB eval boards are using USB to load / store codec configuration so there is no real analogie with what you wish to do.

    Regards, mikE