Hi together,
I'm trying to write a driver function for the SPI interface of MSP430G2432 according to the following pseudo code:
void mcu_spi_read(uint8_t num_bytes, uint8_t addr, uint8_t * data);
void mcu_spi_write(uint8_t num_bytes, uint8_t addr, uint8_t * data);
However, the shift register USISR for the write only contains the USISRH and the USISHL register, so that I can only send the address and one byte data. The only possibility I can see to to use the DMA burst-block transfer function . Are there some finished driver functions available since I havent found them in the example codes?
Thanks a lot!