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