| поискавой системы для электроныых деталей |
|
AN1320 датащи(PDF) 17 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1320 датащи(HTML) 17 Page - STMicroelectronics |
|
17 / 20 page ![]() 17/20 AN1320 APPLICATION NOTE ;============================================== ; Main loop ;============================================== res 0,ARSC0 nop Main jrr 0,ARSC0,Main res 0,ARSC0 set 2,DRB ; Set SwPWM output SwPWMLoop ld A,ARLR cp A,V jrc SwPWMLoop res 2,DRB ; Reset SwPWM output jp Main ;============================================== ; Routines ;============================================== ;============================================== ; Stop all operations and disables chips ;============================================== StopIt set 0,DRB ; Disable 6574 set 6,DRB ; Disable PFC RIP jp RIP ; Do nothing ; ============================================= ; Wait: holds for a time:=x*y*192us ; x = 192us Ticks number to hold ; y = Repeat Times ; ============================================= Wait ld a,y ; Load repeat time nr. ld Repeat,a WaitRestart ld a,x ; Load Counter Value ld TCR,a set 3,TSCR ; Timer start WaitTimerExp jrr 7,TSCR,WaitTimerExp res 7,TSCR ; Timer expired, reset flag dec Repeat ld a,Repeat jrnz WaitTimerExp ; WaitAgain res 3,TSCR ; Repetition Timer expired, reset ret ;========================================================== ; Setup A/D Converter ;========================================================== SADC clr Media; Reset Media register ldi Count,04h ; Init counter set 5,ADCR ; start a/d conversion nop nop set 7,ADCR ; Enable Interrupt ret |
|
|
ссылки 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 |