parallel_interface_macros.inc

Brief:  Parallel Interface related macro definitions

Includes

icss_pin_macros.inc

Macros
m_wait_cycles

Wait for specified number of cpu cycles

PEAK cycles: count cycles

Pseudo code:

wait(count-cycles);
Parameters
count

number of cycles to wait

m_wait_nano_sec

Wait for specified number of nano seconds

PEAK cycles: $ceil(time/PRU_CLK_CYC_PRD_CONST) cycles

Pseudo code:

wait(time);
Parameters
time

number of nano seconds to wait

m_parallel_read_packet

Read as data packet from parallel interface with following configurations - INTERFACE, MODE, DATAWIDTH

PEAK cycles: ~ cycle - depends on configuration

Pseudo code:

data_reg = value;
Parameters
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)

m_parallel_read_frame

Read as data frame composed of data packets from parallel interface

PEAK cycles: ~ cycle - depends on configuration

Pseudo code:

data_reg = value;
Parameters
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)