參數(shù)資料
型號: S3C1860XX-DK
元件分類: 微控制器/微處理器
英文描述: 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PDIP20
封裝: 0.300 INCH, DIP-20
文件頁數(shù): 63/95頁
文件大?。?/td> 339K
代理商: S3C1860XX-DK
S3C1840/C1850/C1860/P1860
REMOTE CONTROL TX. APPLICATION NOTE
7-9
Soft Ware Delay Routine
To obtain a constant time value, the S3C1840/C1850/C1860 use a software delay routine (there is not an internal
timer interrupt). One instruction cycle is six oscillator clocks. Using a ceramic resonator with a constant
frequency, you can calculate the time delay as follows:
t = 6/fxx Number of Instructions
Where t: Elapsed time and fxx: System clock.
Programming Tip
To program a 1-ms delay: 1 ms = 6/455 kHz x n, where fxx = 455 kHz
Therefore, n = 75.8 = 76 instructions
DLY1MS
CLR
A
ADDS
A,#0BH
; Two instructions
DLY
MOV
H,#0
; Dummy instruction
MOV
H,#0
; Dummy instruction
MOV
H,#0
; Dummy instruction
MOV
H,#0
; Dummy instruction
DECS
A
JP
DLY
; DLY loop: 6 instructions
;2 + (ACC + 1) x instructions in loop = 2 + (11 + 1) x 6 = 74
CLR
A
CLR
A
; Two instructions.
; Total number of instructions for DLY1MS is 76.
NOTE
In order to lengthen the delay time, you can use an arithmetic instruction combination of L register and
Accumulator. The L register causes the address lower pointer to access RAM space and the output port pointer to
control the P2 (individual/serial output) port status.
— RAM manipulation instruction: RAM address pointer.
MOV
A,@HL
CPNE @HL,A
ADDS
A,@HL
SETB @HL.b
— P2 output control instruction: P2 pointer.
SETB P2.(L)
CLRB P2.(L)
相關(guān)PDF資料
PDF描述
S3P7048-QZ 4-BIT, OTPROM, 6 MHz, MICROCONTROLLER, PQFP42
S3P72B9-QA 4-BIT, OTPROM, 6 MHz, MICROCONTROLLER, PQFP128
S3C72B5XX-QA 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PQFP128
S3P72G9XX-QX 4-BIT, OTPROM, 4.19 MHz, MICROCONTROLLER, PQFP100
S3P72N8-QW 4-BIT, OTPROM, 6 MHz, MICROCONTROLLER, PQFP80
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
S3C2400 制造商:SAMSUNG 制造商全稱:Samsung semiconductor 功能描述:RISC MICROPROCESSOR
S3C2410A 制造商:SAMSUNG 制造商全稱:Samsung semiconductor 功能描述:32-Bit RISC Microprocessor
S3C2410A-20 制造商:Samsung Electro-Mechanics 功能描述:Microprocessor, 32 Bit, 272 Pin, Plastic, BGA
S3C2410A20-YO80 制造商:Samsung Semiconductor 功能描述: 制造商:Samsung Semiconductor 功能描述:200MHz, MMU, NAND Flash Boot Loader, ROM/SRAM/SDRAM Control, STN/TFT LCD Control, Touch Panel Control, MMC/SD Card, USB, 10bit ADC/Lead Free
S3C2410A20-YOR0 制造商:Samsung Electro-Mechanics 功能描述:Microprocessor, 32 Bit, 272 Pin, Plastic, BGA