CC2530芯片无线收发深入解析
2021-07-28刘连钢
刘连钢



DOI:10.16661/j.cnki.1672-3791.2010-5042-0258
摘 要:在智能家居和智能农业系统的感知层开发中主要运用Zigbee技术,实现Zigbee技术的硬件主要为具有射频收发功能的CC2530芯片。该文通过配置CC2530芯片的寄存器,使芯片实现无线收发的功能;通过使用寄存器的方式,编写无线发送函数和无线接收函数,实现基于Basic RF的数据传输。深入研究CC2530芯片的无线收发机制,从而掌握无线收发原理,便于更好地利用芯片,增强物联网感知层开发的能力。
关键词:CC2530 芯片寄存器 中断函数 无线收发
中图分类号:TN92 文献标识码:A文章编号:1672-3791(2021)03(b)-0023-05
Depth Analysis of CC2530 Chip Wireless Transceiver
LIU Liangang
(Dalian Vocational & Technical College, Dalian, Liaoning Province, 116035 China)
Abstract: In the development of the sensing layer of smart home and intelligent agriculture system, ZigBee technology is mainly used. The hardware of ZigBee technology is CC2530 chip with RF transceiver function. In this paper, through the configuration of CC2530 chip register, the chip realizes the wireless transceiver function; through the use of registers, the wireless sending function and wireless receiving function are written to realize the data transmission based on basic RF. In depth study of CC2530 chip wireless transceiver mechanism, so as to master the wireless transceiver principle, facilitate better use of the chip, enhance the ability to develop the perception layer of the Internet of things.
Key Words: CC2530; Chip register; Interrupt function; Wireless transceiver
伴隨着智能家居、智能农业等发展,Zigbee技术的应用已非常广泛,在使用Zigbee技术组建无线传感网时,经常会用到芯片CC2530芯片。在使用CC2530芯片进行无线网络组建时,肯定会用到无线收发这一功能。开发者一般都会到官网下载工程模板,在开发时调用给定的接收、发送函数完成收发功能。该文抽丝剥茧,通过寄存器配置的方式实现无线收发功能,帮助读者深入了解CC2530无线收发的原理。
通过配置寄存器的方式实现无线收发功能,要完成这样几项工作:射频相关资源初始化、编写射频发送函数、编写射频接收函数、编写射频接收中断服务子函数。完成了上述几项基本工作,就可以根据实际的业务逻辑进行程序的开发。上述几项工作都涉及到多个寄存器的配置,下面该文就针对上述几项工作进行详细的阐述,使读者深入地了解CC2530芯片射频工作的原理。
1 射频相关资源初始化
该项工作涉及到的寄存器比较多,该文通过表1归纳出需要配置的寄存器,并对各寄存器进行了功能的描述,具体见表1。……
