Controlling The Gpio Pins - Epson CMOS 32-Bit Single Chip Microcomputer S1C33L03 Technical Manual

Cmos 32-bit single chip microcomputer
Table of Contents

Advertisement

VII LCD CONTROLLER BLOCK: LCD CONTROLLER

Controlling the GPIO Pins

The pins described below can be used as general-purpose output (GPO) pins or general-purpose input/output
(GPIO) pins, through panel selection or other settings.
General-purpose output (GPO) pins
The FPDAT[3:0] signal output pins can be used as general-purpose output GPO[6:3] pins when a 4-bit LCD
panel (LDDW[1:0] (D[1:0])/0x39FFE1) = "00") is used. The GPO output control bits are listed in Table 2.19.
Pin name
FPDAT0
FPDAT1
FPDAT2
FPDAT3
Setting the GPOxD bit to 1 drives the GPOx output high, and setting the GPOxD bit to 0 drives the GPOx
output low.
Note: In power-save or doze mode, these pins are fixed low.
General-purpose input/output (GPIO) pins
While the LCD controller is enabled (LCDCEN (D5)/LCDC mode register 2 = "1"), bus release requests
(#BUSREQ) from outside the chip can be disabled. When the BREQEN (D2)/LCDC system control register
(0x39FFFD) is set to "0" (default), bus release requests from outside will no longer be accepted while
LCDCEN = "1". As a result, the pins listed below will not be used for bus-release purposes, and can therefore
be used as general-purpose input/output (GPIO) pins. Because these pins are usable only while the LCD
controller remains enabled, the control registers in the LCD controller block must be used to control their
direction for input or output, as well as to read/write data to and from them.
GPIO signal
Pin name
#BUSREQ/P34
#BUSACK/P35
#BUSGET/P31
Set the GPIOxC bits to "0" (default) when the GPIOx pins are used as input ports, or "1" when the GPIOx
pins are used as output ports.
When the pins are set for input, it possible to determine their input-voltage level by reading GPIOxD. The
value "1" is indicated when the input voltage is high, and "0" indicated when the input voltage is low.
When the pins are set for output, write output data to GPIOxD. Setting the GPIOxD bit to "1" drives the
GPIOx output high, and setting the GPIOxD bit to "0" drives the GPIOx output low.
B-VII-2-30
Table 2.19 GOP Control Bits
GPO signal name
GPO3
GPO3D (D3)/GPIO status/control register(0x39FFF9)
GPO4
GPO4D (D4)/GPIO status/control register(0x39FFF9)
GPO5
GPO5D (D5)/GPIO status/control register(0x39FFF9)
GPO6
GPO6D (D6)/GPIO status/control register(0x39FFF9)
Table 2.20 GPIO Control Bits
I/O control bit
name
GPIO0
GPIO0C (D0)/GPIO configuration
register(0x39FFF8)
GPIO1
GPIO1C (D1)/GPIO configuration
register(0x39FFF8)
GPIO2
GPIO2C (D2)/GPIO configuration
register(0x39FFF8)
Output control bit
GPIO0D (D0)/GPIO status/control
register(0x39FFF9)
GPIO1D (D1)/GPIO status/control
register(0x39FFF9)
GPIO2D (D2)/GPIO status/control
register(0x39FFF9)
EPSON
I/O data
S1C33L03 FUNCTION PART

Advertisement

Table of Contents
loading

Table of Contents