XM-014232-PC
36
}
I2C Master (XVF3510-UA only)
-
100kbps SCL clock speed
-
Register read/write (byte)
-
Up to 56 byte I2C read/write
The following sections describe the configuration and usage of each peripheral interface.
4.3.5.
GENERAL PURPOSE I/O PINS
There are four general input and four general output pins provided on the XVF3510.
Table 4-3 GPIO pin table
NAME
DESCRIPTION
I/O
IP_0
General purpose input
IN
IP_1
General purpose input
IN
IP_2
General purpose input
IN
IP_3
General purpose input
IN
OP_0
General purpose output
OUT
OP_1
General purpose output
OUT
OP_2
General purpose output
OUT
OP_3
General purpose output
OUT
4.3.6.
GENERAL PURPOSE INPUTS
The following commands are available to read and control GPIs. Note that interrupt registers are set
to 1 when an edge has been detected and 0 when no event has occurred. All interrupt registers are
initialised to 0 on boot.
IP_0 is special in that, when interrupts are enabled, they are automatically serviced inside the chip
and an HID report is generated over USB accordingly. See the
USB HID section for further details.
The following parameters are available to interrogate and configure the GPI behaviour.
Table 4-4 General purpose Input commands
COMMAND
TYPE DIR
ARGS DESCRIPTION
GET_GPI
uint32 READ
1
Read current level of all pins of the selected GPIO port. Pin 0
corresponds to the LSB of the port.
GET_GPI_INT_PENDING_PIN
uint32 READ
1
Read whether interrupt was triggered for selected pin. The
interrupt pending register for the selected pin is cleared by
this command.