\n

GPIO2

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0x28 byte (0x0)
mem_usage : registers
protection : not protected

Registers

GP2CON

GP2IN

GP2OUT

GP2SET

GP2CLR

GP2TGL

GP2OEN

GP2PUL

GP2OCE


GP2CON

GPIO Port 2 configuration
address_offset : 0x0 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

GP2CON GP2CON read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CON0 CON1 CON2 CON3 CON4

CON0 : Configuration bits for P2.0
bits : 0 - 1 (2 bit)

Enumeration:

0 : GPIO

None

1 : I2CSCL

None

End of enumeration elements list.

CON1 : Configuration bits for P2.1
bits : 2 - 3 (2 bit)

Enumeration:

0 : GPIO

None

1 : I2CSDA

None

End of enumeration elements list.

CON2 : Configuration bits for P2.2
bits : 4 - 5 (2 bit)

Enumeration:

0 : GPIO

None

End of enumeration elements list.

CON3 : Configuration bits for P2.3
bits : 6 - 7 (2 bit)

Enumeration:

1 : SWCLK

None

End of enumeration elements list.

CON4 : Configuration bits for P2.4
bits : 8 - 9 (2 bit)

Enumeration:

1 : SWDATA

None

End of enumeration elements list.


GP2IN

GPIO Port 2 data input.
address_offset : 0x14 Bytes (0x0)
size : 8 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

GP2IN GP2IN read-write 0 1 2 3 4 5 6 7 Resets to 0 0 0 0 0 0 0 0 IN0 IN1 IN2 IN3 IN4 IN5 IN6 IN7

IN0 : Input for port pin
bits : 0 - 0 (1 bit)

Enumeration:

0 : LOW

None

1 : HIGH

None

End of enumeration elements list.

IN1 : Input for port pin
bits : 1 - 1 (1 bit)

Enumeration:

0 : LOW

None

1 : HIGH

None

End of enumeration elements list.

IN2 : Input for port pin
bits : 2 - 2 (1 bit)

Enumeration:

0 : LOW

None

1 : HIGH

None

End of enumeration elements list.

IN3 : Input for port pin
bits : 3 - 3 (1 bit)

Enumeration:

0 : LOW

None

1 : HIGH

None

End of enumeration elements list.

IN4 : Input for port pin
bits : 4 - 4 (1 bit)

Enumeration:

0 : LOW

None

1 : HIGH

None

End of enumeration elements list.

IN5 : Input for port pin
bits : 5 - 5 (1 bit)

Enumeration:

0 : LOW

None

1 : HIGH

None

End of enumeration elements list.

IN6 : Input for port pin
bits : 6 - 6 (1 bit)

Enumeration:

0 : LOW

None

1 : HIGH

None

End of enumeration elements list.

IN7 : Input for port pin
bits : 7 - 7 (1 bit)

Enumeration:

0 : LOW

None

1 : HIGH

None

End of enumeration elements list.


GP2OUT

GPIO Port 2 data out.
address_offset : 0x18 Bytes (0x0)
size : 8 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

GP2OUT GP2OUT read-write 0 1 2 3 4 5 6 7 Resets to 0 0 0 0 0 0 0 0 OUT0 OUT1 OUT2 OUT3 OUT4 OUT5 OUT6 OUT7

OUT0 : Output for port pin
bits : 0 - 0 (1 bit)

Enumeration:

0 : LOW

None

1 : HIGH

None

End of enumeration elements list.

OUT1 : Output for port pin
bits : 1 - 1 (1 bit)

Enumeration:

0 : LOW

None

1 : HIGH

None

End of enumeration elements list.

OUT2 : Output for port pin
bits : 2 - 2 (1 bit)

Enumeration:

0 : LOW

None

1 : HIGH

None

End of enumeration elements list.

OUT3 : Output for port pin
bits : 3 - 3 (1 bit)

Enumeration:

0 : LOW

None

1 : HIGH

None

End of enumeration elements list.

OUT4 : Output for port pin
bits : 4 - 4 (1 bit)

Enumeration:

0 : LOW

None

1 : HIGH

None

End of enumeration elements list.

OUT5 : Output for port pin
bits : 5 - 5 (1 bit)

Enumeration:

0 : LOW

None

1 : HIGH

None

End of enumeration elements list.

OUT6 : Output for port pin
bits : 6 - 6 (1 bit)

Enumeration:

0 : LOW

None

1 : HIGH

None

End of enumeration elements list.

OUT7 : Output for port pin
bits : 7 - 7 (1 bit)

Enumeration:

0 : LOW

None

1 : HIGH

None

End of enumeration elements list.


GP2SET

GPIO Port 2 data out set
address_offset : 0x1C Bytes (0x0)
size : 8 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

GP2SET GP2SET read-write 0 1 2 3 4 5 6 7 Resets to 0 0 0 0 0 0 0 0 SET0 SET1 SET2 SET3 SET4 SET5 SET6 SET7

