![Samsung S3F80JB Скачать руководство пользователя страница 267](http://html.mh-extra.com/html/samsung/s3f80jb/s3f80jb_user-manual_340834267.webp)
COUNTER A
S3F80JB
12-6
PROGRAMMING TIP — To generate 38 kHz, 1/3duty signal through P3.1
This example sets Counter A to the repeat mode, sets the oscillation frequency as the Counter A clock source,
and CADATAH and CADATAL to make a 38 kHz, 1/3 Duty carrier frequency. The program parameters are:
17.59 us
37.9 kHz 1/3 duty
8.795 us
— Counter A is used in repeat mode
— Oscillation frequency is 4 MHz (0.25
µ
s)
— CADATAH = 8.795
µ
s / 0.25
µ
s = 35.18, CADATAL = 17.59
µ
s / 0.25
µ
s = 70.36
— Set P3.1 C-MOS push-pull output and CAOF mode.
— 44 pin package
ORG
0100H
;
Reset
address
START:
DI
•
•
•
LD
CADATAL,#(70-2)
;
Set
17.5
ms
LD
CADATAH,#(35-2)
;
Set
8.75
ms
;
LD
P3CON,#11110010B
; Set P3 to C-MOS push-pull output.
;
Set
P3.1
to
REM
output
;
LD
CACON,#00000110B
;
Clock
Source
→
Fosc
;
Disable
Counter
A
interrupt.
;
Select
repeat
mode
for
Counter
A.
;
Start
Counter
A
operation.
;
Set
Counter
A
Output
Flip-flop(CAOF)
high.
;
LD
P3,#80H ;
Set
P3.7(Carrier
On/Off)
to
high.
;
This
command
generates
38
kHz,
1/3duty
pulse
signal
;
through
P3.1
;
•
•
•
Содержание S3F80JB
Страница 1: ...S3F80JB 8 BIT CMOS MICROCONTROLLERS USER S MANUAL Revision 1 1 ...
Страница 327: ...ELECTRICAL DATA 8MHz S3F80JB 18 14 NOTES ...
Страница 339: ...FLASH APPLICATION NOTES S3F80JB Programming By Tool ...
Страница 341: ...S3F80JB 2 This is only an example for setting Vdd This is SPW2 which is one of OPT MTP Writers ...
Страница 342: ...Important Note Subject Toggling phenomenon when serial writing programming on the S3F80JB ...