2013-08-26 06:20 AM
Hi ,
I am having a little bit of trouble configuring the audio codec (cirrus CS42L52) on the MCBSTM32F400 (stm32f407IG) evaluation board .
I am trying to do a reset to the codec via the reset pin , but looking from the schematics , there is no any GPIO assigned to the pin ( or an IOE expander like on stm3240g-eval) .Does anyone knows how can i reset the codec ? is it even possible ? ( see attached schematics )
Thanks Michae2013-08-26 06:28 AM
Better question, why do you need to reset it?
2013-08-26 06:36 AM
Well this is how the codec configuration done on the stm324g-eval ( cirrus CS43L22 ) , when i played with it and did not reset it ( on the stm324g-eval), i recived a ack timout on the I2C when trying to write to the codec register ,I experince the same behavior on the mcbstm32f400 evaluation board. so i guess i need to reset it first prior configuration .
Also as quoted from the CS42L52 datasheet :
4.8 InitializationThe CODEC enters a Power-down state on initial power-up. The interpolation and decimation filters, delta-sigma
and PWM modulators, and control port registers are reset. The internal voltage reference, and
switched-capacitor low-pass filters are powered down.
The device remains in Power-down state until the RESET pin is brought high. The control port is accessible
once RESET is high and the desired register settings can be loaded per the descriptions in the Section 6. Michael
2013-08-26 07:21 AM
But it looks to be tied to the processor reset, which by the time you touch it will be high. So I don't see it being in any sleep state.
You might want to look at the initial I2C transaction, and subsequent ones, to understand why you get no ACK.