Brief: Serial Interface related macro definitions
icss_constant_defines.inc
Read 1 data packet from the serial interface.
PEAK cycles: ~ cycle
Pseudo code:
dataReg = 0
bitId = PACKETSIZE - 1
loop: READ_PACKET
set SCLK_PIN
wait 16 cycles
clear SCLK_PIN
MODE | MSB: MSB First, LSB: LSB First |
PACKETSIZE | Size of data packet in bits |
dataReg | To store read serial data packet |
bitId | To track Bit index (8 bits wide) |
Read 1 data packet from the serial interface.
PEAK cycles: ~ cycle
Pseudo code:
dataReg = 0
bitId = PACKETSIZE - 1
loop: READ_PACKET
set SCLK_PIN
wait 16 cycles
clear SCLK_PIN
MODE | MSB: MSB First, LSB: LSB First |
PACKETSIZE | Size of data packet in bits |
NO_OF_PACKETS | Number of data packets per frame |
tempDataReg | To store read serial data packet temporarily |
tempReg | To track Bit and Packet indices (16 bits wide) |
dataRegBaseAddr | (8 bits) Address of starting data register => register R1.bx must be used |