Positron Compiler Documentation

Limited 12-bit Core Device Compatibility.

Positron8 · Revision 4.0.6.5 · PDF pages 74–75

The ‘legacy’ 12-bit core microcontrollers have been available for a long time, and are at the heart of many excellent, and complex projects. However, with their limited architecture, they were never intended to be used for high level languages such as BASIC. Some of these limits include only a two-level hardware stack and small amounts of general purpose RAM memory. The code page size is also small at 512 bytes. There is also a limitation that calls and computed jumps can only be made to the first half (256 words) of any code page. Therefore, these limitations have made it necessary to eliminate some compiler commands and modify the operation of others.

While many useful programs can be written for the 12-bit core devices using the compiler, there will be some applications that are not suited to them. Choosing a standard or enhanced 14-bit core device with more resources will, in most instances, be the best solution, or better still, choose a suitable 18F device.

Original diagram or table from Positron8, PDF page 74
Original figure / layout · PDF page 74
Text in this figure or table

table below: -

CommandReason for omission
DwordsMemory limitations
FloatsMemory limitations
Signed VariablesMemory limitations
ADinNo internal ADCs
CdataNo write modify feature
ClsLimited stack size
CreadNo write modify feature
CursorLimited stack size
CwriteNo write modify feature
DTMFoutLimited stack size
EdataNo on-board EEPROM
EreadNo on-board EEPROM
EwriteNo on-board EEPROM
FreqoutLimited stack size

No graphic LCD support LCDread

LCDwriteNo graphic LCD support
HPWMNo 12-bit MSSP modules
HRsinNo hardware serial port
HRsoutNo hardware serial port
HSerinNo hardware serial port
HSeroutNo hardware serial port
InterruptsNo Interrupts
PixelNo graphic LCD support
SeroutLimited memory
SerinLimited memory
Sound2No graphic LCD support
UnPlotNo graphic LCD support
USBinNo 12-bit USB devices
USBoutNo 12-bit USB devices
PlotNo graphic LCD support

Some of the commands that are not supported for the 12-bit core devices are illustrated in the

View original PDF page 74Open page in PDFOriginal PDF page 74

Trying to use any of the unsupported commands with 12-bit core devices will result in the compiler producing numerous Syntax errors. If any of these commands are a necessity, then choose a comparable standard or enhanced 14-bit core device, or better still, an 18F device.

The available commands that have had their operation modified are: -

Print, Rsout, Busin, Busout

Most of the modifiers are not supported for these commands because of memory and stack size limitations, this includes the At, and the Str modifier. However, the @, Dec and Dec3 modifiers are still available.

View original PDF page 75Open page in PDFOriginal PDF page 75