Download Print this page

Lvd Interrupt - STC micro STC8A8K64D4 Series Reference Manual

Advertisement

STC8A8K64D4 Series Manual
JNB
ANL
CPL
ISREXIT:
POP
POP
RETI
MAIN:
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
SETB
MOV
JMP
END

11.5.17 LVD Interrupt

C language code
//Operating frequency for test is 11.0592MHz
#include "reg51.h"
#include "intrins.h"
sfr
RSTCFG
#define
ENLVR
#define
LVD2V2
#define
LVD2V4
#define
LVD2V7
#define
LVD3V0
sbit
ELVD
#define
LVDF
sfr
P0M1
sfr
P0M0
sfr
P1M1
sfr
P1M0
sfr
P2M1
sfr
P2M0
sfr
P3M1
ACC.0,ISREXIT
S4CON,#NOT 01H
P1.3
PSW
ACC
SP, #5FH
P0M0, #00H
P0M1, #00H
P1M0, #00H
P1M1, #00H
P2M0, #00H
P2M1, #00H
P3M0, #00H
P3M1, #00H
P4M0, #00H
P4M1, #00H
P5M0, #00H
P5M1, #00H
S4CON,#10H
T2L,#0E8H
T2H,#0FFH
AUXR,#14H
IE2,#ES4
EA
S4BUF,#5AH
$
=
0xff;
0x40
0x00
0x01
0x02
0x03
=
IE^6;
0x20
=
0x93;
=
0x94;
=
0x91;
=
0x92;
=
0x95;
=
0x96;
=
0xb1;
;Clear interrupt flag
;Test port
;65536-11059200/115200/4=0FFE8H
;Start timer
;Enable UART4 interrupt
;Send test data
//RSTCFG.6
//LVD@2.2V
//LVD@2.4V
//LVD@2.7V
//LVD@3.0V
//PCON.5
-
- 251 -

Advertisement

loading
Need help?

Need help?

Do you have a question about the micro STC8A8K64D4 Series and is the answer not in the manual?

This manual is also suitable for:

Micro stc8a8k64d4-64pinMicro stc8a8k64d4-48pin