ch1num equ 0ch
ch2num equ 0dh
ch3num equ 0eh
ch4num equ 0fh
ch5num equ 10h
ch6num equ 3dh
ch7num equ 12h
ch8num equ 13h
ch9num equ 14h
ch10num equ 15h
ch11num equ 16h
ch12num equ 17h
ch13num equ 18h
ch14num equ 19h
ch15num equ 1ah
ch16num equ 1bh
ch14rnum equ 03h
ch15rnum equ 04h
ch16rnum equ 05h
txnum equ 06h
cidlen equ 07h
c4000ms equ 1ch
c500ms equ 1dh
mcuaddr equ 1eh
pollnum equ 1fh
;
fd1 equ 20h
;1-8channel dial tone flag
ch1fdf equ 00h
ch2fdf equ 01h
ch3fdf equ 02h
ch4fdf equ 03h
ch5fdf equ 04h
ch6fdf equ 05h
ch7fdf equ 06h
ch8fdf equ 07h
;
fd2 equ 21h
;9-16channel dial tone flag
ch9fdf equ 08h
ch10fdf equ 09h
ch11fdf equ 0ah
ch12fdf equ 0bh
ch13fdf equ 0ch
ch14fdf equ 0dh
ch15fdf equ 0eh
ch16fdf equ 0fh
;
chhken1 equ 22h
;1-8channel off-hook enable flag
ch1hkenf equ 10h
ch2hkenf equ 11h
ch3hkenf equ 12h
ch4hkenf equ 13h
ch5hkenf equ 14h
ch6hkenf equ 15h
ch7hkenf equ 16h
ch8hkenf equ 17h
;
chhken2 equ 23h
;9-16channel off-hook enable flag
ch9hkenf equ 18h
ch10hkenf equ 19h
ch11hkenf equ 1ah
ch12hkenf equ 1bh
ch13hkenf equ 1ch
ch14hkenf equ 1dh
ch15hkenf equ 1eh
ch16hkenf equ 1fh
;
chrnow1 equ 24h
;1-8channel busy tone flag
ch1rnowf equ 20h
ch2rnowf equ 21h
ch3rnowf equ 22h
ch4rnowf equ 23h
ch5rnowf equ 24h
ch6rnowf equ 25h
ch7rnowf equ 26h
ch8rnowf equ 27h
;
chrnow2 equ 25h
;9-16channel busy tone flag
ch9rnowf equ 28h
ch10rnowf equ 29h
ch11rnowf equ 2ah
ch12rnowf equ 2bh
ch13rnowf equ 2ch
ch14rnowf equ 2dh
ch15rnowf equ 2eh
ch16rnowf equ 2fh
;
chring1 equ 26h
;1-8channel ring detection flag
ch1ringf equ 30h
ch2ringf equ 31h
ch3ringf equ 32h
ch4ringf equ 33h
ch5ringf equ 34h
ch6ringf equ 35h
ch7ringf equ 36h
ch8ringf equ 37h
;
chring2 equ 27h
;9-16channel ring detection flag
ch9ringf equ 38h
ch10ringf equ 39h
ch11ringf equ 3ah
ch12ringf equ 3bh
ch13ringf equ 3ch
ch14ringf equ 3dh
ch15ringf equ 3eh
ch16ringf equ 3fh
;
hksetup1 equ 28h
;1-8channel emulate on/off hook flag
ch1hkf equ 40h
ch2hkf equ 41h
ch3hkf equ 42h
ch4hkf equ 43h
ch5hkf equ 44h
ch6hkf equ 45h
ch7hkf equ 46h
ch8hkf equ 47h
;
hksetup2 equ 29h
;9-16channel emulate on/off hook flag
ch9hkf equ 48h
ch10hkf equ 49h
ch11hkf equ 4ah
ch12hkf equ 4bh
ch13hkf equ 4ch
ch14hkf equ 4dh
ch15hkf equ 4eh
ch16hkf equ 4fh
;
sendfsk1 equ 2ah
;1-8channel fsk generation flag
ch1fskf equ 50h
ch2fskf equ 51h
ch3fskf equ 52h
ch4fskf equ 53h
ch5fskf equ 54h
ch6fskf equ 55h
ch7fskf equ 56h
ch8fskf equ 57h
;
sendfsk2 equ 2bh
;9-16channel fsk generation flag
ch9fskf equ 58h
ch10fskf equ 59h
ch11fskf equ 5ah
ch12fskf equ 5bh
ch13fskf equ 5ch
ch14fskf equ 5dh
ch15fskf equ 5eh
ch16fskf equ 5fh
;
chpol1 equ 2ch
;1-8channel cas detetion
ch1polf equ 60h
ch2polf equ 61h
ch3polf equ 62h
ch4polf equ 63h
ch5polf equ 64h
ch6polf equ 65h
ch7polf equ 66h
ch8polf equ 67h
;
chpol2 equ 2dh
;9-16channel cas detection
ch9polf equ 68h
ch10polf equ 69h
ch11polf equ 6ah
ch12polf equ 6bh
ch13polf equ 6ch
ch14polf equ 6dh
ch15polf equ 6eh
ch16polf equ 6fh
;
tstchr equ 2eh
;four codecs serial interface test & alarm mask
ch1failf equ 70h
ch2failf equ 71h
ch3failf equ 72h
ch4failf equ 73h
ch1maskf equ 74h
ch2maskf equ 75h
ch3maskf equ 76h
ch4maskf equ 77h
;
commf equ 2fh
;micellaneous flags
rsfirst equ 78h
poweron equ 79h
t4000ms equ 7ah
t500ms equ 7bh
t4000msf equ 7ch
tobeginf equ 7dh;
; equ 7dh ;fsk generation standard for either the V.23 or Bellcore 202
ch1rnum equ 30h
ch2rnum equ 31h
ch3rnum equ 32h
ch4rnum equ 33h
ch5rnum equ 34h
ch6rnum equ 35h
ch7rnum equ 36h
ch8rnum equ 37h
ch9rnum equ 38h
ch10rnum equ 39h
ch11rnum equ 3ah
ch12rnum equ 3bh
ch13rnum equ 3ch
chid equ 3eh
dtmfadd equ 3fh
c100ms equ 40h
rsrxbuf equ 41h ;transmit and receive buffer
rsrxdtmf equ 4bh
pollbuf equ 80h
senddtmf equ 43h
dtmfbuf equ 0a0h ;dtmf temp buffer
;
chpenr equ 0f6h
chpcon equ 0bfh
startdf1 equ 00h
startdf2 equ 01h
senddf1 equ 02h
senddf2 equ 03h
ch1add equ 04h
ch2add equ 05h
ch3add equ 06h
ch4add equ 07h
ch5add equ 08h
ch6add equ 09h
ch7add equ 0ah
ch8add equ 0bh
ch9add equ 0ch
ch10add equ 0dh
ch11add equ 0eh
ch12add equ 0fh
ch13add equ 10h
ch14add equ 11h
ch15add equ 12h
ch16add equ 13h
ch1leg equ 14h
ch2leg equ 15h
ch3leg equ 16h
ch4leg equ 17h
ch5leg equ 18h
ch6leg equ 19h
ch7leg equ 1ah
ch8leg equ 1bh
ch9leg equ 1ch
ch10leg equ 1dh
ch11leg equ 1eh
ch12leg equ 1fh
ch13leg equ 20h
ch14leg equ 21h
ch15leg equ 22h
ch16leg equ 23h
ch1addb equ 24h
ch2addb equ 25h
ch3addb equ 26h
ch4addb equ 27h
ch5addb equ 28h
ch6addb equ 29h
ch7addb equ 2ah
ch8addb equ 2bh
ch9addb equ 2ch
ch10addb equ 2dh
ch11addb equ 2eh
ch12addb equ 2fh
ch13addb equ 30h
ch14addb equ 31h
ch15addb equ 32h
ch16addb equ 33h
dtmftime1 equ 34h
dtmftime2 equ 35h
dtmftimef1 equ 36h
dtmftimef2 equ 37h
dtmftnum1 equ 38h
dtmftnum2 equ 39h
dtmftnum3 equ 40h
dtmftnum4 equ 41h
dtmftnum5 equ 42h
dtmftnum6 equ 43h
dtmftnum7 equ 44h
dtmftnum8 equ 45h
dtmftnum9 equ 46h
dtmftnum10 equ 47h
dtmftnum11 equ 48h
dtmftnum12 equ 49h
dtmftnum13 equ 4ah
dtmftnum14 equ 4bh
dtmftnum15 equ 4ch
dtmftnum16 equ 4dh
txdtmf1 equ 50h
txdtmf2 equ 70h
txdtmf3 equ 90h
txdtmf4 equ 0b0h
;I/O definition
DCLK equ p1.0
DOUT equ P1.1
DIN equ P1.2
INTT1 equ p2.0
INTT2 equ p2.1
INTT3 equ p2.2
INTT4 equ p2.3
CS1 equ p1.3
CS2 equ p1.4
CS3 equ p1.5
CS4 equ p1.6
txreq equ p1.7
watdog equ p3.2
runled equ p3.3
RESET equ p2.7
;
auxr equ 8eh
;
ORG 0000h
begin: ajmp init
org 000bh
ljmp timeint
org 0023h
ljmp rsint
org 080h
;单片机自身初始化
init: mov sp,#65h
mov psw,#00h
mov p0,#0ffh
mov p1,#0ffh
mov p2,#0ffh
mov p3,#0ffh
clr p3.3;P3.3接RUN_LED运行指示灯
clr p0.0 ;P0.0做什么用的?
clr reset;复位AT8045A
;延时以便让AT8045A充分复位
loop:
lcall d1s
lcall d1s
lcall d1s
lcall d1s
lcall d1s
lcall d1s
lcall d1s
setb reset
setb p3.3
setb p0.0
clr ea
mov r0,#02h;RAM的起始地址
clr a
;对RAM清零
clrram: mov @r0,a
inc r0
cjne r0,#65h,clrram
;
mov a,p3;特殊功能寄存器P3口中的数据传至a中
anl a,#0f0h;取高四位(D0~D3为系统盘送来的盘号数据)
swap a;a的低四位与高四位交换
mov mcuaddr,a;a中的数据为盘号,存入mcuaddr
;设置定时器
mov tl0,#0afh;定时器0定时50ms
mov th0,#3ch
mov tl1,#0fdh;定时器1工作在方式2(溢出后自动恢复初值)
mov th1,#0fdh
fxo.rar_FXO_拨号盘
版权申诉
158 浏览量
2022-09-21
03:37:12
上传
评论
收藏 15KB RAR 举报
![avatar](https://profile-avatar.csdnimg.cn/f3b7c8d80edb45ee84389e2d10b9d009_weixin_42662293.jpg!1)
局外狗
- 粉丝: 69
- 资源: 1万+
最新资源
- 课程大作业基于python实现的单目双目视觉三维重建源码(95分以上).zip
- 使用matplotlib库绘制简单图表的例子.rar
- 九阴真经OL资源解包工具
- python-leetcode面试题解之第307题区域和检索.zip
- python-leetcode面试题解之第305题岛屿数量II.zip
- python-leetcode面试题解之第304题二维区域和检索.zip
- python-leetcode面试题解之第303题区域和检索.zip
- python-leetcode面试题解之第299题猜数字游戏.zip
- python-leetcode面试题解之第298题二叉树最长连续序列.zip
- python-leetcode面试题解之第296题最佳的碰头地点.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)