Page 1 of 1

Updating firmware

Posted: Sat Jun 15, 2013 2:23 pm
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

Re: Updating firmware

Posted: Sat Jun 15, 2013 2:30 pm
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.