參數(shù)資料
型號: S3C1850XX-SM
元件分類: 微控制器/微處理器
英文描述: 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PDSO24
封裝: 0.375 INCH, SOP-24
文件頁數(shù): 57/89頁
文件大?。?/td> 323K
代理商: S3C1850XX-SM
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描述
S3C3410XXX-QA 32-BIT, MROM, 40 MHz, RISC MICROCONTROLLER, PQFP128
S3C70F2XX-SO 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PDSO32
S3C70F4XX-AV 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PDIP30
S3C72M9XX-QA 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PQFP128
S3P72M9-QA 4-BIT, OTPROM, 6 MHz, MICROCONTROLLER, PQFP128
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
S3C1860 制造商:SAMSUNG 制造商全稱:Samsung semiconductor 功能描述:4-bit single-chip CMOS microcontroller
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