
120
Boards
© Tibbo Technology Inc.
Further information on status LEDs can be found in
The EM2001 also has two control lines -- SG and SR -- for connecting to external
green and red status LEDs. These external LEDs work in parallel with the onboard
LEDs. Since the maximum sink current of an I/O line is 10mA and the onboard LEDs
already consume around 7mA, externally connected LEDs must not consume over
3mA of current. Connect external SR and SG LEDS through buffers (logic gates) if
higher current is desired. SG and SR lines are active low, i.e. an LEDs must turn on
when its control line is at LOW. Take this into consideration when designing the LED
circuit.
Your Tibbo BASIC/C application can control red and green status LEDs, as well as up
to four externally connected LED pairs through the pattern (pat.) object, which is
documented in the TIDE, TiOS, Tibbo BASIC, and Tibbo C Manual.
5.1.1.11
External LCD Support
Unlike the
does not
offer flexible mapping for
LCD control lines, nor does it support several different LCD controller models. The
only controller supported is SSD1964. Moreover, only one specific configuration is
supported:
·
Data bus width is 8 bits
·
Color depth is 24 bits
Here is how you
must
connect the SSD1964-based LCD controller to the EM2001:
·
Connect the data bus lines DB7-0 to GPIO lines 32-39 (port 4).
·
Connect the RST line to GPIO44.
·
Connect the RS (command/data) line to GPIO43.
·
Connect the WR line to GPIO42.
·
Optionally connect the RD line to GPIO41 (this line is not used on the current
driver version but may be used in the future).
·
Connect the CS line to GPIO40.
·
Note that most LCD panels have a dedicated pin for controlling the backlight. If
your LCD panel has such a line, connect it to any suitable line of the EM2001 and
control it from your Tibbo BASIC/C code.
"Programmable Hardware Manual" provides an initialization example for the LCD. See
THE REFERENCE -> Platforms -> EM2000W -> Working with the LCD
.
5.1.1.12
External Keypad support
The EM2001 supports both matrix and binary keypads. A typical matrix keypad is
shown on the schematic diagram below: