Updating firmware

Questions about the BASICtools and MakeItC
Post Reply
basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Updating firmware

Post by basicchip »

There are a number of changes between the integer and floating point BASIC versions.

The subroutine syntax for built in keywords like WAIT is now enforced.

WAIT(200) ' is now required rather than WAIT 200

The LPC17xx series parts have 4 UARTs, but the integer BASIC only supported 2. In order to support more UARTs the compiler added keywords for BAUD, RXD and TXD. These conflict with the versions defined in the bit banged SERIAL.bas library. Those routines in the library have been renamed bbBAUD, bbRXD and bbTXD.

BAUD(3)=19200 ' initializes the UART3 hardware
TXD(3)=55 ' sends a character out UART3
X=RXD(3) ' receives a character if available or -1 if not



basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Re: Updating firmware

Post by basicchip »

Also IO, IN, OUT, INPUT, OUTPUT, DIR, HIGH and LOW have been expanded to support port beyond port 0.

Port 1 is accessed as IO(32) through IO(63). Port 2 uses 64 through 95 and so on.

But to use thes you have to update the compiler as well as the firmware. We test new compilers against earlier firmware, but assume that new compilers will be used with new firmware.

Post Reply