4d Systems 0.96" micro OLED Display $OLED-96-G2 uOLED-96-G2 Data Sheet
Product codes
uOLED-96-G2
4D SYSTEMS uOLED-96G2
© 2014 4D SYSTEMS Page 6 of 18 www.4dsystems.com.au
mi
cr
oO
LE
D
GO
LDE
LO
X
DI
SP
LA
Y
4. Hardware Interface - Pins
The uOLED-96G2 provides both a hardware and
software interface. This section describes in detail
the hardware interface pins of the device.
Serial Ports - COM0 UART
4.1.
The uOLED-96G2 has a dedicated hardware UART
that can communicate with external serial devices.
The primary features are:
• Full-Duplex 8 bit data transmission and reception
through the TX and RX pins.
• Data format: 8 bits, No Parity, 1 Stop bit.
• Auto Baud feature.
• Baud rates from 300 baud up to 600K baud.
The Serial port is also the primary interface for
downloading compiled 4DGL application code as
well as future PmmC/Firmware updates for the on-
board GOLDELOX processor. Refer to Section 5.
PmmC/Firmware Programming for more details.
TX pin 3 (Serial Transmit):
Asynchronous Serial port Transmit pin, TX. The
serial output data is at TTL voltage levels. Connect
this pin to external serial device Rx signal.
RX pin 5 (Serial Receive):
Asynchronous Serial port Receive pin, RX. Connect
this pin to external serial device Transmit Tx signal.
General Purpose I/O
4.2.
There are 2 GPIO pins available, IO1 and IO2. Each
GPIO has a multitude of high level functions
associated with it and these can be selected within
4DGL user application code.
Refer to the separate document titled
“GOLDELOX-4DGL-Internal-Functions.pdf” for a
complete set of built in 4DGL library functions.
IO1 pin 6 (General Purpose IO1):
General purpose IO1 pin. The following table lists
the available GPIO functions and features.
IO2 pin 4 (General Purpose IO2):
General purpose IO2 pin. The following table lists
the available GPIO functions and features.
Note: GPIO pins are 5.0V tolerant.
GPIO Functions and Features
Function
IO1 IO2
Digital Input
√
√
Digital Output
√
√
A/D Converter 8/10 bits
√
--
Joystick – 5 position multi-switch
√
--
Dallas 1-Wire support
√
√
Sound Generation, RTTTL Tunes
√
√
Input/Output:
Both IO1 and IO2 pins can be programmed to be
Inputs or Outputs. Diagram below shows a LED
connected to IO1 (programmed as an output) and
a button connected to IO2 (programmed as an
input).
Analogue to Digital Converter:
The IO1 pin can be programmed as an A/D input.
Option is available to select 8 bit or 10 bit
resolution. Diagram below is a circuit of a Light
Dependant Resistor (LDR) connected to IO1 to
measure and record changes in ambient light.
Joystick - Multi Switch:
Multiple buttons or a multi-switch Joystick can be
connected to the IO1 pin on the uOLED-96G2
module. Up to five buttons or a 5 position multi-
switch joystick connects to a junction of a resistor
ladder network that forms a voltage divider. The
A/D converter of the IO1 pin internally reads the
analogue value and decodes it accordingly. This
feature is supported by dedicated 4DGL library
functions. The following diagrams indicate how to
connect up to five individual buttons or a multi
switch joystick to the IO1 pin.