Download Print this page

Infineon ASCLIN SPI Master 1 Manual page 8

Spi master communication via asclin module

Advertisement

Run and Test
An additional test without using an oscilloscope can be performed with the
debugger.
Before transmission, the buffer g_spiTxBuffer is filled with a two bytes
message and the buffer g_spiRxBuffer is empty.
After transmission, both buffers should hold the same message:
By using the debugger, you can watch the content of both buffers
before and after transmission by setting a breakpoint to
exchange_ASCLIN_SPI_message().
When reaching this breakpoint, check the content of both buffers (it
should be different).
After stepping over this function, the content of the buffers must be
equal.
Note: The code should run for a few seconds in order to grant enough time
for the transmission to be done.
2019-10-17
Copyright © Infineon Technologies AG 2019. All rights reserved.
8

Advertisement

loading