How is the HT46 MCU A/D Converter setup?
• Configure Port B A/D Converter channels by setting PCR2, PCR1 and PCR0 • Select the channel for A/D conversion by setting ACS2, ACS1 and ACS0. Note the channel selected should be configured in the previous step. • Set ADCR.7=0 –>1–>0 to start the A/D conversion, EOCB=1 indicating A/D conversion is in process. • Wait 76 TAD periods to complete the A/D conversion, EOCB=0 indicating the end of A/D conversion and interrupt request flag ADF=1 • Read the conversion results in the ADRL and ADRH Registers.