SPRAC77E January 2022 – February 2022 TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S
The high level controller is programmed to:
R0 and R1 | Used to PULL data from the FIFO. |
R2 | Initialized to zero during CLB configuration. Used to load zero to a match reference in order to manipulate a given signal to a high state. |
R3 | Initalized to 0xFFFFFFFF during CLB configuration. Used to load a large value to a match reference in order to manipulate a given signal to a low state. |
LOAD: Event 0, Event 1 | ||
---|---|---|
Instruction # | Opcode(s) | Description |
Program0: 0 | MOV_T1 R2, C1 |
Assert HALT/CLEAR_LATCH. COUNTER 1 has been reset by PTO_DONE (count == 0). Loading a match1 reference of zero will force a rising edge on HALT/CLEAR_LATCH. |
Program0: 1 | MOV_T2 R3, C1 |
Force the PTO_DONE signal low. |
Program0: 2, 3 | PULL R0 MOV_T2
R0, C1 |
Load the number of QCLKs to be generated. Note: for a case of zero QCLKs: since COUNTER_1 count == 0, a QCLK value of zero will force PTO_DONE back to a high state. |
Program0: 4, 5 | PULL R1 MOV_T2
R0, C0 |
Load the number of CLB clocks between two QCLKs. When the counter reaches this value, it will be reset to zero. |
Program0: 6, 7 Program1: 0, 1 |
PULL R0 MOV_T1
R0, C2 PULL
R0 MOV_T2 R0,
C2 |
Configure which QCLK edge will force PTO-QEP-I high and low. A large value will be passed through the FIFO if PTO-QEP-I should remain low. |
Program1: 2 | MOV R1, C0 |
Set COUNTER_0 to zero. This prevents the counter from incrementing by 1 when a zero pulse configuration is loaded. |
Program1: 3 | INTR 1 |
Tag indicates Event 0 plus Event 1 complete. This is placed next to the last instruction to keep it from being back-to-back with the INTR instruction in Event 2. |
Program1: 4 | MOV_T1 R3, C1 |
Force the HALT / CLEAR_LATCH signal low. This will start PTO signal generation if the PTO_DONE signal is low. If PTO_DONE is high, then the HALT_LATCH will be set. |
PTO_DONE: Event 2 | ||
Instruction # | Opcode(s) | Description |
Program2: 0 | INTR 2 |
Tag to indicate Event 2 is complete or that the PTO has finished. |