Analog-to-Digital ConverterADC Setup ExamplesPanasonic Semiconductor Development Company MN102H75K/F75K/85K/F85K LSI User Manual148PanasonicAN6BUF (example) x’00FF14’6.5.2 Setting Up Hardware-Controlled Intermittent Three-ChannelA/D ConversionThis example illustrates multiple-channel conversion controlled by the hardware.The ADIN2, ADIN1, and ADIN0 pins input analog voltage signals ( 0.0 V– 3.3V) and the ADC converts the voltages to 8-bit digital values. It writes the resultsto the registers periodically, each time timer 1 underflows.Bit: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0— — — — — — — — ANnBUF7ANnBUF6ANnBUF5ANnBUF4ANnBUF3ANnBUF2ANnBUF1ANnBUF0Figure 6-9 Timing of Software-Controlled Single-Channel A/D ConversionFigure 6-10 Multiple-Channel A/D Conversion1 2 3 4 10 11 12VALIDADIN6 convertingANCTRsetANENStateReferenceclockAN6BUFAN6BUFreadInterruptSlider 3Slider 2Slider 1051005100510ch0 ch1 ch2A/D converter data registersUnderflowTimer 1MN102CPU coreMN102H75K