Brief: Parallel Interface related macro definitions
icss_pin_macros.inc
Wait for specified number of cpu cycles
PEAK cycles: count cycles
Pseudo code:
wait(count-cycles);
count | number of cycles to wait |
Wait for specified number of nano seconds
PEAK cycles: $ceil(time/PRU_CLK_CYC_PRD_CONST) cycles
Pseudo code:
wait(time);
time | number of nano seconds to wait |
Read as data packet from parallel interface with following configurations - INTERFACE, MODE, DATAWIDTH
PEAK cycles: ~ cycle - depends on configuration
Pseudo code:
data_reg = value;
MODE | MSB : MSB Bits are transferred first LSB : LSB Bits are transferred first |
INTERFACE | PARALLEL16 : 16 bit paralllel interface PARALLEL8 : 8 bit paralllel interface |
DATAWIDTH | 1 to 32 |
TRIG_PRD | Period to wait, in ns, after setting control (CS, RD) pins |
data_reg | Register to store read data packet (32 bit) |
Read as data frame composed of data packets from parallel interface
PEAK cycles: ~ cycle - depends on configuration
Pseudo code:
data_reg = value;
MODE | MSB : MSB Bits are transferred first LSB : LSB Bits are transferred first |
INTERFACE | PARALLEL16 : 16 bit paralllel interface PARALLEL8 : 8 bit paralllel interface |
DATAWIDTH | 1 to 32 |
TRIG_PRD | Period to wait, in ns, after setting control (CS, RD) pins |
data_reg | Register to store read data packet (32 bit) |