Sony CXD5602 User Manual page 92

Table of Contents

Advertisement

GPIO Input Control
Values that are input to I/O pins can be read out as the status registers. As for the inputs, the status registers can be
read out without any special settings. This function is called "input control" in contrast to output control but
actually the "input control" does not control input. The input control is particularly called GPIO input control
when it is used as GPIO.
Settings in GPIO input control are described below.
IO_*.ENZI = 1 (InputEnable)
GP_*.DIR = 1 (OutputDisable)
IOCSYS_IOMD{0,1}.* = 0 (SYS Group) or IOCAPP_IOMD{0,1}.* = 0 (APP Group)
Confirm the input value by reading GP_*.IN.
Figure General Purpose Input/Output (GPIO)-18 shows a visualized function controlled by GPIO parameter that is
set by GPIO input control register.
I/O Function
Pull up
State
IO Pin
Pull Dn
State
Figure General Purpose Input/Output (GPIO)-18 Input Signal Route in the I/O Function Controlled by GPIO
For example, the settings that pin P10_00 is assigned GPIO input control function are described below.
IO_I2C4_BCK.ENZI = 1 (InputEnable)
GP_I2C4_BCK.DIR = 1 (OutputDisable)
IOCSYS_IOMD0.I2C4 = 0
Confirm the input value by reading GP_I2C4_BCK.IN.
Pull-up/Pull-down
Pin Output Enable
GP_*.DIR=1
Pin Output
2
Output(Mode1)
Output(Mode2)
Output(Mode3)
GP_*.IN
Pin Input
Input(Mode1)
Input(Mode2)
Input(Mode3)
IO_*.ENZI=1
Pin Input Enable
Parameter
-92/1010-
CXD5602 User Manual
Pull up/down, LOWEMI
GPIO Control
I/O Configuration
Alternate Function Output
GPIO Status
Alternate Function Input
Wakeup factor
Event
(to PMU)
Detect
Interrupt
(to CPU/DSP)
Input Enable

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents