Chapter 6 Parallel Input/Output Control

 

 

Table 6-14. PTCCLR Register Field Descriptions

 

 

 

Field

 

Description

 

 

7–0

Data Clear for Port C Bits. Writing 0 to any bit in this location clears the corresponding bit in the data register.

PTCCLRn

Writing a one to any bit in this register has no effect.

 

0

Corresponding PTCDn maintains current value.

 

1

Corresponding PTCDn is cleared.

 

 

 

6.7.3.5Port C Toggle Register (PTCTOG)

7

6

5

4

3

2

1

0

R

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W

 

PTCTOG7

PTCTOG6

PTCTOG5

PTCTOG4

PTCTOG3

PTCTOG2

PTCTOG1

PTCTOG0

 

 

 

 

 

 

 

 

 

 

 

Reset:

0

0

0

0

0

0

0

0

 

 

 

 

Figure 6-18. Port C Toggle Enable Register (PTCTOG)

 

 

 

 

 

 

Table 6-15. PTCTOG Register Field Descriptions

 

 

 

 

 

 

 

 

 

 

 

Field

 

 

 

 

Description

 

 

 

 

 

 

7–0

 

Toggle Enable for Port C Bits. Writing 1 to any bit in this location toggles the corresponding bit in the data register.

PTCTOGn

Writing a zero to any bit in this register has no effect.

 

 

 

 

 

 

 

0 Corresponding PTCDn maintains current value.

 

 

 

 

 

 

 

1 Corresponding PTCDn is toggled once.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6.7.3.6Port C Pull Enable Register (PTCPE)

The port C pull enable register enables pull-ups on the corresponding PTC pin. In some cases, a pull-down device is enabled if pull-downs are supported by an alternate pin function (e.g., KBI).

R

W

Reset:

7

6

5

4

3

2

1

0

PTCPE7

PTCPE6

PTCPE5

PTCPE4

PTCPE3

PTCPE2

PTCPE1

PTCPE0

 

 

 

 

 

 

 

 

0

0

0

0

0

0

0

0

 

 

 

 

 

 

 

 

 

 

Figure 6-19. Internal Pull Enable for Port C Register (PTCPE)

 

 

Table 6-16. PTCPE Register Field Descriptions

 

 

 

Field

 

Description

 

 

7–0

Internal Pull Enable for Port C Bits. Each of these control bits determines if the internal pull-up device is enabled

PTCPEn

for the associated PTC pin. For port C pins configured as outputs, these bits have no effect and the internal pull

 

devices are disabled.

 

0

Internal pull-up device disabled for port C bit n.

 

1

Internal pull-up device enabled for port C bit n.

 

 

 

MCF51QE128 MCU Series Reference Manual, Rev. 3

Freescale Semiconductor

125

Get the latest version from freescale.com

Page 125
Image 125
Freescale Semiconductor MCF51QE128RM manual Port C Toggle Register Ptctog, Port C Pull Enable Register Ptcpe