SET0 : Set Output High for port pin
bits : 0 - 0 (1 bit)

Enumeration:

1 : SET

None

End of enumeration elements list.

SET1 : Set Output High for port pin
bits : 1 - 1 (1 bit)

Enumeration:

1 : SET

None

End of enumeration elements list.

SET2 : Set Output High for port pin
bits : 2 - 2 (1 bit)

Enumeration:

1 : SET

None

End of enumeration elements list.

SET3 : Set Output High for port pin
bits : 3 - 3 (1 bit)

Enumeration:

1 : SET

None

End of enumeration elements list.

SET4 : Set Output High for port pin
bits : 4 - 4 (1 bit)

Enumeration:

1 : SET

None

End of enumeration elements list.

SET5 : Set Output High for port pin
bits : 5 - 5 (1 bit)

Enumeration:

1 : SET

None

End of enumeration elements list.

SET6 : Set Output High for port pin
bits : 6 - 6 (1 bit)

Enumeration:

1 : SET

None

End of enumeration elements list.

SET7 : Set Output High for port pin
bits : 7 - 7 (1 bit)

Enumeration:

1 : SET

None

End of enumeration elements list.


GP2CLR

GPIO Port 2 data out clear.
address_offset : 0x20 Bytes (0x0)
size : 8 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

GP2CLR GP2CLR read-write 0 1 2 3 4 5 6 7 Resets to 0 0 0 0 0 0 0 0 CLR0 CLR1 CLR2 CLR3 CLR4 CLR5 CLR6 CLR7

CLR0 : Set Output Low for port pin
bits : 0 - 0 (1 bit)

Enumeration:

1 : CLR

None

End of enumeration elements list.

CLR1 : Set Output Low for port pin
bits : 1 - 1 (1 bit)

Enumeration:

1 : CLR

None

End of enumeration elements list.

CLR2 : Set Output Low for port pin
bits : 2 - 2 (1 bit)

Enumeration:

1 : CLR

None

End of enumeration elements list.

CLR3 : Set Output Low for port pin
bits : 3 - 3 (1 bit)

Enumeration:

1 : CLR

None

End of enumeration elements list.

CLR4 : Set Output Low for port pin
bits : 4 - 4 (1 bit)

Enumeration:

1 : CLR

None

End of enumeration elements list.

CLR5 : Set Output Low for port pin
bits : 5 - 5 (1 bit)

Enumeration:

1 : CLR

None

End of enumeration elements list.

CLR6 : Set Output Low for port pin
bits : 6 - 6 (1 bit)

Enumeration:

1 : CLR

None

End of enumeration elements list.

CLR7 : Set Output Low for port pin
bits : 7 - 7 (1 bit)

Enumeration:

1 : CLR

None

End of enumeration elements list.


GP2TGL

GPIO Port 2 pin toggle.
address_offset : 0x24 Bytes (0x0)
size : 8 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

GP2TGL GP2TGL read-write 0 1 2 3 4 5 6 7 Resets to 0 0 0 0 0 0 0 0 TGL0 TGL1 TGL2 TGL3 TGL4 TGL5 TGL6 TGL7

TGL0 : Toggle Output for port pin
bits : 0 - 0 (1 bit)

Enumeration:

1 : TGL

None

End of enumeration elements list.

TGL1 : Toggle Output for port pin
bits : 1 - 1 (1 bit)

Enumeration:

1 : TGL

None

End of enumeration elements list.

TGL2 : Toggle Output for port pin
bits : 2 - 2 (1 bit)

Enumeration:

1 : TGL

None

End of enumeration elements list.

TGL3 : Toggle Output for port pin
bits : 3 - 3 (1 bit)

Enumeration:

1 : TGL

None

End of enumeration elements list.

TGL4 : Toggle Output for port pin
bits : 4 - 4 (1 bit)

Enumeration:

1 : TGL

None

End of enumeration elements list.

TGL5 : Toggle Output for port pin
bits : 5 - 5 (1 bit)

Enumeration:

1 : TGL

None

End of enumeration elements list.

TGL6 : Toggle Output for port pin
bits : 6 - 6 (1 bit)

Enumeration:

1 : TGL

None

End of enumeration elements list.

TGL7 : Toggle Output for port pin
bits : 7 - 7 (1 bit)

Enumeration:

1 : TGL

None

End of enumeration elements list.


GP2OEN

GPIO Port 2 output enable
address_offset : 0x4 Bytes (0x0)
size : 8 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

GP2OEN GP2OEN read-write 0 1 2 3 4 5 6 7 Resets to 0 0 0 0 0 0 0 0 OEN0 OEN1 OEN2 OEN3 OEN4 OEN5 OEN6 OEN7

OEN0 : Direction for port pin
bits : 0 - 0 (1 bit)

Enumeration:

0 : IN

