Port Integration Module (S12PPIMV1)
2.3.58 Port AD Data Register (PT1AD)
Address 0x0271
Access: User read/write(1)
7
6
5
4
3
2
1
0
R
PT1AD7
PT1AD6
PT1AD5
PT1AD4
PT1AD3
PT1AD2
PT1AD1
PT1AD0
W
Altern.
Function
AN7
0
AN6
0
AN5
0
AN4
0
AN3
0
AN2
0
AN1
0
AN0
0
Reset
Figure 2-56. Port AD Data Register (PT1AD)
1. Read: Anytime. The data source is depending on the data direction value.
Write: Anytime
Table 2-52. PT1AD Register Field Descriptions
Field
Description
Port AD general purpose input/output data—Data Register, ATD AN analog input
7-0
PT1AD
When not used with the alternative function, the associated pin can be used as general purpose I/O. In general
purpose output mode the register bit value is driven to the pin.
If the associated data direction bit is set to 1, a read returns the value of the port register bit, otherwise the buffered
pin input state is read.
2.3.59 Port AD Data Direction Register (DDR0AD)
Address 0x0272
Access: User read/write(1)
7
6
5
4
3
2
1
0
R
W
0
0
0
0
0
0
DDR0AD1
DDR0AD0
Reset
0
0
0
0
0
0
0
0
Figure 2-57. Port AD Data Direction Register (DDR0AD)
1. Read: Anytime
Write: Anytime
Table 2-53. DDR0AD Register Field Descriptions
Description
Field
1-0
Port AD data direction—
DDR0AD This bit determines whether the associated pin is an input or output.
To use the digital input function the ATD Digital Input Enable Register (ATDDIEN) has to be set to logic level “1”.
1 Associated pin is configured as output
0 Associated pin is configured as input
S12P-Family Reference Manual, Rev. 1.13
Freescale Semiconductor
97