Freescale Semiconductor Demonstration Board for Freescale MC9S12XHY256 Microcontroller DEMO9S12XHY256 DEMO9S12XHY256 用户手册

产品代码
DEMO9S12XHY256
下载
页码 924
Port Integration Module (S12XHYPIMV1)
MC9S12XHY-Family Reference Manual, Rev. 1.04
Freescale Semiconductor
123
2.3.56
Port AD Data Register (PT0AD)
2.3.57
Port AD Data Register (PT1AD)
 Address 0x0270
Access: User read/write
1
1
Read: Anytime. The data source is depending on the data direction value.
Write: Anytime
7
6
5
4
3
2
1
0
R
0
0
0
0
PT0AD3
PT0AD2
PT0AD1
PT0AD0
W
Altern.
Function
--
--
--
--
AN11
AN10
AN9
AN8
Reset
0
0
0
0
0
0
0
0
Figure 2-53. Port AD Data Register (PT0AD)
Table 2-46. PT0AD Register Field Descriptions
Field
Description
3-0
PT0AD
Port AD general purpose input/output data—Data Register, ATD AN analog input
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.
 Address 0x0271
Access: User read/write
1
1
Read: Anytime. The data source is depending on the data direction value.
Write: Anytime
7
6
5
4
3
2
1
0
R
PT1AD7
PT1AD6
PT1AD5
PT1AD4
PT1AD3
PT1AD2
PT1AD1
PT1AD0
W
KWAD7
KWAD6
KWAD5
KWAD4
KWAD3
KWAD2
KWAD1
KWAD0
Altern.
Function
AN7
AN6
AN5
AN4
AN3
AN2
AN1
AN0
Reset
0
0
0
0
0
0
0
0
Figure 2-54. Port AD Data Register (PT1AD)