当前位置:网站首页>Zigbee之CC2530最小系统及寄存器配置(1)
Zigbee之CC2530最小系统及寄存器配置(1)
2022-04-23 12:22:00 【Guistar~~】
1.CC2530最小系统包括:
- 有两个晶振接口
-高速晶振(一般32MHZ)高精度的低速晶振(一般32.768KHZ) - 去偶电容(PIN_40)和偏置电阻(PIN_30)
- 复位电路(PIN_20)
- 下载仿真(VCC,GND,RESET,P2_1,P2_2)
- 射频电路(PIN_25,PIN_26)
- 一共21个通用引脚 P0_0-P0_7,P1_0-P1_7,P2_0-P2_4。
2.寄存器配置
比如:P1_0设置成:
- 普通IO(P1SEL的第0位=0),默认为0:
//P1SEL=0x1111 1110
P1SEL & =0XFE
- 输出模式(P1DIR的第0位=1):
//P1DIR=0x0000 0001
P1DIR |=0x01
- 电平为低
P1_0 =0
总结:置0与 置1或
- 输入状态:上下拉和三态(ADC采集)
上下拉为0,三态为1
具体的处于上下拉取决于P2INP的高三位:1为下拉,0为上拉:
第五位对应:P0组
第六位对应:P1组
第七位对应:P2组
注意:
P2SEL低三位配置:P2_0,P2_3,P2_4
P2DIR低三位配置:P2_0,P2_3,P2_4
P2INP低三位配置:P2_0,P2_3,P2_4
版权声明
本文为[Guistar~~]所创,转载请带上原文链接,感谢
https://blog.csdn.net/EAyayaya/article/details/104793137
边栏推荐
- 外包干了五年,废了...
- How Im expressions work (5.3)
- 【unity笔记】L4Unity中的基础光照
- 论文解读(CGC)《CGC: Contrastive Graph Clustering for Community Detection and Tracking》
- AI 视频云 VS 窄带高清,谁是视频时代的宠儿
- What is a gateway
- Message queuing overview
- SQL 练习(一)
- C set Logo Icon and shortcut icon
- Nativeformysql connects to MySQL 8 prompt: 1251 - client does not support authentication protocol
猜你喜欢
Tips for installing MySQL service in windows11: Install / Remove of the Service denied
Basic software testing Day2 - Case Execution
The maximum number of remote desktop servers has been exceeded
Metalama简介4.使用Fabric操作项目或命名空间
为什么要有包装类,顺便说一说基本数据类型、包装类、String类该如何转换?
万事有你 未来可期 | ONES 2022校园招聘正式开启
Force buckle - 70 climb stairs
VMware虚拟机使用esxi 导出硬盘vmdk文件
软件测试基础DAY2-用例执行
力扣刷题之完全二叉树的节点个数
随机推荐
Hard core parsing promise object (do you know these seven common APIs and seven key questions?)
一个平面设计师的异想世界|ONES 人物
为什么hash%length==hash&(length-1)的前提是 length 是 2 的 n 次方
VMware虚拟机使用esxi 导出硬盘vmdk文件
QT one process runs another
论文解读(CGC)《CGC: Contrastive Graph Clustering for Community Detection and Tracking》
异步时钟亚稳态 的解决方案——多bit信号
Xinwangda announced that the price of battery products had been increased, and the investment of "weixiaoli" exceeded 1 billion
VMware virtual machines export hard disk vmdk files using esxi
Introduction to metalama 4 Use fabric to manipulate items or namespaces
程序员如何用130行代码敲定核酸统计
Windows11 安装MySQL服务 提示:Install/Remove of the Service Denied
Lesson 26 static member functions of classes
IDEA 数据库插件Database Navigator 插件
编程辅助工具推荐:图片工具snipaste
How do traditional enterprises cope with digital transformation? These books give you the answer
Win10 splash screen after startup
STM32CubeProgrammer基础使用说明
flask项目跨域拦截处理以及dbm数据库学习【包头文创网站开发】
基于卷积神经网络的遥感影像分类识别系统