当前位置:网站首页>比较单片机3种时钟电路方案
比较单片机3种时钟电路方案
2022-07-29 05:26:00 【sg-expert】
作为单片机研发设计的项目,它的最小电路工作系统包含电源电路、复位电路、时钟频率电路;其中电源电路与复位电路,相信工程师都非常容易理解与设计。然而时钟频率电路,由于不同的开发项目功能需求不一样,设计的方案选择也不尽相同,很难得到有效的统一设计。
1 外部晶振方案
所谓外部晶振方案,是指在单片机的时钟引脚X1与X2外部连接一个晶振。

缺点:由于增加了外部晶振,所以研发的BOM表元器件成本增加扩大了。
2 内部晶振方案
所谓内部晶振方案,是指单片机利用内部集成的RC振荡电路产生的时钟频率。
优点:省去外部晶振,工程师可以有效的节约研发BOM元器件成本。
缺点:RC振荡电路产生的时钟频率精度比较低,误差较大,容易引起一些高频率通信的数据交互错误。
3 时钟芯片方案
所谓时钟芯片方案,是指在单片机外部加入一个专门处理时钟的时钟芯片,用来给单片机提供精准的时钟信号。
优点:精度高,误差小;适用于一些要求较高的电路项目。
缺点:电路设计复杂,工程师开发难度较高,研发BOM元器件成本高。
关于时钟芯片的一些电路特性,以某型号为例说明:

(1)供电
时钟芯片的供电电源包含两个部分:
VCC供电,是指电路项目系统的电源,同时也是单片机的电源。
Vbat供电,是指电池供电的电源,由于某种原因在VCC供电突然失去的条件下,时钟芯片自动启用Vbat电池电源,用以保持时钟芯片内部的时钟信号处理,不必因为电路系统电源VCC断电而失去电路工作。
(2)功能
时钟芯片内部集成时间的“秒”“分”“时”“日”“周”“月”和“年”详细信息计时电路功能,通过IIC通信方式将时间的信息发送至单片机,单片机即可获得高精度的时钟信息。
(3)接口
时钟芯片与单片机的接口是IIC通信接口,此接口方式为串口通信,工程师开发设计较为简单,容易实现电路功能;
(4)精度
精度,是指时钟芯片在正常工作条件下产生的时钟误差;例如美信的DS1338时钟芯片精度控制在10PPM,换算成一天24小时误差精度在0.8秒左右。
(5)应用
时钟芯片,一般用来处理精确计算时间的电路项目,如时间万年历。
边栏推荐
猜你喜欢
![[interview questions] the latest software test interview questions in 2022 (400) [with answers] continue to update](/img/72/445d78bdd6c921cc5a0843f056c435.png)
[interview questions] the latest software test interview questions in 2022 (400) [with answers] continue to update

Vivado IP核之定点数转为浮点数Floating-point

Merkle Tree 存在性功能第一次修改

Hongke share | FPGA implementation of pass through and store and forward switching delay

day12_ Multithreading

What are the advantages of software testing? See how much you know

Online multiplayer chat room based on UDP communication

Vivado IP核之RAM Block Memery Generator

Hongke white paper | how to use TSN time sensitive network technology to build a digital factory in industry 4.0?

基于FPGA的4位减法器设计及仿真代码
随机推荐
3、 Wide area communication network
网站服务器80,443端口一直被恶意攻击怎么办?
Arrays & object & System & Math & random & Packaging
Hongke white paper | how to use TSN time sensitive network technology to build a digital factory in industry 4.0?
2022年的软件测试的岗位要求为何越来越高?这其中有什么不可告人的秘密吗?
Circular linked list and bidirectional linked list
Vivado IP核之定点数转为浮点数Floating-point
Hongke | uses jesd204 serial interface to bridge analog and digital worlds at high speed
NoClassDefFoundError processing
Hongke education you want to enter the field of TSN? Hongke teaches you how to build TSN test system
Scanbasepackages scanning range configuration
day17_集合下
Rowkey design
Sequence list and linked list
Day16 set
Floating point multiplication and division of vivado IP core floating point
Idea installing Scala
Design and simulation code of 4-bit subtracter based on FPGA
Right value reference and mobile construction
7110 digital trend 2 solution