| поискавой системы для электроныых деталей |
|
STC89C53RC датащи(PDF) 19 Page - STCmicro Technology Co,.Ltd |
|
|
|||||||||||||||||||||||||||||
STC89C53RC датащи(HTML) 19 Page - STCmicro Technology Co,.Ltd |
|
19 / 165 page ![]() The following example is a assembly language program that demostrates STC89xx Series MCU WDT. ;/*------------------------------------------------------------------*/ ;/* --- STC MCU International Limited -------------------------------*/ ;/* --- STC89xx Series MCU WDT Demo -----------------------*/ ;/* If you want to use the program or the program referenced in the */ ;/* article, please specify in which data and procedures from STC */ ;/*------------------------------------------------------------------*/ ; WDT overflow time = (N × Pre-scale × 32768) / SYSclk ;When MCU in 12T mode, N=12. When MCU in 6T mode, N=6 WDT_CONTR EQU 0E1H ;WDT address LED EQU P1.5 ;WDT overflow time LED on P1.5 ;The WDT overflow time may be measured by the LED light time Pre_scale_Word EQU 0x35 ;Start up WDT, Pre-scale value is 64 ;SYSclk=18.432, MCU in 12T mode ,WDT overflow time=(12 x 64 x 32768)/18432000 = 1.36 S ORG 0000H AJMP MAIN ORG 0100H MAIN: CLR LED ;turn LED indicator on ACALL Delay ;delay about 1s MOV WDT_CONTR, #Pre_scale_Word ;Start up WDT SETB LED ;turn off LED WAIT: SJMP WAIT ;wait WDT overflow reset ;LED will be turned on again after reset Delay: MOV R0, #0 MOV R1, #0 MOV R2, #15 Delay_Loop: DJNZ R0, Delay_Loop DJNZ R1, Delay_Loop DJNZ R2, Delay_Loop RET END 19 |
|
ссылки 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 |