Description of Operation
14-12
ADSP-BF537 Blackfin Processor Hardware Reference
L
For GPIOs configured as edge-sensitive, a readback of 1 from one
of these registers is sticky. That is, once it is set it remains set until
cleared by user code. For level-sensitive GPIOs, the pin state is
checked every cycle, so the readback value will change when the
original level on the pin changes.
The state of the output is reflected on the associated pin only if the func-
tion enable bit in the
PORTx_FER
register is cleared.
Write operations to the GPIO data registers modify the state of all GPIOs
of a port. In cases where only one or a few GPIOs need to be changed, the
user may write to the GPIO set registers,
PORTxIO_SET
, the GPIO clear
registers,
PORTxIO_CLEAR
, or to the GPIO toggle registers,
PORTxIO_TOGGLE
instead.
While a direct write to a GPIO data register alters all bits in the register,
writes to a GPIO set register can be used to set a single or a few bits only.
No read-modify-write operations are required. The GPIO set registers are
write-1-to-set registers. All 1s contained in the value written to a GPIO set
register sets the respective bits in the GPIO data register. The 0s have no
effect. For example, assume that
PF0
is configured as an output. Writing
Table 14-2. GPIO Value Register Pin Interpretation
POLAR
EDGE
BOTH
Effect of MMR Settings
0
0
X
Pin that is high reads as 1; pin that is
low reads as 0
0
1
0
If rising edge occurred, pin reads as 1;
otherwise, pin reads as 0
1
0
X
Pin that is low reads as 1; pin that is
high reads as 0
1
1
0
If falling edge occurred, pin reads as 1;
otherwise, pin reads as 0
X
1
1
If any edge occurred, pin reads as 1; oth-
erwise, pin reads as 0
Summary of Contents for Blackfin ADSP-BF537
Page 42: ...Contents xlii ADSP BF537 Blackfin Processor Hardware Reference ...
Page 90: ...Development Tools 1 32 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 138: ...Programming Examples 4 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 340: ...SDC Programming Examples 6 84 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 606: ...Programming Examples 9 94 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 660: ...Programming Examples 10 54 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 720: ...Electrical Specifications 11 60 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 840: ...Programming Examples 13 42 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 876: ...Programming Examples 14 36 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 938: ...Programming Examples 15 62 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 958: ...Programming Examples 17 12 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 986: ...Programming Examples 18 28 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1162: ...G 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1218: ...Index I 56 ADSP BF537 Blackfin Processor Hardware Reference ...