None

1 : OUT

None

End of enumeration elements list.

OEN1 : Direction for port pin
bits : 1 - 1 (1 bit)

Enumeration:

0 : IN

None

1 : OUT

None

End of enumeration elements list.

OEN2 : Direction for port pin
bits : 2 - 2 (1 bit)

Enumeration:

0 : IN

None

1 : OUT

None

End of enumeration elements list.

OEN3 : Direction for port pin
bits : 3 - 3 (1 bit)

Enumeration:

0 : IN

None

1 : OUT

None

End of enumeration elements list.

OEN4 : Direction for port pin
bits : 4 - 4 (1 bit)

Enumeration:

0 : IN

None

1 : OUT

None

End of enumeration elements list.

OEN5 : Direction for port pin
bits : 5 - 5 (1 bit)

Enumeration:

0 : IN

None

1 : OUT

None

End of enumeration elements list.

OEN6 : Direction for port pin
bits : 6 - 6 (1 bit)

Enumeration:

0 : IN

None

1 : OUT

None

End of enumeration elements list.

OEN7 : Direction for port pin
bits : 7 - 7 (1 bit)

Enumeration:

0 : IN

None

1 : OUT

None

End of enumeration elements list.


GP2PUL

GPIO Port 2 output pull up enable.
address_offset : 0x8 Bytes (0x0)
size : 8 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

GP2PUL GP2PUL read-write 0 1 2 3 4 5 6 7 Resets to 0 0 0 0 0 0 0 0 PUL0 PUL1 PUL2 PUL3 PUL4 PUL5 PUL6 PUL7

PUL0 : Pull Up Enable for port pin
bits : 0 - 0 (1 bit)

Enumeration:

0 : DIS

None

1 : EN

None

End of enumeration elements list.

PUL1 : Pull Up Enable for port pin
bits : 1 - 1 (1 bit)

Enumeration:

0 : DIS

None

1 : EN

None

End of enumeration elements list.

PUL2 : Pull Up Enable for port pin
bits : 2 - 2 (1 bit)

Enumeration:

0 : DIS

None

1 : EN

None

End of enumeration elements list.

PUL3 : Pull Up Enable for port pin
bits : 3 - 3 (1 bit)

Enumeration:

0 : DIS

None

1 : EN

None

End of enumeration elements list.

PUL4 : Pull Up Enable for port pin
bits : 4 - 4 (1 bit)

Enumeration:

0 : DIS

None

1 : EN

None

End of enumeration elements list.

PUL5 : Pull Up Enable for port pin
bits : 5 - 5 (1 bit)

Enumeration:

0 : DIS

None

1 : EN

None

End of enumeration elements list.

PUL6 : Pull Up Enable for port pin
bits : 6 - 6 (1 bit)

Enumeration:

0 : DIS

None

1 : EN

None

End of enumeration elements list.

PUL7 : Pull Up Enable for port pin
bits : 7 - 7 (1 bit)

Enumeration:

0 : DIS

None

1 : EN

None

End of enumeration elements list.


GP2OCE

GPIO Port 2 tri state
address_offset : 0xC Bytes (0x0)
size : 8 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

GP2OCE GP2OCE read-write 0 1 2 3 4 5 6 7 Resets to 0 0 0 0 0 0 0 0 OCE0 OCE1 OCE2 OCE3 OCE4 OCE5 OCE6 OCE7

OCE0 : open circuit Enable for port pin
bits : 0 - 0 (1 bit)

Enumeration:

0 : DIS

None

1 : EN

None

End of enumeration elements list.

OCE1 : open circuit Enable for port pin
bits : 1 - 1 (1 bit)

Enumeration:

0 : DIS

None

1 : EN

None

End of enumeration elements list.

OCE2 : open circuit Enable for port pin
bits : 2 - 2 (1 bit)

Enumeration:

0 : DIS

None

1 : EN

None

End of enumeration elements list.

OCE3 : open circuit Enable for port pin
bits : 3 - 3 (1 bit)

Enumeration:

0 : DIS

None

1 : EN

None

End of enumeration elements list.

OCE4 : open circuit Enable for port pin
bits : 4 - 4 (1 bit)

Enumeration:

0 : DIS

None

1 : EN

None

End of enumeration elements list.

OCE5 : open circuit Enable for port pin
bits : 5 - 5 (1 bit)

Enumeration:

0 : DIS

None

1 : EN

None

End of enumeration elements list.

OCE6 : open circuit Enable for port pin
bits : 6 - 6 (1 bit)

Enumeration:

0 : DIS

None

1 : EN

None

End of enumeration elements list.

OCE7 : open circuit Enable for port pin
bits : 7 - 7 (1 bit)

Enumeration:

0 : DIS

None

1 : EN

None

End of enumeration elements list.



Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !

This website is sponsored by EmbeetleEmbeetle, an IDE designed from scratch for embedded software developers.