Parallax P2 Edge Module - Datasheet
Table Of Contents
- FEATURES
- HARDWARE
- Pin Descriptions
- Hardware Connections
- Minimal Connections
- External Crystal
- Reset Switch
- SPI Flash Boot Memory
- MicroSD Boot Memory
- Dual Boot Memory
- OPERATION
- SYSTEM ORGANIZATION
- Cogs
- Cog RAM
- Register RAM
- Lookup RAM
- Execution
- Hub
- Hub RAM
- Cog-to-Hub RAM Interface
- System Clock
- CORDIC Solver
- Smart I/O Pins
- Pin Modes
- I/O Pin Circuit
- Equivalent Schematics
- Smart Modes
- PASM2 LANGUAGE IN BRIEF
- Math and Logic
- Pin & Smart Pin
- Branch
- Hub Control, FIFO, & RAM
- Event
- Interrupt
- Register Indirection
- CORDIC Solver
- Color Space Converter and Pixel Mixer
- Lookup Table, Streamer, and Misc
- SYSTEM CHARACTERISTICS
- Absolute Maximum Electrical Ratings
- DC Characteristics
- AC Characteristics
- PACKAGING
- CHANGE LOG
- PARALLAX INCORPORATED
CORDIC Solver Instructions
Instruction
Description
Clocks
Cog, LUT & Hub
GETQX D {WC/WZ/WCZ}
Retrieve CORDIC result X into D. Waits, in case result not ready. C = X[31].
1
2...58
GETQY D {WC/WZ/WCZ}
Retrieve CORDIC result Y into D. Waits, in case result not ready. C = Y[31].
1
2...58
QDIV {#}D,{#}S
Begin CORDIC unsigned division of {SETQ value or 32'b0, D} / S. GETQX/GETQY retrieves quotient/remainder.
2...9
QEXP {#}D
Begin CORDIC logarithm-to-number conversion of D. GETQX retrieves number.
2...9
QFRAC {#}D,{#}S
Begin CORDIC unsigned division of {D, SETQ value or 32'b0} / S. GETQX/GETQY retrieves quotient/remainder.
2...9
QLOG {#}D
Begin CORDIC number-to-logarithm conversion of D. GETQX retrieves log {5'whole_exponent,
27'fractional_exponent}.
2...9
QMUL {#}D,{#}S
Begin CORDIC unsigned multiplication of D * S. GETQX/GETQY retrieves lower/upper product.
2...9
QROTATE {#}D,{#}S
Begin CORDIC rotation of point (D, SETQ value or 32'b0) by angle S. GETQX/GETQY retrieves X/Y.
2...9
QSQRT {#}D,{#}S
Begin CORDIC square root of {S, D}. GETQX retrieves root.
2...9
QVECTOR {#}D,{#}S
Begin CORDIC vectoring of point (D, S). GETQX/GETQY retrieves length/angle.
2...9
1
Z = (result == 0)
Color Space Converter and Pixel Mixer Instructions
Instruction
Description
Clocks
Cog, LUT & Hub
Color Space Converter
SETCFRQ {#}D
Set the colorspace converter "CFRQ" parameter to D[31:0].
2
SETCI {#}D
Set the colorspace converter "CI" parameter to D[31:0].
2
SETCMOD {#}D
Set the colorspace converter "CMOD" parameter to D[8:0].
2
SETCQ {#}D
Set the colorspace converter "CQ" parameter to D[31:0].
2
SETCY {#}D
Set the colorspace converter "CY" parameter to D[31:0].
2
Pixel Mixer
ADDPIX D,{#}S
Add bytes of S into bytes of D, with $FF saturation.
7
BLNPIX D,{#}S
Alpha-blend bytes of S into bytes of D, using SETPIV value.
7
MIXPIX D,{#}S
Mix bytes of S into bytes of D, using SETPIX and SETPIV values.
7
MULPIX D,{#}S
Multiply bytes of S into bytes of D, where $FF = 1.0 and $00 = 0.0.
7
SETPIV {#}D
Set BLNPIX/MIXPIX blend factor to D[7:0].
2
SETPIX {#}D
Set MIXPIX mode to D[5:0].
2
Copyright © Parallax Inc. 2021/05/27 ▪ Parallax Propeller 2 (P2X8C4M64P) Datasheet ▪ Page 42