Parallax P2 Edge Module - Datasheet

RFLONG D {WC/WZ/WCZ}
Used after RDFAST. Read long from FIFO into D. C = MSB of long. *
2 / FIFO IN USE
RFVAR D {WC/WZ/WCZ}
Used after RDFAST. Read zero-extended 1..4-byte value from FIFO into D. C = 0. *
2 / FIFO IN USE
RFVARS D {WC/WZ/WCZ}
Used after RDFAST. Read sign-extended 1..4-byte value from FIFO into D. C = MSB of value. *
2 / FIFO IN USE
RFWORD D {WC/WZ/WCZ}
Used after RDFAST. Read zero-extended word from FIFO into D. C = MSB of word. *
2 / FIFO IN USE
WFBYTE {#}D
Used after WRFAST. Write byte in D[7:0] into FIFO.
2 / FIFO IN USE
WFLONG {#}D
Used after WRFAST. Write long in D[31:0] into FIFO.
2 / FIFO IN USE
WFWORD {#}D
Used after WRFAST. Write word in D[15:0] into FIFO.
2 / FIFO IN USE
Hub RAM
POPA D {WC/WZ/WCZ}
Read long from hub address --PTRA into D. C = MSB of long. *
9...16
1
/ 9...26
1
POPB D {WC/WZ/WCZ}
Read long from hub address --PTRB into D. C = MSB of long. *
9...16
1
/ 9...26
1
RDBYTE D,{#}S/P {WC/WZ/WCZ}
Read zero-extended byte from hub address {#}S/PTRx into D. C = MSB of byte. *
9...16 / 9...26
RDLONG D,{#}S/P {WC/WZ/WCZ}
Read long from hub address {#}S/PTRx into D. C = MSB of long. * Prior SETQ/SETQ2 invokes cog/LUT block
transfer.
9...16
1
/ 9...26
1
RDWORD D,{#}S/P {WC/WZ/WCZ}
Read zero-extended word from hub address {#}S/PTRx into D. C = MSB of word. *
9...16
1
/ 9...26
1
PUSHA {#}D
Write long in D[31:0] to hub address PTRA++.
3...10
1
/ 3...20
1
PUSHB {#}D
Write long in D[31:0] to hub address PTRB++.
3...10
1
/ 3...20
1
WMLONG D,{#}S/P
Write only non-$00 bytes in D[31:0] to hub address {#}S/PTRx. Prior SETQ/SETQ2 invokes cog/LUT block
transfer.
3...10
1
/ 3...20
1
WRBYTE {#}D,{#}S/P
Write byte in D[7:0] to hub address {#}S/PTRx.
3...10 / 3...20
WRLONG {#}D,{#}S/P
Write long in D[31:0] to hub address {#}S/PTRx. Prior SETQ/SETQ2 invokes cog/LUT block transfer.
3...10
1
/ 3...20
1
WRWORD {#}D,{#}S/P
Write word in D[15:0] to hub address {#}S/PTRx.
3...10
1
/ 3...20
1
1
+1 if crosses hub long
Event Instructions
Instruction
Description
Clocks
Cog & LUT / Hub
ADDCT1 D,{#}S
Set CT1 event to trigger on CT = D + S. Adds S into D.
2
ADDCT2 D,{#}S
Set CT2 event to trigger on CT = D + S. Adds S into D.
2
ADDCT3 D,{#}S
Set CT3 event to trigger on CT = D + S. Adds S into D.
2
COGATN {#}D
Strobe "attention" of all cogs whose corresponging bits are high in D[15:0].
2
JATN {#}S
Jump to S** if ATN event flag is set.
2 or 4 / 2 or 13...20
JCT1 {#}S
Jump to S** if CT1 event flag is set.
2 or 4 / 2 or 13...20
JCT2 {#}S
Jump to S** if CT2 event flag is set.
2 or 4 / 2 or 13...20
JCT3 {#}S
Jump to S** if CT3 event flag is set.
2 or 4 / 2 or 13...20
JFBW {#}S
Jump to S** if FBW event flag is set.
2 or 4 / 2 or 13...20
JINT {#}S
Jump to S** if INT event flag is set.
2 or 4 / 2 or 13...20
JNATN {#}S
Jump to S** if ATN event flag is clear.
2 or 4 / 2 or 13...20
JNCT1 {#}S
Jump to S** if CT1 event flag is clear.
2 or 4 / 2 or 13...20
JNCT2 {#}S
Jump to S** if CT2 event flag is clear.
2 or 4 / 2 or 13...20
JNCT3 {#}S
Jump to S** if CT3 event flag is clear.
2 or 4 / 2 or 13...20
JNFBW {#}S
Jump to S** if FBW event flag is clear.
2 or 4 / 2 or 13...20
JNINT {#}S
Jump to S** if INT event flag is clear.
2 or 4 / 2 or 13...20
JNPAT {#}S
Jump to S** if PAT event flag is clear.
2 or 4 / 2 or 13...20
JNQMT {#}S
Jump to S** if QMT event flag is clear.
2 or 4 / 2 or 13...20
JNSE1 {#}S
Jump to S** if SE1 event flag is clear.
2 or 4 / 2 or 13...20
JNSE2 {#}S
Jump to S** if SE2 event flag is clear.
2 or 4 / 2 or 13...20
JNSE3 {#}S
Jump to S** if SE3 event flag is clear.
2 or 4 / 2 or 13...20
JNSE4 {#}S
Jump to S** if SE4 event flag is clear.
2 or 4 / 2 or 13...20
JNXFI {#}S
Jump to S** if XFI event flag is clear.
2 or 4 / 2 or 13...20
JNXMT {#}S
Jump to S** if XMT event flag is clear.
2 or 4 / 2 or 13...20
Copyright © Parallax Inc. 2021/05/27 Parallax Propeller 2 (P2X8C4M64P) Datasheet Page 39