当前位置:网站首页>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
边栏推荐
- Why is the premise of hash% length = = hash & (length-1) that length is the nth power of 2
- 没有空闲服务器?导入 OVF 镜像快速体验 SmartX 超融合社区版
- 论文解读(CGC)《CGC: Contrastive Graph Clustering for Community Detection and Tracking》
- Symmetric encryption, certificate encryption
- Lesson 24 analysis of classical problems
- Basic software testing Day2 - Case Execution
- c# 设置logo图标和快捷方式的图标
- S2-062 remote command execution vulnerability recurrence (cve-2021-31805)
- SQL exercise (I)
- Idea code formatting plug-in save actions
猜你喜欢
Debug Jest test cases in VSCode, debug Jest test cases in VSCode, middle note basedir=$(dirname "$" (echo "$0" sed -e -e, s, \ \, / "-e").
Introduction to metalama 4 Use fabric to manipulate items or namespaces
S2-062 remote command execution vulnerability recurrence (cve-2021-31805)
Tan Xiang, CEO of Kechuang · Pera software: the essence of zero trust is digital security. To B should also deeply study the user's mind
Fastjson 2 来了,性能继续提升,还能再战十年
Xinwangda announced that the price of battery products had been increased, and the investment of "weixiaoli" exceeded 1 billion
亿级流量架构,服务器如何扩容?写得太好了!
Basic software testing Day2 - Case Execution
IDEA 中 .properties文件的中文显示乱码问题的解决办法
消息队列概述
随机推荐
【vulnhub靶场】-dc2
uni-app 原生APP-本地打包集成极光推送(JG-JPUSH)详细教程
力扣-70.爬楼梯
How do programmers finalize nucleic acid statistics with 130 lines of code
栈和队列a
Uni app native app local packaging integrated Aurora push (jg-jpush) detailed tutorial
亿级流量架构,服务器如何扩容?写得太好了!
宝塔面板命令行帮助教程(包含重置密码)
Solution of asynchronous clock metastability -- multi bit signal
Fastjson 2 is coming, the performance continues to improve, and it can fight for another ten years
基于卷积神经网络的遥感影像分类识别系统
Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]
如果你是一个Golang面试官,你会问哪些问题?
为什么要有包装类,顺便说一说基本数据类型、包装类、String类该如何转换?
Tan Xiang, CEO of Kechuang · Pera software: the essence of zero trust is digital security. To B should also deeply study the user's mind
C# F23. Stringsimilarity Library: String repeatability, text similarity, anti plagiarism
Running error: unable to find or load the main class com xxx. Application
1. Construction of electron development environment
Qt双缓冲绘图
VMware虚拟机使用esxi 导出硬盘vmdk文件