Each of the eight 32-bit cores (termed a cog) has a central processing unit (CPU) which has access to 512 32-bit long words (2 KB) of instructions and data. Self-modifying code is possible and is used internally, for example, as the boot loader overwrites itself with the Spin Interpreter. Subroutines in Spin (object-based high-level code) use a call-return mechanism requiring use of a call stack. Assembly (PASM, low-level) code needs no call stack. Access to shared memory (32 KB random-access memory (RAM); 32 KB read-only memory (ROM)) is controlled via round-robin scheduling by an internal computer bus controller termed the hub. Each cog also has access to two dedicated hardware counters and a special video generator for use in generating timing signals for PAL, NTSC, VGA, servomechanism-control, and others.[4]
Speed and power management
The Propeller can be clocked using either an internal, on-chip oscillator (providing a lower total part count, but sacrificing some accuracy and thermal stability) or an external crystal oscillator or ceramic resonator (providing higher maximum speed with greater accuracy at higher total cost). Only the external oscillator may be run through an on-chip phase-locked loop (PLL) clock multiplier, which may be set at 1x, 2x, 4x, 8x, or 16x.
Both the on-board oscillator frequency (if used) and the PLL multiplier value may be changed at run-time. If used correctly, this can improve power efficiency; for example, the PLL multiplier can be decreased before a long no operation wait needed for timing purposes, then increased afterward, causing the processor to use less power. However, the utility of this technique is limited to situations where no other cog is executing timing-dependent code (or is carefully designed to cope with the change), since the effective clock rate is common to all cogs.
The effective clock rate ranges from 32 kHz up to 80 MHz (with the exact values available for dynamic control dependent on the configuration used, as described above). When running at 80 MHz, the proprietary interpreted Spin programming language executes approximately 80,000 instruction-tokens per second on each core, giving 8 times 80,000 for 640,000 high-level instructions per second. Most machine-language instructions take 4 clock-cycles to execute, resulting in 20 million instructions per second (MIPS) per cog, or 160 MIPS total for an 8-cog Propeller.
Power use can be reduced by lowering the clock rate to what is needed, by turning off unneeded cogs (which then use little power), and by reconfiguring I/O pins which are unneeded, or can be safely placed in a high-impedance state (tristated), as inputs. Pins can be reconfigured dynamically, but again, the change applies to all cogs, so synchronizing is important for certain designs. Some protection is available for situations where one core attempts to use a pin as an output while another attempts to use it as an input; this is explained in Parallax's technical reference manual.
On-board peripherals
Each cog has access to some dedicated counter-timer hardware, and a special timing signal generator intended to simplify the design of video output stages, such as composite PAL or NTSC displays (including modulation for broadcast) and Video Graphics Array (VGA) monitors. Parallax thus makes sample code available which can generate video signals (text and somewhat low-resolution graphics) using a minimum parts count consisting of the Propeller, a crystal oscillator, and a few resistors to form a crude digital-to-analog converter (DAC). The frequency of the oscillator is important, as the correction ability of the video timing hardware is limited to the clock rate. It is possible to use multiple cogs in parallel to generate a single video signal. More generally, the timing hardware can be used to implement various pulse-width modulation (PWM) timing signals.
ROM extensions
In addition to the Spin interpreter and a boot loader, the built-in ROM provides some data which may be useful for certain sound, video, or mathematics applications:
a bitmap font is provided, suitable for typical character generation applications (but not customizable);
a sine table (16-bit, 2049 entries representing first quadrant, angles from 0 to π/2; other three quadrants are created from the same table).
The math extensions are intended to help compensate for the lack of a floating-point unit, and more primitive missing operations, such as multiplication and division (this is masked in Spin but is a limit for assembly language routines). The Propeller is a 32-bit processor, however, and these tables may have insufficient accuracy for higher-precision uses.
Spin code is written on the Propeller Tool, a GUI-oriented software development platform written for Windows XP.[6] This compiler converts the Spin code into bytecodes that can be loaded (with the same tool) into the main 32 KB RAM, and optionally into the I²C boot electrically erasable programmable read-only memory (EEPROM), of the Propeller chip. After booting the propeller, a bytecode interpreter is copied from the built in ROM into the 2 KB RAM of the primary COG. This COG will then start interpreting the bytecodes in the main 32 KB RAM. More than one copy of the bytecode interpreter can run in other COGs, so several Spin code threads can run simultaneously. Within a Spin code program, assembly code program(s) can be inline inserted. These assembler program(s) will then run on their own COGs.
The Propeller's interpreter for its proprietary multi-threaded Spin computer language is a bytecode interpreter. This interpreter decodes strings of instructions, one instruction per byte, from user code which has been edited, compiled, and loaded onto the Propeller from within a purpose-specific integrated development environment (IDE). This IDE, which Parallax names The Propeller tool, is intended for use under a Microsoft Windows operating system.
The Spin language is a high-level programming language. Because it is interpreted in software, it runs slower than pure Propeller assembly, but can be more space-efficient: Propeller assembly opcodes are 32 bits long; Spin directives are 8 bits long, which may be followed by a number of 8-bit bytes to specify how that directive operates. Spin also allows avoiding significant memory segmentation issues that must be considered for assembly code.
At startup, a copy of the bytecode interpreter (less than 2 KB in size), will be copied into the dedicated RAM of a cog and will then start interpreting bytecode in the main 32 KB RAM. Additional cogs can be started from that point, loading a separate copy of the interpreter into the new cog's dedicated RAM (a total of eight interpreter threads can, thus, run simultaneously). Notably, this means that at least a minimal amount of startup code must be Spin code, for all Propeller applications.
Syntax
Spin's syntax can be divided into blocks, which hold:
VAR – global variables
CON – program constants
PUB – code for a public subroutine
PRI – code for a private subroutine
OBJ – code for objects
DAT – predefined data, memory reservations and assembly code
Example keywords
reboot: causes the microcontroller to reboot
waitcnt: wait for the system counter to equal or exceed a specified value
waitvid: waits for a (video) timing event before outputting (video) data to I/O pins
coginit: starts a processor on a new task
Example program
An example program, (as it would appear in the Propeller Tool editor) which emits the current system counter every 3,000,000 cycles, then is shut down by another cog after 40,000,000 cycles:
The Parallax Propeller is gradually accumulating software libraries which give it similar abilities to Parallax's older BASIC Stamp product; however there is no uniform list of which PBASIC facilities now have Spin equivalents.
It has been jokingly opined that "If two languages were to meet in a bar – Fortran and BASIC – nine months later one would find Spin." This refers to the whitespace formatting of FORTRAN and the keyword-based operation of BASIC.
Package and I/O
The initial version of the chip (called the P8X32A) provides one 32-bit port in a 40-pin 0.6 in dual in-line package (DIP), 44-pin LQFP, or Quad Flat No-leads package (QFN) surface-mount technology package. Of the 40 available pins, 32 are used for I/O, four for power and ground pins, two for an external crystal (if used), one to enable power outage and brownout detection, and one for reset.
All eight cores can access the 32-bit port (designated "A"; there is currently no "B") simultaneously. A special control mechanism is used to avoid I/O conflicts if one core attempts to use an I/O pin as an output while another tries to use it as input. Any of these pins can be used for the timing or pulse-width modulation output techniques described above.
Parallax has stated that it expects later versions of the Propeller to offer more I/O pins and/or more memory.[7]
Virtual I/O devices
The Propeller's designers designed it around the concept of "virtual I/O devices". For example, the HYDRA Game Development Kit, (a computer system designed for hobbyists, to learn to develop retro-style video games) uses the built-in character generator and video support logic to generate a virtualgraphics processing unit-generator that outputs VGA color pictures, PAL/NTSC compatible color pictures or broadcast RF video+audio in software.[8]
The screen capture displayed here was made using a software virtual display driver that sends the pixel data over a serial link to a PC.[9]
Software libraries are available to implement several I/O devices ranging from simple UARTs and Serial I/O interfaces such as SPI, I²C and PS/2 compatible serial mouse and keyboard interfaces, motor drivers for robotic systems, MIDI interfaces and LCD controllers.[10]
Dedicated cores instead of interrupts
The design philosophy of the Propeller is that a hard real-time multi-core architecture negates the need for dedicated interrupt hardware and support in assembly. In traditional CPU architecture, external interrupt lines are fed to an on-chip interrupt controller and are serviced by one or more interrupt service routines. When an interrupt occurs, the interrupt controller suspends normal CPU processing and saves internal state (typically on the stack), then vectors to the designated interrupt service routine. After handling the interrupt, the service routine executes a return from interrupt instruction which restores the internal state and resumes CPU processing.
To handle an external signal promptly on the Propeller, any one of the 32 I/O lines is configured as an input. A cog is then configured to wait for a transition (either positive or negative edge) on that input using one of the two counter circuits available to each cog. While waiting for the signal, the cog operates in low-power mode, essentially sleeping. Extending this technique, a Propeller can be set up to respond to eight independent interrupt lines with essentially zero handling delay. Alternately, one line can be used to signal the interrupt, and then additional input lines can be read to determine the nature of the event. The code running in the other cores is not affected by the interrupt handling cog. Unlike a traditional multitasking single-processor interrupt architecture, the signal response timing remains predictable,[11] and indeed using the term interrupt in this context can cause confusion, since this function can be more properly thought of as polling with a zero loop time.
Boot mechanism
On power up, Brownout detection, software reset, or external hardware reset, the Propeller will load a machine-code booting routine from the internal ROM into the RAM of its first (primary) cog and execute it. This code emulates an I²C interface in software, temporarily using two I/O pins for the needed serial clock and data signals to load user code from an external I2C EEPROM.
Simultaneously, it emulates a serial port, using two other I/O pins that can be used to upload software directly to RAM (and optionally to the external EEPROM). If the Propeller sees no commands from the serial port, it loads the user program (the entry code of which must be written in Spin, as described above) from the serial EEPROM into the main 32 KB RAM. After that, it loads the Spin interpreter from its built-in ROM into the dedicated RAM of its first cog, overwriting most of the bootloader.
Regardless of how the user program is loaded, execution starts by interpreting initial user bytecode with the Spin interpreter running in the primary cog. After this initial Spin code runs, the application can turn on any unused cog to start a new thread, and/or start assembly language routines.
External persistent memory
The Propeller boots from an external serial EEPROM; once the boot sequence completes, this device may be accessed as an external peripheral.[12]
Other language implementations
Apart from Spin and the Propeller's low-level assembler, a number of other languages have been ported to it.
C compiler
Parallax supports Propeller-GCC which is a port of the GNU Compiler Collection (GCC) compiler for the programming languages C and C++, for Propeller[13] (branch release_1_0). The C compiler and the C Library are ANSI C compliant. The C++ compiler is ANSI-C99 compliant. Full C++ is supported with external memory. The SimpleIDE program[14] provides users a simple way to write programs without requiring makefiles. In 2013, Parallax incorporated Propeller-GCC and Simple Libraries into the Propeller-C Learn series of tutorials.[15] Propeller-GCC is actively maintained. Propeller-GCC and SimpleIDE are officially supported Parallax software products.
The ImageCraft ICCV7 for Propeller C compiler has been marked to end-of-life state.[16]
A free ANSI C compiler named Catalina is available.[17] It is based on LCC. Catalina is actively maintained.
BASIC compiler
PropBASIC is a BASIC programming language for the Parallax Propeller Microcontroller.[18] PropBASIC requires Brad's Spin Tool (BST), a cross-platform set of tools for developing with the Parallax Propeller. As of August 2015, BST runs on i386-linux-gtk2, PowerPC-darwin (Mac OS X 10.4 through 10.6), i386-darwin (Mac OS X 10.4 through 10.6) and i386-Win32 (Windows 95 through Windows 7).
A free version that enjoys extensive development and community support is PropForth.[19] It is tailored to the prop architecture, and necessarily deviates from any general standard regarding architectural uniqueness, consistent with the concept of Forth.
Beyond the Forth interpreter, PropForth provides many features that exploit the chip's abilities. Linked I/O refers to the method of associating a stream with process, allowing one process to link to the next on the fly, transparent to the application. This can reduce or eliminate the need of a hardware debugging or JTAG interface in many cases. Multi-Channel Synchronous Serial (MCS) refers to the synchronous serial communication between prop chips. 96-bit packets are sent continuously between two cogs, the result is that applications see additional resources (+6 cogs for each prop chip added) with little or no impact on throughput for a well constructed application.
LogicAnalyzer refers to an extension package that implements software logic analyzer. EEPROMfilesystem and SDfilesystem are extensions that implement rudimentary storage using EEPROM and SD flash.
PagedAssembler refers to the package of optimizations that allow assembler routines to be swapped in (and out by overwrite) on the fly, allowing virtually unlimited application size. Script execution allows extensions to be loaded on the fly, allowing program source up to the size of storage media.
Propeller and Java
There are efforts underway to run the Java virtual machine (JVM) on Propeller. A compiler, debugger, and emulator are being developed.[20]
Pascal compiler and runtime
A large subset of Pascal is implemented by a compiler and interpreter based on the p-code machine P4 system.[21]
Graphical programming
PICo programmable logic controller (PLC, PICoPLC) supports output to Propeller processor. The program is created in a GUI ladder logic editor and resulting code is emitted as Spin source. PICoPLC also supports P8X32 with create-simulate-run feature. No restrictions on target hardware as the oscillator frequency and IO pins are freely configurable in the ladder editor. PICoPLC developer website ([1]).
Future versions
As of 2014[update], Parallax is building a new Propeller[22] with cogs that each will run at about 200 MIPS, whereas the current Propeller's cogs each run at around 20 MIPS. The improved performance would result from a maximum clock speed increase to 200 MHz (from 80 MHz) and an architecture that pipelines instructions, executing an average of nearly one instruction per clock cycle (approximately a ten-fold increase).[7]
^Gracey, Ken (2014). "Propeller 1 Open Source". Parallax Inc. Parallax Inc. Retrieved 23 January 2021. The Propeller 1 (P8X32A) is now a 100% open multicore microcontroller, including all of the hardware and tools ... The Propeller 1 may be the most open chip in its class.
Aaro Pajari Información personalNacimiento 17 de julio de 1897 Asikkala (Finlandia) Fallecimiento 14 de octubre de 1949 (52 años)Kokkola (Finlandia) Nacionalidad FinlandesaInformación profesionalOcupación Militar Rama militar Ejército de tierra de Finlandia Rango militar Mayor general Conflictos Segunda Guerra Mundial y Guerra de Invierno [editar datos en Wikidata] Aaro Olavi Pajari (17 de julio de 1897, Asikkala – 14 de octubre de 1949, Kokkola) fue un mayor general en el ej...
هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (نوفمبر 2020) غابرييل رويز معلومات شخصية الميلاد 12 ديسمبر 1984 (39 سنة) إدينبورغ الإقامة نيويورك مواطنة الولايات المتحدة الحياة العملية المدرسة الأم جامعة أ
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Happy Tree Friends TV series – news · newspapers · books · scholar · JSTOR (November 2020) (Learn how and when to remove this template message) Adult animated television series Happy Tree FriendsDVD cover artCountry of origin United States Canada No. of se...
Open Directory Project Humans do it better Webverzeichnis Sprachen multilingual Online 1998 – 17. März 2017 www.dmoz.org[1] Curlie-Logo Das Open Directory Project (ODP), auch bekannt als dmoz (für „Directory Mozilla“), war das größte von Menschen gepflegte Webverzeichnis des World Wide Web.[2] Die Inhalte des Projekts sind frei und wurden von ehrenamtlichen Redakteuren, den so genannten Editoren, bearbeitet und aktualisiert. Am 28. Februar 2017 wurde...
Esta página cita fontes, mas que não cobrem todo o conteúdo. Ajude a inserir referências. Conteúdo não verificável pode ser removido.—Encontre fontes: ABW • CAPES • Google (N • L • A) (Maio de 2010)Parte da série sobrePolítica da Armênia Constituição Executivo Presidente - Armen Sarksyan Primeiro-ministro - Nikol Pashinyan Legislativo Assembleia Nacional Eleições Eleições parlamentares - 2018 · 202...
The 16 Ortsbezirke of Frankfurt The 46 city districts of Frankfurt Frankfurt am Main nach Ortsbezirken und zugehörigen Stadtbezirke im Jahr 2020 An Ortsbezirk is an administrative division of the city of Frankfurt in Germany, and other towns in Hesse and Rhineland-Palatinate. Frankfurt comprises 16 Ortsbezirke which are subdivided into 46 quarters or city districts. While Frankfurt citizens identify themselves more with the city district they live in, Ortsbezirke are the highest political di...
London borough in United KingdomLondon Borough of HounslowLondon borough Coat of armsCouncil logoHounslow shown within Greater LondonSovereign stateUnited KingdomConstituent countryEnglandRegionLondonCeremonial countyGreater LondonCreated1 April 1965Admin HQHounslowGovernment • TypeLondon borough council • BodyHounslow London Borough Council • LeadershipLeader & Cabinet (Labour) • MayorCouncillor Bishnu Gurung • London Assem...
All-women Soviet aviation unit For other uses, see Night Witches (disambiguation). 588th Night Bomber Regiment (1942–1943)46th Guards Night Bomber Aviation Regiment (1943–1945)A Polikarpov Po-2, the aircraft type used by the regimentActive1942–1945CountrySoviet UnionBranchSoviet Air ForcesRoleHarassment and tactical bombingNickname(s)Night WitchesEngagementsEastern Front of World War IIDecorationsGuards designationOrder of the Red BannerOrder of SuvorovCommandersRegimental CommanderYevd...
For other people, see Munni Begum (disambiguation). Begum of Nawab of Bengal Munni BegumBegum of Nawab of BengalTomb of Munni Begum at Jafarganj CemeteryEmpress consort of the Bengal, Bihar and Orissa1st reign2 June 1757 – 20 October 17602nd reign25 July 1763 – 17 January 1765Born1720Balkunda, Uttar PradeshDied10 January 1813 (aged 93)Murshidabad, IndiaBurialJafarganj Cemetery, MurshidabadSpouseMir JafarIssueNajimuddin Ali Khan Najabat Ali KhanReligionShia Islam Munni Begum was the second...
2005 video gameDemon ChaosDeveloper(s)Genki, Now ProductionPublisher(s)JP: Genki PAL: KonamiPlatform(s)PlayStation 2ReleasePlayStation 2JP: November 24, 2005[2]EU: April 27, 2007[1]AU: May 11, 2007PlayStation NetworkJP: August 20, 2014Genre(s)Hack and slash, ActionMode(s)Single-player Demon Chaos known in Japan as Ikusagami (戦神, lit. War God), is a video game co-developed by Genki and Now Production for the PlayStation 2 (PS2) home game console. The game was published by G...
Mayor of ZrenjaninCoat of arms of ZrenjaninIncumbentSimo Salapurasince 18 September 2020StyleMayorMember ofCity CouncilReports toCity AssemblyResidenceNo official residenceSeatZrenjanin City HallTerm length4 yearsInaugural holderMihalj ŠtefulićFormation1872 (1872) Zrenjanin City Hall - Office of the mayor. This is a list of mayors of Zrenjanin since 1872. The Mayor of Zrenjanin is the head of the City of Zrenjanin (the sixth largest city in Serbia and third largest city in the Aut...
German aeronautical engineer, a pioneer of aerodynamics This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Alexander Lippisch – news · newspapers · books · scholar · JSTOR (November 2015) (Learn how and when to remove this template message) Alexander LippischAlexander Lippisch, with Günther Grönhoff in the co...
Indian newspaper This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Mathrubhumi – news · newspapers · books · scholar · JSTOR (July 2018) (Learn how and when to remove this template message) MathrubhumiTypeDaily newspaperFormatBroadsheetOwner(s)M. V. Shreyams Kumar Mathrubhumi Printing And Publishing Company Lt...
Les sports olympiques sont l'ensemble des sports et disciplines qui sont inscrits au programme des Jeux olympiques d'été et d'hiver. L'actuel programme olympique se compose de 41 sports, de 59 disciplines et de près de 400 épreuves. Les Jeux olympiques d'été comprennent 34 sports (et 44 disciplines) et ceux d'hiver 7 sports (et 15 disciplines). Chaque sport olympique dépend de son autorité de tutelle, à savoir une fédération internationale. Histoire Cette section est vide, insuffis...
2009 video gameMario vs. Donkey Kong:Minis March Again!Cover artDeveloper(s)Nintendo Software TechnologyPublisher(s)NintendoDirector(s)Yukimi ShimuraProducer(s)Shigeki YamashiroKensuke TanabeDesigner(s)Wing S. ChoStephen MortimerMasamichi AbeProgrammer(s)Rory JohnstonArtist(s)Brian McNeelyWriter(s)Wing S. ChoComposer(s)Lawrence SchwedlerSeriesMario vs. Donkey KongPlatform(s)Nintendo DSiNintendo 3DSReleaseNA: June 8, 2009PAL: August 21, 2009JP: October 7, 2009Genre(s)PuzzleMode(s)Single-player...
Indonesian government ministry Ministry of State Apparatus Utilization and Bureaucratic ReformKementerian Pendayagunaan Aparatur Negara dan Reformasi BirokrasiLogo of the Ministry of State Apparatus Utilization and Bureaucratic ReformFlag of the Ministry of State Apparatus Utilization and Bureaucratic ReformMinistry overviewFormed10 June 1968 (1968-06-10)JurisdictionGovernment of IndonesiaHeadquartersJenderal Sudirman Street kav. 69, South Jakarta, Jakarta, IndonesiaMinister re...
Metetheria Possum ta' denbu xkupilja (Trichosurus vulpecula) speċi fis-superordni Australidelphia Klassifikazzjoni xjentifika Renju: Animalia Phylum: Chordata Sottodiviżjoni: *Superordni Ameridelphia Ordni Didelphimorphia Ordni Paucituberculata Superordni Australidelphia Ordni Microbiotheria Ordni Dasyuromorphia Ordni Peramelemorphia Ordni Notoryctemorphia Ordni Diprotodontia Klassi: Mammalia Sottoklassi: Theria Infraklassi: Metatheria Firxa tal-infraklassi Metatheria Japok, jew opossum ta...
La Estrella Osnovni podaci Država Meksiko Savezna država Jalisco Opština Villa Hidalgo Stanovništvo Stanovništvo (2014.) 12[1] Geografija Koordinate 21°38′30″N 102°31′33″W / 21.64167°N 102.52583°W / 21.64167; -102.52583 Vremenska zona UTC-6, leti UTC-5 Nadmorska visina 1841[1] m La EstrellaLa Estrella na karti Meksika La Estrella je naselje u Meksiku, u saveznoj državi Jalisco, u opštini Villa Hidalgo. Prema proceni iz 2014. go...