《增强型8051单片机实用开发技术》例程代码
源代码在线查看: ex7-7.lst
A51 MACRO ASSEMBLER EX7_7 11/27/2009 21:53:52 PAGE 1
MACRO ASSEMBLER A51 V8.01
OBJECT MODULE PLACED IN ex7-7.OBJ
ASSEMBLER INVOKED BY: C:\Keil\C51\BIN\A51.EXE ex7-7.asm SET(SMALL) DEBUG EP
LOC OBJ LINE SOURCE
1 ;$include (STC12C5A.INC) ;包含STC12C5A60S2寄存器定义文件
+1 2 $nomod51
+1 3 +1 $save
+1 152 +1 $restore
0028 153 CCAPnL_Value EQU 28H ;fosc=20MHz时,高速脉冲输出= 125KHz
0000 154 ORG 0000H
0000 020060 155 LJMP MAIN
003B 156 ORG 003BH ;PCA中断入口地址
003B 020084 157 LJMP PCA_ISR
0060 158 ORG 0060H
0060 159 MAIN:
0060 758170 160 MOV SP, #70H ;设置堆栈指针
161 ;PCA模块初始化
0063 75D902 162 MOV CMOD, #00000010B ;CIDL = 0,PCA 计势髟诳障心J较录绦