User manual

...the world's most energy friendly microcontrollers
2012-04-24 - Giant Gecko Family - d0053_Rev0.96 757
www.energymicro.com
Bit Name Reset Access Description
31:2 Reserved
To ensure compatibility with future devices, always write bits to 0. More information in Section 2.1 (p. 3)
1:0 DRIVEMODE 0x0 RW Drive Mode Select
Select drive mode for all pins on port configured with alternate drive strength.
Value Mode Description
0 STANDARD 6 mA drive current
1 LOWEST 0.5 mA drive current
2 HIGH 20 mA drive current
3 LOW 2 mA drive current
32.5.2 GPIO_Px_MODEL - Port Pin Mode Low Register
Offset Bit Position
0x004
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
Access
RW
RW
RW
RW
RW
RW
RW
RW
Name
MODE7
MODE6
MODE5
MODE4
MODE3
MODE2
MODE1
MODE0
Bit Name Reset Access Description
31:28 MODE7 0x0 RW Pin 7 Mode
Configure mode for pin 7. Enumeration is equal to MODE0.
27:24 MODE6 0x0 RW Pin 6 Mode
Configure mode for pin 6. Enumeration is equal to MODE0.
23:20 MODE5 0x0 RW Pin 5 Mode
Configure mode for pin 5. Enumeration is equal to MODE0.
19:16 MODE4 0x0 RW Pin 4 Mode
Configure mode for pin 4. Enumeration is equal to MODE0.
15:12 MODE3 0x0 RW Pin 3 Mode
Configure mode for pin 3. Enumeration is equal to MODE0.
11:8 MODE2 0x0 RW Pin 2 Mode
Configure mode for pin 2. Enumeration is equal to MODE0.
7:4 MODE1 0x0 RW Pin 1 Mode
Configure mode for pin 1. Enumeration is equal to MODE0.
3:0 MODE0 0x0 RW Pin 0 Mode
Configure mode for pin 0.
Value Mode Description
0 DISABLED Input disabled. Pullup if DOUT is set.
1 INPUT Input enabled. Filter if DOUT is set
2 INPUTPULL Input enabled. DOUT determines pull direction
3 INPUTPULLFILTER Input enabled with filter. DOUT determines pull direction
4 PUSHPULL Push-pull output
5 PUSHPULLDRIVE Push-pull output with drive-strength set by DRIVEMODE
6 WIREDOR Wired-or output
7 WIREDORPULLDOWN Wired-or output with pull-down
8 WIREDAND Open-drain output
9 WIREDANDFILTER Open-drain output with filter
10 WIREDANDPULLUP Open-drain output with pullup
11 WIREDANDPULLUPFILTER Open-drain output with filter and pullup
12 WIREDANDDRIVE Open-drain output with drive-strength set by DRIVEMODE