03.08.2013 Views

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Port Integration Module (S12VRPIMV2)<br />

V HVI<br />

PIRL[x]<br />

R EXT_HVI<br />

10K<br />

ANALOG[x]<br />

& STOP<br />

40K<br />

500K<br />

110K<br />

440K<br />

HVIx<br />

ANALOG[x]<br />

& PTTEL<br />

& PTPSL<br />

& PTADIRL & STOP<br />

VDDX<br />

Figure 2-46. HVI Block Diagram<br />

Voltages up to V HVIx can be applied to all HVI pins. Internal voltage dividers scale the input signals down<br />

to logic level. There are two modes, digital and analog, where these signals can be processed.<br />

2.4.3.6.1 Digital Mode Operation<br />

In digital mode the input buffers are enabled (DIENL[x]=1 & PTAL[PTAENL]=0). The synchronized pin<br />

input state determined at threshold level V TH_HVI can be read in register PTIL. Interrupt flags (PIFL) are<br />

set on input transitions if enabled (PIEL[x]=1) and configured for the related edge polarity (PPSL).<br />

Wakeup from stop mode is supported.<br />

2.4.3.6.2 Analog Mode Operation<br />

ANALOG[x] = PTAENL & PTAL[1:0]<br />

(DIENL[x] & (ANALOG[x] | STOP))<br />

| (ANALOG[x] & PTADIRL & PTTEL & STOP)<br />

ANALOG[x]<br />

& STOP & PTADIRL<br />

ANALOG[x]<br />

& STOP & PTADIRL<br />

(other inputs)<br />

In analog mode (PTAL[PTAENL]=1) the voltage applied to a selectable pin (PTAL[PTAL1:PTAL0]) can<br />

be measured on an internal ADC channel (refer to device overview section for channel assignment). One<br />

of two input divider ratios (Ratio H_HVI , Ratio L_HVI ) can be chosen on each analog input (PIRL[x]) or the<br />

<strong>MC9S12VR</strong> <strong>Family</strong> Reference Manual, Rev. 2.8<br />

Input Buffer<br />

Impedance<br />

Converter<br />

PTIL[x]<br />

94 <strong>Freescale</strong> <strong>Semiconductor</strong><br />

ADC<br />

PTAENL<br />

& PTADIRL<br />

& PTABYPL

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!