Positron Compiler Documentation

Installed Include files

Positron16 · Revision 1.1.3.5 · PDF pages 447–449

When the compiler is installed, several useful include files are also loaded in the directory: ‘C:\Users\User Name\PDS\Includes\’, where ‘User Name’ is the name given to the operating system’s user. These are:

• Include file: 'ADin.inc' contains a high-level replacement routine for the compiler's ADin

command written in Positron16 BASIC, so it can be seen how it works, and be altered if required.

• Include file: 'Bus.inc' contains high-level Busin and Busout replacement routines writ-

ten in Positron16 BASIC, so it can be seen how they work, and be altered if required.

• Include file: 'Constrain.inc' contains a set of constrain procedures, similar to Min and

Max procedures.

• Include file: 'Convert24.inc' contains a set of procedures for Signed and Unsigned inte-

ger, 32-bit and 64-bit floating point to string conversion.

• Include file: 'Counter.inc' contains a high-level replacement routine for the compiler's

Counter command written in Positron16 BASIC, so it can be seen how it works, and be altered if required.

•Include file: 'DAC.inc' contains a set DAC peripheral procedures for dsPIC33® devices.
•Include file: 'DS1307.inc' contains a set of routines to access a DS1307 Real Time

Clock/Calendar via a software I2C bus.

• Include file: 'FFT.inc' contains a set of DSP FFT procedures using Q1:15 fixed point

complex numbers, for dsPIC33® devices.

• Include file: 'FileSys24.inc' contains a FAT16/32 File system for PIC24® and dsPIC33®

devices.

• Include file: 'FreqOut.inc' contains a high-level replacement routine for the Freqout

command written in Positron16 BASIC, so it can be seen how it works, and be altered if required.

• Include file: 'Hbus.inc' contains high-level HBusin and HBusout replacement routines

for PIC24® and dsPIC33® devices, so it can be seen how they work, and be altered if required.

• Include file: 'Hbus2.inc' contains high-level HBusin2 and HBusout2 replacement rou-

tines for suitable PIC24® and dsPIC33® devices, so it can be seen how they work, and be altered if required.

• Include file: 'Hbus3.inc' contains high-level HBusin3 and HBusout3 replacement rou-

tines for suitable PIC24® and dsPIC33® devices, so it can be seen how they work, and be altered if required.

• Include file: 'Hitachi.inc' contains a set of replacement routines for an Hitachi HD44780

Alphanumeric LCD written in Positron16 BASIC, for PIC24® and dsPIC33® devices.

View original PDF page 447Open page in PDFOriginal PDF page 447

• Include file: 'I2C.inc' contains a high-level replacement for the compiler's I2Cin and

I2Cout commands on PIC24® or dsPIC33® devices, so it can be seen how they work, and be altered if required.

• Include file: 'ILI9320.inc' contains ILI9320 Colour Graphic interfacing library routines, for

PIC24® and dsPIC33® devices.

• Include file: 'KS0108.inc' contains a set of KS0108 graphic LCD routines for PIC24®

and dsPIC33® devices.

•Include file: 'Maths.inc' contains a set of Mathematic and trigonomety procedures.
•Include file: 'Median_Filters.inc' contains a set of Median filters based upon bubble sort.
•Include file: 'Min_Max.inc' contains a set of Min and Max library procedures. These re-

turn the minimum or maximum of two values passed to them.

• Include file: 'OWire.inc' contains high-level replacement routines for the compiler's One-

Wire commands.

• Include file: 'PCF8574.inc' contains a set of routines to interface with a PCF8574 or

PCF8574A device.

• Include file: 'PulseIn.inc' contains a replacement routine for the compiler's PulseIn com-

mand written in Positron16 BASIC.

• Include file: 'PWM_24.inc' contains a set of Hardware PWM manipulation procedures.

For use with suitable PIC24F® and PIC24H® devices.

• Include file: 'Rev.inc' contains a set of Rev library procedures. These return the reverse

of the value passed to them.

• Include file: 'RTCC_24.inc' contains a set of Real-Time-Clock Calendar peripheral pro-

cedures for suitable PIC24H® devices.

•Include file: 'Scale.inc' contains a set of range conversion procedures.
•Include file: 'Serin_Serout.inc' contains replacement routines for the compiler's Serin

and Serout commands for PIC24® or dsPIC33® devices, so it can be seen how they work, and be altered if required.

• Include file: 'Software_I2C.inc' contains Software I2C writing and reading routines with

'dynamic' pins. The I2C routines use pins that can be changed at run time.

• Include file: 'Software_I2C_Fixed_Pins.inc' contains Software I2C writing and reading

routines using fixed pins for the SDA and SCL lines.

• Include file: 'SPI_33.inc' contains a set of procedures for hardware SPI on suitable

dsPIC33® devices.

• Include file: 'Strings.inc' contains String variable manipulating procedures.

View original PDF page 448Open page in PDFOriginal PDF page 448

• Include file: 'T6963C.inc' contains Toshiba T6963C graphic LCD interface for PIC24®

and dsPIC33® devices.

• Include file: 'TouchScreen.inc' contains routines to interface to an ADS7846 Touch

Screen Controller chip, on PIC24® and dsPIC33® devices.

• Include file: 'Traps.inc' contains procedures to trap device exceptions on PIC24® and

dsPIC33® devices.

•Include file: 'Trig.inc' contains trigonometry procedures.
•Include file: 'Two_Dim_Array.inc' contains two dimensional arrays macros.
•Include file: 'USART1_Buffer24.inc' contains interrupt-driven serial buffer for USART1

receive using a hardware interrupt.

View original PDF page 449Open page in PDFOriginal PDF page 449