| Electronic Components Datasheet Search |
|
HT45F65 Datasheet(PDF) 147 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F65 Datasheet(HTML) 147 Page - Holtek Semiconductor Inc |
|
147 / 231 page ![]() Rev. 1.60 1�6 �ove��e� ��� �01� Rev. 1.60 1�7 �ove��e� ��� �01� HT45F65/HT45F66/HT45F67 Glucose Meter 8-Bit Flash MCU FF EH ( ) A/ D C onv er si on Re su lt FFFH FF DH 03H 02H 01H 0. 5 LS B 01 23 409 3 4094 4095 409 6 A nal og In pu t Vo lt age 1. 5 LS B V DD 409 6 Ideal A/D Transfer Function A/D Programming Example ThefollowingtwoprogrammingexamplesillustratehowtosetupandimplementanA/Dconversion. Inthefirstexample,themethodofpollingtheEOCBbitintheADCR0registerisusedtodetect whentheconversioncycleiscomplete,whereasinthesecondexample,theA/Dinterruptisusedto determinewhentheconversioniscomplete. Example: using an EOCB polling method to detect the end of conversion clr ADE ; disable ADC interrupt mov a, 03H mov ADCR1, a ; select fSYS/8 as A/D clock clr ADOFF mov a, 00H ; setup ADCR0 register to configure Port as A/D inputs mov ADCR0, a ; and select AN0 to be connected to the A/D converter : : Start_conversion: clr START set START ; reset A/D clr START ; start A/D Polling_EOC: sz EOCB ; poll the ADCR0 register EOCB bit to detect end of A/D conversion jmp polling_EOC ; continue polling mov a, ADRL ; read low byte conversion result value mov adrl_buffer, a ; save result to user defined register mov a, ADRH ; read high byte conversion result value mov adrh_buffer, a ; save result to user defined register : jmp start_conversion ; start next A/D conversion Note:TopowerofftheADC,itisnecessarytosetADOFFas"1". |
|
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 |