Port Integration Module (S12VRPPIMV1)
MC9S12VRP Family Reference Manual Rev. 1.3
NXP Semiconductors
89
2.4.8.2
Analog Mode Operation
In analog mode (PTAENL=1) the input buffer is forced off (except if HVI test enabled, PTTEL=1, and not
in direct mode PTADIRL=0). The voltage applied to a selectable HVI pin can be measured on its related
ADC channel (refer to device overview information for channel assignment). One of two input divider
ratios (Ratio
H_HVI
, Ratio
L_HVI
) can be chosen (PIRL) on the analog input or the voltage divider can be
bypassed (PTADIRL=1). Additionally, in the latter case, the impedance converter in the ADC signal path
can be used or bypassed in direct input mode (PTABYPL).
In run mode the digital input buffer of the selected pin is disabled to avoid shoot-through current unless
PTTEL is set and PTDIRL is clear (the voltage divider is not bypassed). Thus pin interrupt can only be
generated if PTTEL is set and PTDIRL is clear.
In stop mode (RPM) the digital input buffer is enabled only if DIENL=1 to support wakeup functionality.
shows the HVI input configuration depending on register bits and operation mode.
2.5
Initialization and Application Information
2.5.1
Port Data and Data Direction Register writes
It is not recommended to write PORTx/PTx and DDRx in a word access. When changing the register pins
from inputs to outputs, the data may have extra transitions during the write access. Initialize the port data
register before enabling the outputs.
2.5.2
SCI Baud Rate Detection
The baud rate for SCI0 can be determined by using a timer channel to measure the data rate on the related
RXD signal.
1. Establish the link: set MODRR2[MODRR27]=1 to route TIM1 input capture channel 1 to internal
RXD0 signal of SCI0.
Table 2-42. HVI Input Configurations
Mode
DIENL
PTAENL
Digital Input
Analog Input
Resulting Function
Run
0
0
off
off
Input disabled (Reset state)
0
1
off
enabled
Analog input, interrupt not supported
1
0
enabled
off
Digital input, interrupt supported
1
1
off
1
1
Enabled if PTTEL=1 & PTADIRL=0)
enabled
Analog input, interrupt not supported
Stop
2
2
The term “stop mode” is limited to the voltage regulator operating in reduced performance mode (RPM) refer to “Low Power
Modes” section in device overview. In any other case the HVI configuration defaults to “run mode”.
0
0
off
off
Input disabled, wakeup from stop not
supported
0
1
off
off
1
0
enabled
off
Digital input, wakeup from stop supported
1
1
enabled
off
Содержание MC9S12VRP64
Страница 16: ...MC9S12VRP Family Reference Manual Rev 1 3 16 NXP Semiconductors ...
Страница 46: ...Device Overview S12VRP Series MC9S12VRP Family Reference Manual Rev 1 3 46 NXP Semiconductors ...
Страница 92: ...Port Integration Module S12VRPPIMV1 MC9S12VRP Family Reference Manual Rev 1 3 92 NXP Semiconductors ...
Страница 106: ...S12G Memory Map Controller S12GMMCV1 MC9S12VRP Family Reference Manual Rev 1 3 106 NXP Semiconductors ...
Страница 192: ...Background Debug Module S12SBDMV1 MC9S12VRP Family Reference Manual Rev 1 3 192 NXP Semiconductors ...
Страница 236: ...S12S Debug Module S12DBGV2 MC9S12VRP Family Reference Manual Rev 1 3 236 NXP Semiconductors ...
Страница 244: ...Interrupt Module S12SINTV1 MC9S12VRP Family Reference Manual Rev 1 3 244 NXP Semiconductors ...
Страница 340: ...Serial Communication Interface S12SCIV6 MC9S12VRP Family Reference Manual Rev 1 3 340 NXP Semiconductors ...
Страница 358: ...Timer Module TIM16B2CV3 MC9S12VRP Family Reference Manual Rev 1 3 358 NXP Semiconductors ...
Страница 424: ...LIN Physical Layer S12LINPHYV2 MC9S12VRP Family Reference Manual Rev 1 3 424 NXP Semiconductors ...
Страница 436: ...Supply Voltage Sensor BATSV2 MC9S12VRP Family Reference Manual Rev 1 3 436 NXP Semiconductors ...
Страница 488: ...64 KByte Flash Module S12FTMRG64K4KV2 MC9S12VRP Family Reference Manual Rev 1 3 488 NXP Semiconductors ...
Страница 528: ...NVM Electrical Parameters MC9S12VRP Family Reference Manual Rev 1 3 528 NXP Semiconductors ...
Страница 529: ...MC9S12VRP Family Reference Manual Rev 1 3 NXP Semiconductors 529 Appendix J Package Information ...
Страница 530: ...Package Information MC9S12VRP Family Reference Manual Rev 1 3 530 NXP Semiconductors ...
Страница 531: ...Package Information MC9S12VRP Family Reference Manual Rev 1 3 NXP Semiconductors 531 ...
Страница 532: ...Package Information MC9S12VRP Family Reference Manual Rev 1 3 532 NXP Semiconductors ...