Hi all, I am using the wireless audio example from Texas Instruments. I would like to have 16bit IN/OUT PCM in one of the transceivers. I have modified the program in order to send/receive 16 bits through SPI every 125us instead of using ADC and PWM. This SPI should be connected to a GSM Modem. At this time I can do this, but with some problems:
- To send the 16 bits I use: SPI_DATA= Packetdisassembler(); while (SPI_IS_ACTIVE); SPI_DATA=0x00; //because we have only 8 significant bits transmitted.
Between the two bytes there is a cycle pause on the SPI Clock. How could I eliminate this pause?
- The Modem need 3 clock cycles before the star of the frame transmission and 3 cycles after. This is a problem too. Would be better do this with GPIO, havind the clock from an external clock in order to release the mcu from this task?
Thanks in advance, Jose A. Llopis