W7500x Reference Manual Version1.1.0
155 / 399
Upper byte masked
access
register
lower byte masked
access
register
0x0800
0x0400
DATA /Control
register
0x0000
Address
offset
DATAOUT = 0x32
E8
set bit[1:0] to 1
clear bit[7:6] to 0
bit mask : 'b1100_0011(0xC3)
MASK_LOWBYTE[0xC3] = 0x03
Address offset =
0xC3*4 = 0x70C
DATAOUT = 0x32
2B
MASKLOWBYTE is a data
array of 32-bit x 256
Figure 15. MASK LOWBYTE access
To update some of the bits in the upper eight bits of the GPIO port, users can use the
MASKHIGHBYTE array as Figure 16 below.
Upper byte masked
access
register
lower byte masked
access
register
0x0800
0x0400
DATA /Control
register
0x0000
Address
offset
DATAOUT = 0x
32
2B
set bit[12:11] to 0
clear bit[15] to 1
bit mask : 'b1001_1000(0x98)
MASK_LOWBYTE[0x98] = 0x8000
Address offset =
0x98*4 = 0xA60
DATAOUT = 0x
A2
2B
MASKHIGHBYTE is a data
array of 32-bit x 256
Figure 16 MASK HIGHBYTE access