Parallax P2 Edge Module - Datasheet

OUT bit.
OUTNZ {#}D {WCZ}
OUT bits of pins D[10:6]+D[5:0]..D[5:0] = !Z. Wraps within OUTA/OUTB. Prior SETQ overrides D[10:6]. C,Z = OUT
bit.
2
OUTRND {#}D {WCZ}
OUT bits of pins D[10:6]+D[5:0]..D[5:0] = RNDs. Wraps within OUTA/OUTB. Prior SETQ overrides D[10:6]. C,Z =
OUT bit.
2
OUTZ {#}D {WCZ}
OUT bits of pins D[10:6]+D[5:0]..D[5:0] = Z. Wraps within OUTA/OUTB. Prior SETQ overrides D[10:6]. C,Z = OUT
bit.
2
TESTP {#}D WC/WZ
Test IN bit of pin D[5:0], write to C/Z. C/Z = IN[D[5:0]].
2
TESTP {#}D ORC/ORZ
Test IN bit of pin D[5:0], OR into C/Z. C/Z = C/Z OR IN[D[5:0]].
2
TESTP {#}D ANDC/ANDZ
Test IN bit of pin D[5:0], AND into C/Z. C/Z = C/Z AND IN[D[5:0]].
2
TESTP {#}D XORC/XORZ
Test IN bit of pin D[5:0], XOR into C/Z. C/Z = C/Z XOR IN[D[5:0]].
2
TESTPN {#}D WC/WZ
Test !IN bit of pin D[5:0], write to C/Z. C/Z = !IN[D[5:0]].
2
TESTPN {#}D ORC/ORZ
Test !IN bit of pin D[5:0], OR into C/Z. C/Z = C/Z OR !IN[D[5:0]].
2
TESTPN {#}D ANDC/ANDZ
Test !IN bit of pin D[5:0], AND into C/Z. C/Z = C/Z AND !IN[D[5:0]].
2
TESTPN {#}D XORC/XORZ
Test !IN bit of pin D[5:0], XOR into C/Z. C/Z = C/Z XOR !IN[D[5:0]].
2
Smart Pin
AKPIN {#}S
Acknowledge smart pins S[10:6]+S[5:0]..S[5:0]. Wraps within A/B pins. Prior SETQ overrides S[10:6].
2
GETSCP D
Get four-channel oscilloscope samples into D. D = {ch3[7:0],ch2[7:0],ch1[7:0],ch0[7:0]}.
2
RDPIN D,{#}S {WC}
Read smart pin S[5:0] result "Z" into D, acknowledge smart pin. C = modal result.
2
RQPIN D,{#}S {WC}
Read smart pin S[5:0] result "Z" into D, don't acknowledge smart pin ("Q" in RQPIN means "quiet"). C = modal
result.
2
SETDACS {#}D
DAC3 = D[31:24], DAC2 = D[23:16], DAC1 = D[15:8], DAC0 = D[7:0].
2
SETSCP {#}D
Set four-channel oscilloscope enable to D[6] and set input pin base to D[5:2].
2
WRPIN {#}D,{#}S
Set mode of smart pins S[10:6]+S[5:0]..S[5:0] to D, acknowledge smart pins. Wraps within A/B pins. Prior SETQ
overrides S[10:6].
2
WXPIN {#}D,{#}S
Set "X" of smart pins S[10:6]+S[5:0]..S[5:0] to D, acknowledge smart pins. Wraps within A/B pins. Prior SETQ
overrides S[10:6].
2
WYPIN {#}D,{#}S
Set "Y" of smart pins S[10:6]+S[5:0]..S[5:0] to D, acknowledge smart pins. Wraps within A/B pins. Prior SETQ
overrides S[10:6].
2
Branch Instructions
Instruction
Description
Clocks
Cog & LUT / Hub
CALL #{\}A
Call to A by pushing {C, Z, 10'b0, PC[19:0]} onto stack. If R = 1 then PC += A, else PC = A. "\" forces R = 0.
4 / 13...20
CALL D {WC/WZ/WCZ}
Call to D by pushing {C, Z, 10'b0, PC[19:0]} onto stack. C = D[31], Z = D[30], PC = D[19:0].
4 / 13...20
CALLA #{\}A
Call to A by writing {C, Z, 10'b0, PC[19:0]} to hub long at PTRA++. If R = 1 then PC += A, else PC = A. "\" forces R
= 0.
5...12
1
/ 14...32
1
CALLA D {WC/WZ/WCZ}
Call to D by writing {C, Z, 10'b0, PC[19:0]} to hub long at PTRA++. C = D[31], Z = D[30], PC = D[19:0].
5...12
1
/ 14...32
1
CALLB #{\}A
Call to A by writing {C, Z, 10'b0, PC[19:0]} to hub long at PTRB++. If R = 1 then PC += A, else PC = A. "\" forces R
= 0.
5...12
1
/ 14...32
1
CALLB D {WC/WZ/WCZ}
Call to D by writing {C, Z, 10'b0, PC[19:0]} to hub long at PTRB++. C = D[31], Z = D[30], PC = D[19:0].
5...12
1
/ 14...32
1
CALLD D,{#}S {WC/WZ/WCZ}
Call to S** by writing {C, Z, 10'b0, PC[19:0]} to D. C = S[31], Z = S[30].
4 / 13...20
CALLD PA/PB/PTRA/PTRB,#{\}A
Call to A by writing {C, Z, 10'b0, PC[19:0]} to PA/PB/PTRA/PTRB (per W). If R = 1 then PC += A, else PC = A. "\"
forces R = 0.
4 / 13...20
CALLPA {#}D,{#}S
Call to S** by pushing {C, Z, 10'b0, PC[19:0]} onto stack, copy D to PA.
4 / 13...20
CALLPB {#}D,{#}S
Call to S** by pushing {C, Z, 10'b0, PC[19:0]} onto stack, copy D to PB.
4 / 13...20
DJF D,{#}S
Decrement D and jump to S** if result is $FFFF_FFFF.
2 or 4 / 2 or 13...20
DJNF D,{#}S
Decrement D and jump to S** if result is not $FFFF_FFFF.
2 or 4 / 2 or 13...20
DJNZ D,{#}S
Decrement D and jump to S** if result is not zero.
2 or 4 / 2 or 13...20
DJZ D,{#}S
Decrement D and jump to S** if result is zero.
2 or 4 / 2 or 13...20
EXECF {#}D
Jump to D[9:0] in cog/LUT and set SKIPF pattern to D[31:10]. PC = {10'b0, D[9:0]}.
4 / 4
Copyright © Parallax Inc. 2021/05/27 Parallax Propeller 2 (P2X8C4M64P) Datasheet Page 37