实时时钟及温度传感器芯片DS1629的接口与应用

合集下载

智能温控风扇设计-文献综述

智能温控风扇设计-文献综述

智能温控风扇设计摘要:本文综述了温度控制技术的有关概念以及现今温度控制技术存在的问题,同时介绍了温度控制技术的发展历史以及研究现状并指出随着温度控制技术的不断发展,温度控制技术将朝着高精度、智能化等方面快速发展关键词:温度控制;发展;智能化The design of Intelligent Temperature Control Fan Abstract:This paper discusses conceptions related to temperature control and points out the main problem of temperature control technology. And it also states development background and furture development of intelligent temperature control system and it points out that with these development of temperature control technology, the temperature control system will become more precise, intelligent.Key words: temperature control; development;intelligent1.1 综述目的随着温度控制技术与计算机、通信等技术的不断结合,使得现今的温度控制技术在过去几十年里有了极大发展。

同时,随着工业化生产的不断发展,其对温度控制的提出了高精度、高智能化的发展要求。

因此,介绍了解当前温度控制系统的发展状况对设计研究高精度、高智能化的温度控制系统有其积极意义。

1.2 有关概念PID控制——将偏差的比例、积分、微分通过线性组合构成控制量。

用这一控制量对被控对象进行控制,这样的控制称为PID控制。

[课件]智能传感器PPT

[课件]智能传感器PPT

•数据存储和记忆功能;
•双向通信功能。(能通过RS-232,RS-485,USB,I2C等
标准总线接口,直接与微机通信。)
智能传感器原理框图
被 测 信 号
传 感 器
信 号 调 理 电 路
微 处 理 器
输 出 接 口
数 字 量 输 出
智能传感器的特点
•高精度;(例如:测压±0.05%, 测温±0.1℃)
测温范围:-55℃ ~ +125℃ 分辨力:0.0625℃ 测温误差:-40℃ ~ +80℃ ≤ ±3℃ -55℃ ~ +125℃ ≤ ±4℃ 温度/数据转换时间:~ 133ms I2C总线串行时钟频率范围:0~400kHz。利用I2C总线地址 选择端,可选择4片MAX6626。 当被测温度超过上限时,报警输出端被激活。 电源电压范围:+3.0V~+5.5V,静态工作电流:~1mA
3、智能温度传感器(数字温度传感器): 内部包含温度传感器、A/D、信号处理器、存储器 (或寄存器)和接口电路。能输出温度数据及相关的 控制量,适配各种微控制器(MCU)。它是在硬件的 基础上通过软件来实现测试功能的。 4、通用智能温度控制器 在3的基础上发展而成,适配各种微控制器构成智能 化温控系统;可脱离微控制器单独工作,自行构成一个 温控仪,可连续转换也可单次转换。 5、微机散热保护专用的智能温度控制器 专为微机散热保护而设计,可通过散热风扇来控制PC 机中CPU的温度。
监控。
SMBus串行接口能与I2C总线兼容。总线上最 多可接9片MAX6654。
MAX6654的典型应用电路
带实时日历时钟(RTC)的多功能智能温度传感器
DS1629是将智能温度传感器,实时日历时钟
(RTC)和32字节的SRAM集成在一片CMOS大 规模集成电路中,构成功能独特的智能温度传感 器。 能输出9位测温数据,测温范围:-55℃ ~ +125℃

TM1629A芯片参考程序

