參數(shù)資料
型號(hào): KS57C2504
廠商: SAMSUNG SEMICONDUCTOR CO. LTD.
元件分類: 4位微控制器
英文描述: 4-BIT SINGLE-CHIP MICROCONTROLLER FOR SMALL GENERAL-PURPOSE INFRARED REMOTE CONTROL TRANSMITTER
中文描述: 4位單片機(jī)的小型通用紅外遙控器
文件頁數(shù): 48/94頁
文件大小: 763K
代理商: KS57C2504
PRODUCT SPECIFICATION
S3C7254
4–48
TC0 REFERENCE REGISTER (TREF0)
TREF0 is used to store a reference value to be
compared to the incrementing TCNT0 register in
order to identify an elapsed time interval. Use the
following formula to calculate the correct value to
load to the TREF0 reference register:
TC0 timer interval = (TREF0 value + 1)
×
1
TMOD0 frequency setting
(TREF0 value
0)
TC0 OUTPUT ENABLE FLAG (TOE0)
The 1-bit timer/counter 0 output enable flag TOE0 controls output from timer/counter 0 to the TCLO0 pin.
(MSB)
“0”
(LSB)
"0"
F92H
TOE0
"0"
When you set the TOE0 flag to "1", the contents of TOL0 can be output to the TCLO0 pin.
PROGRAMMING TIP — Setting a TC0 Timer Interval
To set a 30 ms timer interval for TC0, given fxx = 4.19 MHz, follow these steps.
1.
Select the timer/counter 0 mode register with a maximum setup time of 62.5 ms (assume the TC0 counter
clock = fxx/2
10
, and TREF0 is set to FFH):
2.
Calculate the TREF0 value:
30 ms = TR4.09 kHz
TREF0 + 1 = 244 μs = 122.9 = 7AH
TREF0 value = 7AH – 1 = 79H
3.
Load the value 79H to the TREF0 register:
BITS
SMB
LD
LD
LD
LD
EMB
15
EA,#79H
TREF0,EA
EA,#4CH
TMOD0,EA
相關(guān)PDF資料
PDF描述
KS57C2916 4-BIT CMOS Microcontroller(4位微控制器)
KS57P2916 4-BIT CMOS Microcontroller(4位微控制器)
KS57C5312 The KS57C5204/C5208/C5304/C5308/C5312 single-chip CMOS microcontroller has been designed for highperformance using SAM 47 Samsung Arrangeable Microcon
KS57P5312 The KS57C5204/C5208/C5304/C5308/C5312 single-chip CMOS microcontroller has been designed for highperformance using SAM 47 Samsung Arrangeable Microcon
KS57C5404 4-BIT CMOS Microcontroller(4位微控制器)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
KS57C2916 制造商:SAMSUNG 制造商全稱:Samsung semiconductor 功能描述:The KS57C2916 single-chip CMOS microcontroller has been designed for high performance using Samsungs newest 4-bit CPU core, SAM47 (Samsung Arrangeable
KS57C3016 制造商:SAMSUNG 制造商全稱:Samsung semiconductor 功能描述:4-BIT CMOS MICROCONTROLLER
KS57C3204 制造商:SAMSUNG 制造商全稱:Samsung semiconductor 功能描述:The KS57C3204 single-chip CMOS microcontroller has been designed for high performance using Samsungs newest 4-bit CPU core, SAM47 (Samsung Arrangeable
KS57C3316 制造商:SAMSUNG 制造商全稱:Samsung semiconductor 功能描述:The KS57C3316 single-chip CMOS microcontroller has been designed for high performance using Samsungs newest 4-bit CPU core, SAM47 (Samsung Arrangeable
KS57C4104 制造商:SAMSUNG 制造商全稱:Samsung semiconductor 功能描述:The KS57C4104/KS57C4204/KS57C4304 single-chip CMOS microcontroller has been designed for very high performance using Samsungs newest 4-bit CPU core, S