cancel
Showing results for 
Search instead for 
Did you mean: 

BSPI

tech10
Associate
Posted on January 26, 2006 at 10:32

BSPI

1 REPLY 1
tech10
Associate
Posted on January 26, 2006 at 10:32

I want to use the TLV320AIC12k audio codec together with the

STR715F MCU: from the codec datasheet it is clear that it is better

to configure the codec as SPI master device and the MCU as SPI

slave device.

STR71X BPSI seems not to be very flexible and I have some

question:

Question 1

When using BSPI in slave mode the BSPIn_CLK register should

be ''don't care'', but in the users manual we read ''In slave mode

this number must be an even number greater than seven...''.

Is there any relationship between the clock rate (generated

by the master device) and the prescaler value ?

Question 2

Because I cannot use the /SS signal, to start the communication

I think use the interrupt routine triggered by the falling edge of

an incoming signal (e.g. P0.14). Do you think it is possible or I

will face with latency problems ? The maximum speed I foresee

is 22050 bps ans so the minimum distance from the falling edge

of the signal and the falling edge of the clock cycle is 22 usec.

Thanks