XM-014232-PC
38
Continuing the example, assume now that IP_1 & IP_2 are asserted high, and the port queried again:
vfctrl_i2C GET_GPI_INT_PENDING_PORT
> GET_GPI_INT_PENDING_PORT: 2
The result 2 (b‘0010) shows that IP_2 has triggered on a rising edge. Rechecking the port status shows
this event has been cleared.
vfctrl_i2C GET_GPI_INT_PENDING_PORT
> GET_GPI_INT_PENDING_PORT: 0
When IP_1 and IP_2 are driven low and the port status queried again:
vfctrl_i2C GET_GPI_INT_PENDING_PORT
> GET_GPI_INT_PENDING_PORT : 1
result ( b‘0001 ) shows that IP_1 has seen a falling edge interrupt.
4.3.7.
GENERAL PURPOSE OUTPUTS
The following commands are available to write and control GPOs:
Table 4-5 General Purpose Output commands
COMMAND
TYPE DIR
ARGS DESCRIPTION
SET_GPO_PORT
uint32 WRITE
2
Write a value to all pins of a GPIO port.
Arguments are <Port Index> <Value>.
SET_GPO_PIN
uint8
WRITE
3
Write to a specific GPIO pin.
Arguments are <Port Index> <Pin Index> <Value>.
SET_GPO_PIN_ACTIVE_LEVEL uint8
WRITE
3
Set the active level for a specific GPO pin.
Arguments are <Port Index> <Pin Index> <0: active low, 1:
active high>.
By default, all GPO pins are active high
SET_GPO_PWM_DUTY
uint8
WRITE
3
Set the PWM duty for a specific pin.
Value given as an integer percentage.
Arguments are <Port Index> <Pin Index> <Duty in percent>.
SET_GPO_FLASHING
uint32 WRITE
3
Set the serial flash mask for a specific pin. Each bit in the mask
describes the GPO state for a 100ms interval.
Arguments are <Port Index> <Pin Index> <Flash
mask>.
NOTE: All GPOs have a weak pull-down (~30k
Ω
) during reset and initialised to logic low on device
boot and will always drive the pin thereafter.
To illustrate usage of the GPOs the following section considers four common examples. Writing to a
GPO pin, configuring a PWM output, generating a blink sequence and driving a three colour (RGB)
LED.
The following commands toggle OP_2 high then low (XVF3510-UA shown for example):
vfctrl_usb SET_GPO_PIN 0 2 1
vfctrl_usb SET_GPO_PIN 0 2 0
Содержание VocalFusion XVF3510
Страница 1: ...VocalFusion XVF3510 USER GUIDE V4 0...