www.parallax.com/P2 sales parallax.com support parallax.com +1 888-512-1024 Parallax Propeller 2 (P2X8C4M64P) Datasheet The Propeller 2 is a multicore microcontroller for embedded systems that delivers high-speed parallel processing with low current consumption in a small package. The Propeller s multiple processors enjoy full command of I/O pins, the exibility to change clock speed, the power to start and stop at will, and the ability to perform simultaneous tasks in an independent or cooperative manner. The Propeller 2 P2X8C4M64P microcontroller consists of 8 identical 32-bit processors (called cogs), each with their own RAM, which connect to a common hub. The hub provides 512 KB of shared RAM, a CORDIC math solver, and housekeeping facilities. The architecture supports 64 smart I/O pins, each capable of many autonomous analog and digital functions. The Propeller 2 s assembly language (PASM2) features per-instruction conditional execution, special looping mechanisms, and pattern-based instruction skipping to encourage fast, compact code. Part Number Legend P2X 8C 4M 64P Propeller 2 8 cogs (processors) 4 Mbit Main RAM (512 KB) 64 smart I/O pins There are three memory regions: Register RAM, Lookup RAM, and Hub RAM. Each cog has its own Register RAM and Lookup RAM (collectively called Cog RAM), while the Hub RAM is shared by all cogs. Propeller 2 (P2X8C4M64P) RAM Memory Configuration Region Depth Width Program Counter PASM Instruction D/S Address Range (Hex) Address Range (Hex) CogRegiste RAM 512 32 bits 00000.. 001FF 000.. 1FF CogLooku RAM 512 32 bits 00200.. 003FF 000.. 1FF Hub RAM 524,288 8 bits 00400.. 7FFFF 00000.. 7FFFF FEATURES Eight powerful 32-bit processors, each with: Access to all I/O pins, plus four fast DAC output channels and four fast ADC input channels 512 longs of dual-port Register RAM for code and fast variables 512 longs of dual-port Lookup RAM for code, streamer lookup, and variables Ability to execute code directly from Register RAM, Lookup RAM, and Hub RAM ~350 unique instructions for math, logic, timing, and control operations 2-clock execution for all math and logic instructions, including 16 x 16 multiply Copyright Parallax Inc. 2021/07/09 Parallax Propeller 2 (P2X8C4M64P) Datasheet Page 1 6-clock custom-bytecode executor for interpreted languages Ability to stream Hub RAM and/or Lookup RAM to DACs and pins or HDMI modulator Ability to stream pins and/or ADCs to Hub RAM Live colorspace conversion using a 3 x 3 matrix with 8-bit signed/unsigned coecients Pixel blending instructions for 8:8:8:8 data 16 unique event trackers that can be polled and waited upon 3 prioritized interrupts that trigger on selectable events Cog-to-cog attention signals for swift coordination Hidden debug interrupt for single-stepping, breakpoint, and polling 8-level hardware stack for fastest subroutine calls/returns and push/pop operations Carry and Zero ag Central hub serving the processors with: 512 KB of contiguous RAM in a 20-bit address space 32-bits-per-clock sequential read/write for all cogs, simultaneously readable and writable as bytes, words, or longs in little-endian format last 16 KB of RAM is write-protectable 32-bit, pipelined CORDIC solver with scale-factor correction 32-bit x 32-bit unsigned multiply with 64-bit result 64-bit / 32-bit unsigned divide with 32-bit quotient and 32-bit remainder 64-bit 32-bit square root Rotate (X32, Y32) by Theta32 (X32, Y32) (Rho32, Theta32) (X32, Y32) polar-to-cartesian (X32, Y32) (Rho32, Theta32) cartesian-to-polar 32 5.27 unsigned-to-logarithm 5.27 32 logarithm-to-unsigned Cogs can start CORDIC operations every 8 clocks and get results 55 clocks later 16 semaphore bits with atomic read-modify-write operations 64-bit free-running counter which increments every clock, cleared on reset High-quality pseudo-random number generator (Xoroshiro128**), true-random seeded at start-up, updates every clock, provides unique data to each cog and pin Mechanisms for starting, polling, and stopping cogs 16KB boot ROM Loads into last 16 KB of Hub RAM on boot-up SPI loader for automatic startup from 8-pin ash or SD card Serial loader for startup from host Hex and Base64 download protocols Interactive terminal P2 Monitor Interactive terminal TAQOZ Forth 64 Smart I/O pins, each with: 8-bit, 120-ohm (3ns) and 1k-ohm DACs with 16-bit oversampling, noise, and high/low digital modes Delta-sigma ADC with 5 ranges, 2 sources, and VIO/GIO calibration Several ADC sampling modes: automatic 2n SINC2, adjustable SINC2/SINC3, oscilloscope Logic, Schmitt, pin-to-pin-comparator, and 8-bit-level-comparator input modes 2/3/5/8-bit-unanimous input ltering with selectable sample rate Incorporation of inputs from relative pins, -3 to +3 Negative or positive local feedback, with or without clocking Externally powered in blocks of 4 for clean analog Vdd reference Copyright Parallax Inc. 2021/07/09 Parallax Propeller 2 (P2X8C4M64P) Datasheet Page 2