Parallax LCD interface

Questions on other types of hardware and getting it talking to the ARM CPU
Post Reply
YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Parallax LCD interface

Post by YahooArchive »

> from the help line

>Hi, I have the ArmMite board and I am trying to use the basic command
SEROUT. I am trying to >communicate with the Parallax serial LCD.

while I can't test it, just a quick back of the envelope shot at it

PBASIC code

SYMBOL LcdCls = $0C ' clear LCD (use PAUSE 5 after)
SYMBOL LcdCR = $0D ' move pos 0 of next line
SYMBOL LcdBLon = $11 ' turn backlight on
SYMBOL LcdBLoff = $12 ' turn backlight off
SYMBOL LcdOff = $15 ' LCD off
SYMBOL LcdOn1 = $16 ' LCD on; cursor off, blink off

SYMBOL TX = 8

Main:
SEROUT TX, T2400, (LcdBLoff, LcdOn1, LcdCls)
PAUSE 250
SEROUT TX, T2400, ("THE BASIC STAMP")

ARMbasic code

#define LcdCls $0C ' clear LCD (use PAUSE 5 after)
#define LcdCR $0D ' move pos 0 of next line
#define LcdBLon $11 ' turn backlight on
#define LcdBLoff $12 ' turn backlight off
#define LcdOff $15 ' LCD off
#define LcdOn1 $16 ' LCD on; cursor off, blink off

#define TX 8

DIM MSG(20) as STRING

Main:
MSG(0) = LcdBLoff
MSG(1) = LcdOn1
MSG(2) = LcdCls
SEROUT (TX, 9600, 1, 3, MSG)
WAIT (5)
MSG = "THE ARM EXPRESS"
SEROUT (TX, 9600, 1, 0, MSG) ' this time the string is 0 terminated

Notes

BASIC doesn't have \char like C, so you have to build those strings a
character at a time

While we could add that, and may at some point, its not in any BASIC I
know of, and we try to stay away from doing things that way.



YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: Parallax LCD interface

Post by YahooArchive »

> from the help line
>I have a prototype project that requires a color LCD display(@ 3.2 dim.). The
hardware will be sampling potentiometer positions and displaying bar graphs,
maybe simulated pots, reading and displaying temperature etc. Can you recommend
an LCD provider and will the SPI on the super pro do the job?

For displays check out Newhaven or Matrix Orbital, both available at Digikey
along with lots of others.

The SuperPRO can easily control these types of LCDs, we've been using the Matrix
Orbital and Crystal Fonz starting with the ARMmite.

Post Reply