| Electronic Components Datasheet Search |
|
HT45F75 Datasheet(PDF) 111 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F75 Datasheet(HTML) 111 Page - Holtek Semiconductor Inc |
|
111 / 190 page ![]() Rev. 1.10 110 De�e��e� 1�� �01� Rev. 1.10 111 De�e��e� 1�� �01� HT45F75 Body Fat Scale Flash MCU HT45F75 Body Fat Scale Flash MCU A/D Programming Example Example: Using an EOC polling method to detect the end of conversion #include ht45f75.inc data .section 'data' adc_result_data_l db? adc_result_data_m db? adc_result_data_h db? code .section ‘code’ start: clr ADE ; disable ADC interrupt mova,0C3H;PowercontrolforPGA,ADC movPWRC,a;PWRC=11000011,LDOenable,VCMenable, ;LDOBypassdisable,LDOoutputvoltage:3.3V mov a, 000H movPGAC0,a;PGAgain=1,ADCgain=1,VREFgain=1 mov a, 080H movPGAC1,a;VCM=1.25V,INIS,DCSET2~0indefaultvalue setVRBUFP;enablebufferforVREF+ setVRBUFN;enablebufferforVREF- setVREFS ;forusingexternalreference clrADOR2 ;for10Hzoutputdatarate,ADOR[2:0]=001,FLMS[2:0]=000 clrADOR1 setADOR0 clrFLMS2 clrFLMS1 clrFLMS0 clrADOFF ;ADCexitpowerdownmode. setADRST ;ADCinresetmode clrADRST ;ADCinconversion(continuesmode) clrEOC;Clear“EOC”flag loop: snzEOC;Polling“EOC”flag jmploop ;Waitforreaddata clradc_result_data_h clradc_result_data_m clr adc_result_data_l mova,ADRL movadc_result_data_l,a;GetLowbyteADCvalue mova,ADRM movadc_result_data_m,a;GetMiddlebyteADCvalue mova,ADRH movadc_result_data_h,a;GetHighbyteADCvalue get_adc_value_ok: clrEOC ;Clearingreadflag jmp loop ; for next data read end |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |