encyclopegia.org

Pic Micro Pascal

Pic Micro Pascal PMP is a free Pascal cross compiler for PIC microcontrollers.[src] It is intended to work with the Microchip Technology MPLAB suite installed; it has its own IDE (Scintilla-based) and it is a highly optimized compiler.[src] It is intended to target 8-bit processors only: PIC10, PIC12, PIC16, PIC16 enhanced, PIC18.[src] The main axis of development was to avoid special built-in functions and procedures to interface hardware registers.[src] These registers are accessed directly as variables, there are no wrapper functions, and emitted code is quite compact.[src] PMP does not include an assembler or linker.[src] It is designed to work with the Microchip MPLAB suite installed, and directly uses MPASM and MPLINK .lkr files for memory mapping initializations; as of V2 it comes with its own database for processor features and standard register definitions.[src] PMP also supports the GPUTILS suite.[src]

Pic Micro Pascal PMP is a free Pascal cross compiler for PIC microcontrollers.[src] It is intended to work with the Microchip Technology MPLAB suite installed; it has its own IDE (Scintilla-based) and it is a highly optimized compiler.[src] It is intended to target 8-bit processors only: PIC10, PIC12, PIC16, PIC16 enhanced, PIC18.[src] The main axis of development was to avoid special built-in functions and procedures to interface hardware registers.[src] These registers are accessed directly as variables, there are no wrapper functions, and emitted code is quite compact.[src] PMP does not include an assembler or linker.[src] It is designed to work with the Microchip MPLAB suite installed, and directly uses MPASM and MPLINK .lkr files for memory mapping initializations; as of V2 it comes with its own database for processor features and standard register definitions.[src] PMP also supports the GPUTILS suite.[src] ==Language features== PMP does not support object-oriented programming, but a RECORD can have methods.[src] As of 2014, the implementation supports multiple file compiling, by include directives and by a per unit concept.[src] PMP supports a unique feature: variables may be declared in EEPROM and then used transparently as any other variable (with some limitations).[src] PMP's data types: simple records (subset): RECORD bit booleans: BOOLEAN unsigned and signed 8-bit integer types: CHAR, BYTE, SHORTINT unsigned and signed 16-bit integer types: WORD, INTEGER unsigned and signed 32-bit integer types: LONGWORD, LONGINT enumerations arrays (one dimension): ARRAY strings (variable length): STRING pointers (subset) floating point variables and operations (PIC16 and PIC18 only): two FP formats, one 48-bit internal (REAL) and a subset of the IEEE 32 bits format (SINGLE); both formats do not handle infinite and NaN ==Language dialect== PMP syntax is very close to the non-OOP syntax of Turbo Pascal or Delphi, with some extensions to support some target processor features (bit manipulations ...).[src] program Beacon; uses A2D; var I_IR_Receiver : boolean @PORTB.4; // TSOP1736 IR receiver O_LED_RECEIVING : boolean @PORTC.0; // Receive in progress O_LED_ERROR : boolean @PORTC.1; // Receive error O_PWM_A : boolean @PORTC.4; // PWM to US transducer phase A (addr cannot be changed) O_PWM_B : boolean @PORTC.5; // PWM to US transducer phase B (addr cannot be changed) { Beacon Addr dip switches } I_ADDR_0 : boolean @PORTA.2; I_ADDR_1 : boolean @PORTA.5; CONST LOW_BATT_SENSOR_CHANNEL = ANS0; // Channel for battery measurement (RA0) { Led on/off values } cLED_ON = TRUE; cLED_OFF = FALSE; // pins that are inputs TRISA_MASK = [I_NOT_OPTION_SERIAL, I_ADDR_0, I_ADDR_1]; TRISB_MASK = [I_IR_Receiver]; TRISC_MASK = []; begin ...[src] PORTA := 0; // Prepare all outputs TRISA := TRISA_MASK; // Set pins direction ...[src] A2D_Init([LOW_BATT_SENSOR_CHANNEL], 5, adcFosc16, adm8Bits, advVdd); Baud(19200); // setup serial port assign(output, SerialPort_Output); writeln('Hello world!'); ...[src] end.[src] Since version 1.6, some language "extensions" may be used (with explicit activation), most of them coming from other Pascal-Like languages such as Oberon or Modula: ...[src] FOR I in SomeVar DO (* SomeVar may be any variable or an enumeration type *) FOR I := X TO Y BY n DO (* Specification of the variable step value *) LOOP END (* Forever loop *) IF Condition1 THEN ELSIF Condition2 THEN (* Shortcut for ELSE IF *) RETURN SomeResult (* Function's result value assignment and exit *) ==History== PMP was created in 2006 by Philippe Paternotte and released as freeware for now, as free software in the future.[src] The latest version is 2.0.6, September 2014.[src] PMP has been the subject of an article in SERVO Magazine in March 2015.[src]

28 sentences · 28 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Pic Micro Pascal." encyclopegia.org, 2026, https://encyclopegia.org/wiki/pic-micro-pascal. Accessed 25 November 2026.

Chicago

"Pic Micro Pascal." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/pic-micro-pascal.

APA

encyclopegia.org. (2026). Pic Micro Pascal. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/pic-micro-pascal

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Pascal Corminboeuf

stub · references available

UCSD Pascal

stub · references available

Pascal Beaupré

stub · references available

Pascal Ojigwe

stub · references available

Pascal Danel

stub · references available

Pascal Feindouno

stub · references available

Martin Pascal Hubert Strens

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1339035652 · 0.5 · snapshot enwiki-001339035652

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.