![NXP Semiconductors MC9S12VRP64 Owner Reference Manual Download Page 89](http://html.mh-extra.com/html/nxp-semiconductors/mc9s12vrp64/mc9s12vrp64_owner-reference-manual_1721842089.webp)
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
Summary of Contents for MC9S12VRP64
Page 16: ...MC9S12VRP Family Reference Manual Rev 1 3 16 NXP Semiconductors ...
Page 46: ...Device Overview S12VRP Series MC9S12VRP Family Reference Manual Rev 1 3 46 NXP Semiconductors ...
Page 236: ...S12S Debug Module S12DBGV2 MC9S12VRP Family Reference Manual Rev 1 3 236 NXP Semiconductors ...
Page 244: ...Interrupt Module S12SINTV1 MC9S12VRP Family Reference Manual Rev 1 3 244 NXP Semiconductors ...
Page 358: ...Timer Module TIM16B2CV3 MC9S12VRP Family Reference Manual Rev 1 3 358 NXP Semiconductors ...
Page 436: ...Supply Voltage Sensor BATSV2 MC9S12VRP Family Reference Manual Rev 1 3 436 NXP Semiconductors ...
Page 528: ...NVM Electrical Parameters MC9S12VRP Family Reference Manual Rev 1 3 528 NXP Semiconductors ...
Page 530: ...Package Information MC9S12VRP Family Reference Manual Rev 1 3 530 NXP Semiconductors ...
Page 531: ...Package Information MC9S12VRP Family Reference Manual Rev 1 3 NXP Semiconductors 531 ...
Page 532: ...Package Information MC9S12VRP Family Reference Manual Rev 1 3 532 NXP Semiconductors ...