TM1629A芯片参考程序
tm1629.c
/* *版权信息: *文件名: TM1629A芯片参考程序 *当前版本: 1.0 *单片机型号: AT89S52 *开发环境: Keil uVision3 *晶震频率: 12M *作者: *完成日期: 2009-05-05 功能: 驱动共阴LED数码屏做时钟显示,可由按键控制时钟暂 停,开始,停止以及其它数码管显示0-9数字,
if(TIME_seconds == 10) 出。
//对时间数据进行处理,以免溢
{
TIME_seconds = 0;
seconds_2+=1;
}
if(seconds_2 == 6)
{
seconds_2 = 0;
sub_1 +=1;
}
if(sub_1 == 10)
{
sub_1 = 0;
sub_2 +=1;
show[14] = CODE[seconds_2]; //数码屏倒数第二个“8”字,
第6页
tm1629.c
show[13] = CODE[sub_1]|T_count;
show[12] = CODE[sub_2];
show[11] = CODE[shi_1]|T_count;
show[10] = CODE[shi_2];
//K1与
SEG6按键按下,key_FLAG1 = 0x00启动定时器,时间开始。
if((key[1]==0x08)){count7 = 0x01;TR0 = 0;key_FLAG1 = 0x02;} //当
K0与SEG6按键按下,key_FLAG1 = 0x02单独显示数字按键无效!
暂停。
if((key[1]==0x80))
uchar h; stb = 1; clk = 1; dio = 1; write(0x40);//写数据到显示寄存器,采用地址自动加一 stb = 1; write(0xc0);//显示寄存器的00H单元开始 for(h=0;h<16;h++) { write(show_led[h]);//给显示寄存器送数据, } stb=1; write(0x8b);//显示控制参数,点亮数码屏幕,亮度可以通过改变低 三位调节

TM1629系列LED驱动IC应用手册说明书

TM1629系列LED驱动IC应用手册说明书
TM1629xx没有要求一定要读几个按键。总的要求是:设计多少按键,能够全部读 到键值就可以了。当然你可以不按BYTE来读,按照BIT来读也可以。我们推荐用户按照 字节来操作。
如果你需要两个按键同时按下,图(11)的电路就有问题了。 我们知道SEG1/KS1-SEG8/KS8是显示和按键扫描复用的。以图(12)为例子,显示 需要D1亮,D2灭,那么我们需要让SEG1为“1”,SEG2为“0”状态,如果S1,S2同时被 按下,那么相当于SEG1,SEG2被短路,这时D1,D2都被点亮。
0
0
1
1
1
1
1
1
00H
B7
B6
B5
B4
B3
B2
B1
B0
SEG1
a bcd e f g
GRID1 图(8)
GRID7
图8给出共阳数码管的连接示意图,如果让该数码管显示“0”,那你需要在GRID1, GRID2,GRID3,GRID4,GRID5,GRID6为低电平的时候让SEG1为高电平,在GRID7为低电 平的时候让SEG1为低电平。
- 10 -
图(13) 图(14)
图(15)
由于在软件上面的处理有一定的局限,这里不给出具体的方法,我们建议用户 在使用过程中显示数据的存放地址单元中没有使用到的BIT位全部写“0”。否则在遇到 上面的情况按照图(12)连接可能会出现干扰显示的问题。
(3)显示和键盘扫描的时序 键扫描由TM1629xx完成,不受用户控制,用户只需要按照时序读键值。完成一 次键扫需要2个显示周期,一个显示周期大概需要T=8x500US,也就是说如果你在8MS先 后按下了2个不同的按键,2次读到的键值都是先按下的那个按键的键值。 显示和读键的时序如图(16)所示:

中微爱芯AIP1629A LED驱动控制专用电路说明书

中微爱芯AIP1629A LED驱动控制专用电路说明书

江苏省无锡市蠡园经济开发区滴翠路100号9栋2层 第 1 页 共 13 页http://www.i-core. cn 邮编:214072 版本:2011-12-A1AIP1629ALED驱动控制专用电路产品说明书说明书发行履历:版本 发行时间 新制/修订内容2011-12-A1 2011-12新制深圳富瑞世嘉 中微爱芯一级代理手机(微信):13530167943网 址:www.forchip.cn1、概 述AIP1629A 是一块LED 驱动专用电路,内置MCU 数字接口、数据锁存器等电路。

主要应用于冰箱、空调 、家庭影院等产品显示屏的驱动控制。

其主要特点如下: ● 采用功率CMOS 工艺 ● 显示模式:16段×8位● 辉度调节电路(占空比8级可调) ● 串行接口(CLK 、DIO 、STB ) ● 内置RC 振荡(400KHz±5%)● 内置上电复位电路 ● 封装形式:SOP322、功能框图及引脚说明2.1、引脚排列图图1、引脚排列图江苏省无锡市蠡园经济开发区滴翠路100号9栋2层 第 2 页 共 13 页http://www.i-core. cn 邮编:214072 版本:2011-12-A1深圳富瑞世嘉 中微爱芯一级代理手机(微信):13530167943网 址:www.forchip.cn2.3、引脚说明引脚 符 号引脚名称功 能1、2、4、5、28、29、31、32GRID1~GRID8 输出(位)位输出, N 管开漏输出。

7 DIO 数据输入 在时钟上升沿输入串行数据, 从低位开始。

8 CLK时钟输入 在时钟上升沿输入串行数据9 STB 片选 在上升或下降沿初始化串行接口, 随后等待接收指令。

STB 为低后的第一个字节作为指令,当处理指令时,当前其它处理被终止。

当STB 为高时,CLK 被忽略。

3、6、30 VSS逻辑地接系统地 10、27VDD逻辑电源5V±10%11~26 SEG1~SEG16输出(段)段输出, P 管开漏输出。

AIP1629系列 LED显示驱动芯片

AIP1629系列 LED显示驱动芯片

AiP1629A3-line Serial Interface/Common Cathode16Seg*8GridLED Controller/DriverProduct Specification1、General DescriptionAiP1629A is an LED Controller driven on a 1/8 duty factor.16segment output lines,8 grid output lines, one display memory, control circuit are all incorporated into a single chip to build a highly reliable peripheral device for a single chip microcomputer. Serial data is fed to AiP1629A via a three-line serial interface. Housed in a 32 pins SOP package, AiP1629A pin assignments and application circuit are optimized for easy PCB Layout and cost saving advantages.Features:CMOS technologydisplay modes(16 segment*8 grid)8-step dimming circuitrySerial interface for clock, data input, strobe pinsBuilt-in RC oscillator: (400KHz±5%)Available in 32 pins, SOP2、Block Diagram And Pin Description2.1、Pin Configurations2.2、Pin DescriptionPin No. Pin NameDescription 1、2、4、5、28、GRID1~Grid Output Pins29、31、32 GRID87 DIO8 CLKData input PinThis pin inputs serial data at the rising edge of the shift clock(starting from the lower bit)Clock input Pin .This pin reads serial data at the rising edge andoutputs data at the falling edge.9 STBSerial Interface Strobe PinThe data input after the STB has fallen is processed as acommand. When this pin is “HIGH”, CLK is ignored.3、6、30 VSS Ground Pin10、27 VDD Power Supply11~26 SEG1~SEG16 Segment Output Pins3、Electrical Parameter3.1、Absolute Maximum Ratings(Tamb=25℃, All voltage referenced to Vss, unless otherwise specified)Characteristic Symbol Conditions Value Unit Supply Voltage VDD -0.5~7.0 V Input Voltage V I -0.5~VDD+0.5 VDrive output current I O1 -50 mAI O2 +200 mA Power Dissipation P D 400 mW Operating Temperature T amb -40~+80 ℃torage Temperature T stg -65~+150 ℃Soldering Temperature T L 10s 250 ℃3.2、Recommended Operating Range(Ta= -20℃~+70℃,GND=0V)Parameter Symbol Min. Typ. Max. Unit Logic supply voltage V DD 3 5 5.5 VHigh-level input voltage V IH 0.7V DD - V DD VLow-level input voltage V IL 0 - 0.3V DD V3.3、Electrical Characteristics3.3.1 DC Characteristics (Tamb=25 C , VDD=4.5~5.5V, unless otherwise specified)Parameter Symbol Conditions Min. Typ. Max. Unit High-level output I OH1 SEG1~SEG16,V o=VDD -2V -20 -25 -40 mA current I OH2 SEG1~SEG16,V o= VDD-3V -20 -30 -50 mA3/ 13Low-level outputcurrent I OL1 GRID1~GRID8,Vo=0.3V 80 140 -mALow-level output current Segment Idout VO = 0.4V,dout 4 --mAHigh-level output Itolsg VO = VDD–3V,SEG1~SEG16 -- 5 % current toleranceInput leakagecurrent II VI=VDD/VSS --±1 µA High-level inputvoltage V IH CLK,DIO, STB 0.7VDD --V Low-level inputvoltage V IL CLK,DIO, STB --0.3VDD V Hysteresis Voltage V H CLK,DIO, STB -0.35 -V Dynamic currentdissipation IDDdyn No load , display off -- 5 mA3.3.2 AC Characteristics (Tamb=25 C , VDD=4.5~5.5V, unless otherwise specified)Parameter Symbol Conditions Min Typ Max Unit Oscillationf OSC - 400 - KHz frequencyPropagation t PLZ CLK→DIO - - 300 ns delay t PZL CL=15pF, R L=10KΩ- - 100 nsSeg1/KS1~T TZH1 - - 2 us Rise Time CL=300pF Seg8/KS8T TZH2Grid1~Grid8 - - 0.5usFall Time T THZ CL=300pF、Segn、Gridn - - 120us Maximum clockFmax Duty=50% 1 - - MHz frequencyInputC I - - - 15 pF capacitance3.3.3 Timing Characteristics(Ta= -20℃~+70℃,V DD=4.5V~5.5V)Parameter Symbol Conditions Min Typ Max Unit C lock pulse width PWCLK - 400 - - ns STB pulse width PWSTB - 1 - - μs S et-up time for data t SETUP - 100 - - ns H old time for data t HOLD - 100 - - ns Propagation delayt CLK STB CLK↑→STB↑ 1 - - μs CLK to STBWait time t WAIT CLK↑→CLK↓ 1 - - μs4、Function Description4.1、Display mode AND RAM addressData transmitted from an external device to AiP1629A via the serial interface are stored in the Display RAM and are assigned addresses. The RAM addresses of AiP1629A are given below in 8 bits unit.xxHL(low 4 bit) xxHU(high 4 bit) xxHL(low 4 bit) xxHU(high 4 bit)B0 B1 B2 B3 B4 B5 B6 B7 B0 B1 B2 B3 B4 B5 B6 B7 00HL 00HU 01HL 01HU GR102HL 02HU 03HL 03HU GR204HL 04HU 05HL 05HU GR306HL 06HU 07HL 07HU GR408HL 08HU 09HL 09HU GR50AHL 0AHU 0BHL 0BHU GR60CHL 0CHU 0DHL 0DHU GR70EHL 0EHU 0FHL 0FHU GR8 NOTE:when power up, first transfer data to RAM, and then setup display on.4.2、Commands DescriptionA command is the first byte (b0 to b7) inputted to AiP1629A via the DIO Pin after STB Pin has changed from HIGH to LOW State. Bit 7、bit 6 used to distinguish different instruction.B7 B6 Commands0 1 Data setting commands1 0 Display control commands1 1 Address setting commandsWhen input command, the STB can be set “1”,serial communication initialization, input command are invalid instruction.4.2.1、Data setting commandsThe Data Setting Commands executes the Data Write or Data Read Modes for AiP1629A,B1,B0can not set 01 or 11 or 10.B7 B6 B5 B4 B3 B2 B1 B0 Function Description0 1 XX 0 0 SET write write0 1 0 Auto increaseAddress increase0 1 1 Fixed address0 1 0 Normal modeTEST mode0 1 1 Test mode4.2.2、ADDRESS SETTING COMMANDSAddress Setting Commands are used to set the address of the display memory. The address is considered valid if it has a value of 00H to 0FH. If the address is set to 0FH or higher, the data is ignored until a valid4.3、Serial Communication FormatReceive 1 bit data all in rising of the clockWrite data time:4.4、DisplayCommon-cathode LED driverYou can write data”3F”in“00”address to set the digital tube display “0”Common-anode LED driverYou can write data ”01” in “00,02,04,06,08,0a” address and other address write “00” to set the digital tube display “0”.SEG8 SEG7 SEG6 SEG5 SEG4 SEG3 SEG2 SEG10 0 0 0 0 0 0 1 00H0 0 0 0 0 0 0 1 02H0 0 0 0 0 0 0 1 04H0 0 0 0 0 0 0 1 06H0 0 0 0 0 0 0 1 08H0 0 0 0 0 0 0 1 0AH0 0 0 0 0 0 0 0 0CHB7 B6 B5 B4 B3 B2 B1 B0Note: SEGn p-channel, open drain output, GRIDn N-channel, open drain output. when using, SEGn connect to anode of LED, GRIDn connect to cathode of LED.4.5、The serial data transfer in the applications4.5.1、Address Increasing ModeDisplay memory is updated by incrementing addresses. Please refer to the following diagram.where:Command 1: Data setting commandCommand 2: Address settingcommandData 1 to n: Transfer display data (16bytes max.)Command 3: Display control command4.5.2、Fixing AddressThe following diagram shows the waveforms when updating specific addresses.where:Command 1:Data setting commandCommand 2:Address setting commandData 1 : display dataCommand 3:Address settingcommand Data 2 : display data。

DS18B20数字温度计毕业设计(毕业设计)详解

DS18B20数字温度计毕业设计(毕业设计)详解

DS18B20数字温度计设计西南大学工程技术学院,重庆 400716摘要:本文介绍了利用美国DALLAS半导体公司最新推出的一种改进型智能温度传感DS18B20和ATMEL公司生产的AT89C2051,结合四位共阳型LED,采用动态显示的方法实现室内温度的检测和读数。

本文设计的数字温度计基于DS18B20单线总线结构,与单片机的接口电路简单无须外部电路,同时由于DS18B20能直接读出被测温度,并且可根据实际要求通过简单的编程实现9~12位的数字值读数方式,因而使得整体设计思路简单,可以实现-55~+125゜C的温度测量,精度误差在0.1゜C以内。

本文给出了具体的硬件电路和软件设计。

关键词:单片机DS18B20智能温度传感器DS18B20 DIGITAL THERMOMETER DESIGNLI XuejianCollege of Engineering and Technology, Southwest University, Chongqing 400716, ChinaAbstract:This paper presents the method for a digital thermometer design made of DS18B20,a newly-product of advaced Programmable Resolution 1-Wire® Digital Thermometer(DALLAS),and AT89C2051 (ATMEL).This design adopts dynamic dispay method with four LED to measu re room temperature.This digital thermometer is based on the one wire configuration of DS18B 20, and no external circuit is required.Since the measured temperature can be directly read by DS18B20 and 9-12 digits reading can be implemented through simple programming, the overall design concept is simple. Temperature within -55~+125゜C can be measured with an error of +/-0.1゜C. Detailed circuits and softwaredesign are given here.Key Words:single-chip computer DS18B20 smart temperature sensor文献综述自动控制领域中,温度检测与控制占有很重要地位。

实时时钟芯片-上海复旦微

实时时钟芯片-上海复旦微

FM38025T 实时时钟芯片产品说明书2017. 07本资料是为了让用户根据用途选择合适的上海复旦微电子集团股份有限公司(以下简称复旦微电子)的产品而提供的参考资料,不转让属于复旦微电子或者第三者所有的知识产权以及其他权利的许可。

在使用本资料所记载的信息最终做出有关信息和产品是否适用的判断前,请您务必将所有信息作为一个整体系统来进行评价。

采购方对于选择与使用本文描述的复旦微电子的产品和服务全权负责,复旦微电子不承担采购方选择与使用本文描述的产品和服务的责任。

除非以书面形式明确地认可,复旦微电子的产品不推荐、不授权、不担保用于包括军事、航空、航天、救生及生命维持系统在内的,由于失效或故障可能导致人身伤亡、严重的财产或环境损失的产品或系统中。

未经复旦微电子的许可,不得翻印或者复制全部或部分本资料的内容。

今后日常的产品更新会在适当的时候发布,恕不另行通知。

在购买本资料所记载的产品时,请预先向复旦微电子在当地的销售办事处确认最新信息,并请您通过各种方式关注复旦微电子公布的信息,包括复旦微电子的网站(/)。

如果您需要了解有关本资料所记载的信息或产品的详情,请与上海复旦微电子集团股份有限公司在当地的销售办事处联系。

商标上海复旦微电子集团股份有限公司的公司名称、徽标以及“复旦”徽标均为上海复旦微电子集团股份有限公司及其分公司在中国的商标或注册商标。

上海复旦微电子集团股份有限公司在中国发布,版权所有。

目录目录 (3)1说明 (4)2产品综述 (5)2.1产品简介 (5)2.2产品特点 (5)2.3性能指标 (5)2.3.1极限参数 (5)2.3.2电参数 (6)2.4引脚说明 (7)2.4.1SOP14封装 (7)2.4.2引脚功能定义 (7)3封装信息 (8)3.1SOP14封装 (8)版本信息 (9)上海复旦微电子集团股份有限公司销售及服务网点 (10)1 说明本文档为FM38025T芯片简单技术手册。

FM38025T是复旦微电子公司开发的低功耗RTC芯片,请联系复旦微电子公司提供更多相关文档支持设计开发。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档