当前位置:网站首页>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 does sqlserver insert or update the number of weeks of the day instead of text
- 力扣-70.爬楼梯
- Debug Jest test cases in VSCode, debug Jest test cases in VSCode, middle note basedir=$(dirname "$" (echo "$0" sed -e -e, s, \ \, / "-e").
- Number of nodes of complete binary tree
- 传统企业如何应对数字化转型?这些书给你答案
- After a circle, I sorted out this set of interview questions..
- 第二十六课 类的静态成员函数
- 第二十三课 临时对象
- XinChaCha Trust SSL Organization Validated
- Purpose of IM expression (IM 5.2)
猜你喜欢

同态加密技术学习

【vulnhub靶场】-dc2

Nativeformysql connects to MySQL 8 prompt: 1251 - client does not support authentication protocol

AI 视频云 VS 窄带高清,谁是视频时代的宠儿
欣旺达宣布电池产品涨价 此前获“蔚小理”投资超10亿

Next. JS static data generation and server-side rendering

宝塔面板命令行帮助教程(包含重置密码)

Recommended programming AIDS: picture tool snipaste

力扣-70.爬楼梯

没有空闲服务器?导入 OVF 镜像快速体验 SmartX 超融合社区版
随机推荐
Number of nodes of complete binary tree
Qt重绘事件与剪切
数组---
S2-062 远程命令执行漏洞复现(cve-2021-31805)
Step function of activation function
The maximum number of remote desktop servers has been exceeded
On using go language to create websocket service
Qt进程间通信
Win10 splash screen after startup
天梯赛赛前练习
第二十四课 经典问题解析
Idea setting copyright information
消息队列概述
QT draw text
5-minute NLP: text to text transfer transformer (T5) unified text to text task model
uni-app 原生APP-云打包集成极光推送(JG-JPUSH)详细教程
Message queuing overview
远程桌面之终端服务器超出了最大允许连接数解决
Lesson 25 static member variables of classes
Tips for installing MySQL service in windows11: Install / Remove of the Service denied