Brief: PRU PINS related macro definitions
icss_constant_defines.inc
Detect a high pulse on specified pin PRU_PIN: _____᠆᠆᠆᠆᠆______
PEAK cycles: ~ cycle
Pseudo code:
wait (PRU_PIN to go HIGH)
wait (PRU_PIN to go LOW)
FILTER_CYCLES | Debounce filter cycles |
PRU_PIN | PRU pin on which we want to detect pulse |
Detect a low pulse on specified pin PRU_PIN: ᠆᠆᠆᠆᠆᠆᠆᠆᠆___᠆᠆᠆᠆᠆᠆᠆᠆᠆
PEAK cycles: ~ cycle
Pseudo code:
wait (PRU_PIN to go LOW)
wait (PRU_PIN to go HIGH)
FILTER_CYCLES | Debounce filter cycles |
PRU_PIN | PRU pin on which we want to detect pulse |
CLEAR specified pru pin
PEAK cycles: 1 cycle
Pseudo code:
set (PRU_PIN to LOW)
PRU_PIN | PRU pin which we want to drive LOW |
SET specified pru pin
PEAK cycles: 1 cycle
Pseudo code:
set (PRU_PIN to HIGH)
PRU_PIN | PRU pin which we want to drive HIGH |
SET specified pru pin
PEAK cycles: 1 cycle
Pseudo code:
set (PRU_PIN to HIGH)
PRU_PIN | PRU pin which we want to drive HIGH |
Write to r30 register to drive all PRU pins
PEAK cycles: 2 cycle
Pseudo code:
r30 = value
PRU_PIN | PRU pin which we want to drive HIGH |
Read from r31 register to get value of all PRU pins
PEAK cycles: 2 cycle
Pseudo code:
reg = r31
reg | register to store the read pin values |