| поискавой системы для электроныых деталей |
|
HT45FM2C датащи(PDF) 95 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45FM2C датащи(HTML) 95 Page - Holtek Semiconductor Inc |
|
95 / 171 page ![]() Rev. 1.10 94 �a� �0� �01� Rev. 1.10 95 �a� �0� �01� HT45FM2C Brushless DC Motor Flash Type 8-Bit MCU HT45FM2C Brushless DC Motor Flash Type 8-Bit MCU Preliminar� FF EH ( ) A/ D C onv er si on Re su lt FFFH FF DH 03H 02H 01H 0. 5 LS B 0 12 3 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 AEOCE;disableADCinterrupt mov a,03H mov ADCR1,a ;selectfSYS/8asA/Dclock clr ADOFF mov a,0Fh ;setupANCSR0andANCSR1toconfigurepinsAN0~AN3 mov ANCSR0,a mov a,00h mov ANCSR1,a mov a,00h mov ADCR0;enableandconnectAN0channeltoA/Dconverter : start_conversion: clrADSTR ;highpulseonstartbittoinitiateconversion setADSTR ;resetA/D clrADSTR ;startA/D polling_EOC: sz EOCB ;polltheADCR0registerEOCBbittodetectend ;ofA/Dconversion jmppolling_EOC ;continuepolling mova,ADRL;readlowbyteconversionresultvalue movADRL_buffer,a;saveresulttouserdefinedregister mova,ADRH;readhighbyteconversionresultvalue movADRH_buffer,a;saveresulttouserdefinedregister : : jmp start_conversion;startnexta/dconversion Example: using the interrupt method to detect the end of conversion clr MF1E ;disableADCinterrupt CLR AEOCE mov a,03H |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |