; DTMFdat -- Receive the DTMF-Codes from a telephone line
; =======================================================
; November 03, 2002
;doc.guandang.net 电话:0574-88464538
;歌林电子制作工作室
; Structure of the program:
; The processing works with a cycle of 1 ms. A counter counts from 0 to
; 895 or with prescaler of 4 from 0 to 223. This makes a cycle of 1.0012 ms
; or a deviation per day of 107 seconds.
;
;A phase counter counts the cycles of 1 ms. After 10 cycles it is reset to 0,
; making 10 ms. This cycle consists of 10 phases each being 1 ms.
; we have a good division of the tasks over the
; processing time.
;
; PIC 16C54
; 3.579545 MHz; 1 cycle = 1.117us
; 0x0D (Watchdog enabled, XT-Oszillator)
; watchdog timeout: 18 ms
;
; LCD-Display: single line with 16 characters, Hitachi-controller HD44780 compatible
;
; Inputs:
; Port A Bit 0 dtmf-char bit 0
; Port A Bit 1 dtmf-char bit 1
; Port A Bit 2 dtmf-char bit 2
; Port A Bit 3 dtmf-char bit 3
;
; Port B Bit 6 reset display
; Port B Bit 7 dtmf-char is ready
;
; Connection of the LCD-Display:
; Port B Bit 0 DB4
; Port B Bit 1 DB5
; Port B Bit 2 DB6
; Port B Bit 3 DB7
; Port B Bit 4 E (Clock zum Datenspeichern)
; Port B Bit 5 RS
; R/W is always 0 (connect to GND)
;
;
LIST p=16c54b
include <p16c5x.inc>
midpos equ 0x08 ; after mid pos of display
lastpos equ 0x48 ; after last pos of display
;
phase equ 0x07 ; phase (0..9) of the 10 ms-cycle
dlycnt equ 0x08 ; delay
tmpData equ 0x09 ; temp data for display send and delay
cnt10ms equ 0x0A ; 10 ms-counter (dec every 10 ms)
cursPos equ 0x0B ; place of cursor for next display update
state equ 0x0C ; bit 0 = 1: STD was high last time
; bit 1 = 1: write points
; bit 2 = 1: unused
; bit 3 = 1: unused
; bit 4 = 1: unused
; bit 5 = 1: unused
ptcount equ 0x0D ; counter for writing points
unuse0E equ 0x0E ;
unuse0F equ 0x0F ;
unuse10 equ 0x10 ;
unuse11 equ 0x11 ;
unuse12 equ 0x12 ;
unuse13 equ 0x13 ;
unuse14 equ 0x14 ;
unuse15 equ 0x15 ;
unuse16 equ 0x16 ;
unuse17 equ 0x17 ;
unuse18 equ 0x18 ;
unuse19 equ 0x19 ;
unuse1A equ 0x1A ;
unuse1B equ 0x1B ;
unuse1C equ 0x1C ;
unuse1D equ 0x1D ;
unuse1E equ 0x1E ;
unuse1F equ 0x1F ;
;
;
org 0x00
;
goto startall
;
; Delay_ms
; --------
; Makes a delay of xx *100 microseconds when the
; processor frequency is 3.579545 MHz.
; Input: W; delay = W * 100 microseconds
delay_ms
movwf dlycnt
goto dly2
dly1
clrwdt ; clear watchdog
goto $+1
goto $+1
goto $+1
dly2
movlw .26 ; setup inner loop
movwf tmpData ; save in internal delay counter
dly3
decfsz tmpData,F ; dec
goto dly3 ; end inner loop
;
decfsz dlycnt,F ; dec
goto dly1 ; end outer loop
retlw 0x00 ; return with 0
;
;
; Send a command to the display (RS = 0)
; --------------------------------------
cmdDisp
movwf tmpData ; save value
;
bcf PORTB,5 ; clear RS
cmdDisp1
movlw b'11110000' ; load mask
andwf PORTB,F ; cl
快速傅立叶变换(FFT)算法程序可以方便地检测 音频信号中的单个或多个音调,但当...DTMF cm8770 双音频解码... 4页 1下载券 音频解码 89页 免费 双HDMI接口8...
18 引脚 SOP 封装 在下电模式 概述 HT9170 系列是综合了数字解码器和多带滤波器功能的双音频 DTMF 接收器 HT9170B 和 HT9170D 都 可工作在下电模式和抑制模式 ...
29 黑龙江东方学院本科毕业论文(设计) 双音频(DTMF)信号的产生与检测 第1章 1...DTMF 信号产生流程图 3.2 3.2.1 DTMF 信号的检测 DTMF 信号检测方法 DTMF...
双音频解码电路主要用于 DTMF 的解码,将两个叠加的正弦波模拟信号通过解码成二 ...汇编 语言的机器代码生成效率很高,但是可读性并不强,复杂一点的程序就更是难读...
在 闸门 监控 系统 中应 用一 , 、 固化 程序 (通过 E PR O M ) 直接...利用MATLAB仿真DTMF音频... 2页 免费 DTMF信号软件解码快速算... 3页 免费 ...
运用 MT8880 芯片组成的双音频信号(DTMF)编 码发送电路和 MT8870 的解码接收...数码管成本较低,而且操作简单,只 需正确编码,在程序中调用即可,不用设置状态字...
DTMF信号软件解码快速算法的研究_信息与通信_工程科技...图 ! 表示了在 >?R@*+, 算法的流程。 4 .(...P 再 ! $ 次实数加法S 对每一个 *,3+ 音频...
DTMF双音频设计 8页 免费 DTMF编解码芯片的研究 6页 免费 DTMF编码译码芯片及...由此信号向 MCU 发出中断请求, M CU 就可读取键 码并根据代码执行相应的程序...
基于MSP430的嵌入式DTMF... 2页 1下载券 DTMF双音频设计 8页 免费喜欢...解码器 程序跑飞现象, "看门狗"电路及时发现并采取措施,使单片机进入正常程序....
设计电话远程家庭智能控制系统主要由单片机 主控部分、双音频解码部分、电话接口...第三步:把调试程序,用下载线写入单片机,利用相并联的电话话发送的 DTMF 信号,...
热门文档