摘要
以AVR单片机ATmega48芯片及CMX865调制/解调芯片为硬件架构规范了对外串口通信协议,采用模拟口线的方式对CMX865寄存器进行操作,设计了一种串口转FSK的通信模块,实现数据传输方式的转换。硬件电路以AT-mega48微处理器为核心,并利用C/BUS总线控制CMX865芯片,实现FSK/DTMF收、发功能;外围电路由振铃检测、FSK数据收发接口电路组成。模块软件设计主要包括串口通信和FSK通信两部分程序,串口通信程序实现串口通信命令的组包发送、收包解析/处理功能;FSK通信程序实现利用中断方式发送、接收FSK数据功能。
The AVR microcontroller ATmega48 chip and CMX865 modulation/demodulation chip for hardware architecture specifies the external serial communication protocol. It operates CMX865 register with line analog port. The paper designs serial-to-FSK communica- tion module to achieve data transmission conversion. The hardware circuit takes ATmega48 microprocessor as core and controls CMX865 chip with C/BUS to achieve FSK/DTMF sending and receiving functions. External circuit is composed by ring detection and FSK data transceiver interface circuit. The module software design includes serial communication and FSK communication programs, and serial communication program achieves serial communication commandos packets sent/received packet parsing/processing. FSK communication program uses interruption to send and receive FSK data.
出处
《单片机与嵌入式系统应用》
2012年第2期22-24,28,共4页
Microcontrollers & Embedded Systems
基金
湖北省教育厅科学研究计划(项目编号:B201022010)
湖北省高校优秀中青年科技创新团队项目(项目编号:T200902)