@GPIO_DATAOUT
register
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
@GPIO_DATAOUT
register
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
Write
@GPIO_CLEARDATAOUT
(0b0000 0000 0000 0001)
gpif-010
Public Version
www.ti.com
General-Purpose Interface Basic Programming Model
A write operation in the clear wakeup-enable register clears the corresponding bit in the
wakeup-enable register when the written bit is 1; a written bit at 0 has no effect.
A read of the clear wakeup-enable register returns the value of the wakeup-enable register.
Clear data output register (GPIOi.
).
A write operation in the clear data output register clears the corresponding bit in the data output
register when the written bit is 1; a written bit at 0 has no effect.
A read of the clear data output register returns the value of the data output register.
25.5.2.2.2 Clear Instruction Example
Assume the data output register (or one of the interrupt/wakeup-enable registers) contains the binary
value 0b0000 0001 0000 0001 and you want to clear bit 0.
With the clear instruction feature, write 0b0000 0000 0000 0001 at the address of the clear data output
register (or at the address of the clear interrupt/wakeup-enable register). After this write operation, a
reading of the data output register (or the interrupt/wakeup-enable register) returns 0b0000 0001 0000
0000; bit 0 is cleared.
NOTE:
Although the general-purpose interface registers are 32 bits wide, only the less-significant
16 bits are represented in this example.
shows an example of a clear instruction.
Figure 25-10. Write @GPIO_CLEARDATAOUT Register Example
25.5.2.3 Set Instruction
25.5.2.3.1 Set Register Addresses
Set interrupt-enable registers (GPIOi.
and GPIOi.
A write operation in the set interrupt-enable1 (or enable2) register sets the corresponding bit in the
interrupt-enable1 (or enable2) register when the written bit is 1; a written bit at 0 has no effect.
A read of the set interrupt-enable1 (or enable2) register returns the value of the interrupt-enable1 (or
enable2) register.
Set wakeup-enable register (GPIOi.
A write operation in the set wakeup-enable register sets the corresponding bit in the wakeup-enable
register when the written bit is 1; a written bit at 0 has no effect.
A read of the set wakeup-enable register returns the value of the wakeup-enable register.
Set data output register (GPIOi.
).
A write operation in the set data output register sets the corresponding bit in the data output register
when the written bit is 1; a written bit at 0 has no effect.
A read of the set data output register returns the value of the data output register.
3481
SWPU177N – December 2009 – Revised November 2010
General-Purpose Interface
Copyright © 2009–2010, Texas Instruments Incorporated