查看“Microduino-RTC”的源代码
←
Microduino-RTC
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{Language|Microduino-RTC}} {| style="width: 800px;" |- | [[file:Microduino-RTC-T.jpg|400px|thumb|right|Microduino-RTC]] Microduino-RTC Module is a Real Time Clock module based on NXP CMOS PCF8563. RTC module uses TWI/I2C interface for communication. Data can be backed up with the addtional AT24c32 EEPROM. With an onboard capacitor, RTC module keeps time for serveral minutes after power disconnected. PCF8563 uses external crystal, and can provide timer intterupt tigger. * Microduino RTC Real Time Clock Module * PCF8563 CMOS Real-Time Clock (RTC) * Two Wire Interface (I2C) * Backup by additional EEPROM AT24C32 |- | ==Feature== *Based on PCF8563 clock chip with century mark, seconds, minutes, hours, day, week, month, year; *Use the I2C interface to communicate with the Core/Core+ module; *Use EEPROM AT24C32 with I2C interface; *Low-power clock chip, the typical current value 0.25μA, plus a super capacitor, the clock is still running after a power diconnect; *Open source hardware circuit design, compatible with the Arduino IDE development environment for programming; *Define unified interface Microduino specification and contain rich peripheral modules. Set up the quick connection with other Microduino modules and sensors easily and flexibly. *2.54 pitch row female connector for easy integration into breadboard. |- | ==Specification== *Clock chip: PCF8563; **Low-power CMOS real-time clock/calendar chip; **Provides a programmable clock output, an interrupt output and a brown-out detector, transfers all address and data via the I2C serial bus interface; **The maximum bus speed is 400Kbits/s, after read and write data, the embedded word address register is automatically generated increment. *EEPROM chip:AT24C32 **Provide 32,768 serial electrically EPROM, organized as 4096 words × 8-bit length;。 **Cascade feature allows AT24C32 articulated eight devices on the same I2C bug, the replication cycle of millions lives and saved the data to 100 years with a write-protect function. *Super capacitor:XH414 **Provide a power-down timing function in a time slot。 [[File:RTC-Pinout-1.jpg|800px|thumb|center|Microduino-RTC-Pinout]] ==Document== Eagle PCB '''[[media:Microduino-RTC.zip|Download]]''' ===Main components=== *Clock chip:PCF8563 '''[[File:PCF8563 cn.pdf]]''','''[[File:PCF8563 en.pdf]]''' *EEPROM:AT24c32 '''[[File:Atmel24c32.pdf]]''' *Clock crystal:MS2V-T1S '''[[File:MS2V-T1S.pdf]]''' * Pcf8563:'''[[media:Pcf8563.pdf|Pcf8563]]''' * AT24c32:'''[[media:AT24c32.pdf|AT24c32]]''' * Crystal:'''[[media:MS2V-T1S.pdf|MS2V-T1S]]''' [[File:RTC-Pinout-1.jpg|800px|thumb|center|Microduino-RTC-Pinout1]] ==Development== ===Arduino library and supported package=== *【Rtc_Pcf8563 library'''[http://playground.arduino.cc/Main/RTC-PCF8563 download ]''' 】 *【I2Cdev library'''[https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/I2Cdev github download ]''' 】 *【U8glib library'''[http://code.google.com/p/u8glib/ google download ]''' 】 *【Pcf8563 Arduino Library'''[http://playground.arduino.cc/Main/RTC-PCF8563 ArduinoPlayground]''' 】【'''[[media:Rtc_Pcf8563.zip | Download]]'''】 ==Application== ===Software Download=== *Test program::'''[[File:Program Test RTC.zip]]''' *Prepared hardware:Microduino FT232R、Microduino Core、Microduino RTC、Microduino OLED; *Prepared software:Microduino provides test program(Arduino part)、Arduino IDE(1.0 release upper)、Rtc_Pcf8563 library; *Put the downloaded library to the library folder of Arduino IDE installation folder; *Start Arduino IED,open the test program that Microduino provides,card type choose the "Microduino Core (Atmega328P@16M,5V)",then download directly. ===Test the continued time after power down:[RTC_Time]=== *Boot display the loading process,including:Welcome!Load Time...,Microduino logo,load a project about every 1s. Finished loading, enter into the main program page. **The first line displays the date, the format is xx/xx/xx(year/month/day); **The second line displays the time, and week. The time format: xx:xx:xx(Hour:minute:second), followed the week(English format,excluding abbreviations); **The third line fixed displays that:"Microduino-RTC v1.0 201310". Using a small font because of the characters more; *After program running, disconnect the power. Wait for a moment, you can see the Time on the second line that is the continued time instead of default set time; **(Note:RTC is a programmable clock output module,use function vosettime() to set time. After the download is completed, need commented vosettime () function to power down and then continue the next time, or else once the power restarts,recover the set value too) ===Test EEPROM read/write:[RTC_EEPROM]=== *Boot display the loading process,including:Welcome!,Load EEPROM,Microduino logo,load a project about every 1s. Finished loading, enter into the main program page; **The first line displays the random function values,the first value is a random number from 10 to 99, the second value is the read value power recovered after last power down; **The second line fixed displays that:"Microduino-RTC v1.0 201310". Using a small font because of the characters more; *During the test, unplug the power firstly and then plug in the power, you can see the last value prior to power-down transformation of random numbers read EEPROM updates to display the value of place. ===Test timer interrupt:[RTC_Alarm]=== *Boot display the loading process,including:Welcome!,Load Time...,Load Alarm..,Microduino logo,load a project about every 1s. Finished loading, enter into the main program page; **The first line display the time. Time format: xx:xx:xx(Hour:minute:second); **The second line fixed displays that:"Microduino-RTC v1.0 201310". Using a small font because of the characters more; *Timer interrupt,when the time reaches the set time, led flashes once per second,lasts 1 minute, and you can see the countdown time on the OLED screen |- | ==Buy== * '''[http://www.microduino.cc/Modules/Microdoino%20Extension%20Modules/RTC Buy Microduino-RTC ]''' |- | ==History== *first version: 2013/July/06 passed internal testing |- | ==Pictures== [[file:rtc-t.jpg|thumb|600px|center|Front]] [[file:rtc-B.jpg|thumb|600px|center|Back]] |- |}
该页面使用的模板:
模板:Language
(
查看源代码
)
模板:Nmbox
(
查看源代码
)
返回至
Microduino-RTC
。
导航菜单
个人工具
创建账户
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
Welcome
首页
创客大赛
大赛详情
3D打印
安装月球车
图形化编程
操控月球车
升级月球车
编程工具下载
软件下载
Arduino
Processing
Mixly
Scratch
模块套件
Microduino 102
mCookie 102
mCookie 202
mCookie 302
IBC
其他
应用套件
四轴飞行器
平衡车
小车CUBE
音乐播放器
刷卡音乐播放器
wifi气象站
彩虹音乐触摸灯
分贝检测仪
迎门汇报
LED点阵时钟
LED点阵屏幕
硬件
mCookie
Sensor
Microduino
MicroWrt
MicroNux
MicroRobot-Core
MicroRobot-CoreESP
ideaBoard
ideaBox
MicroMV
MicroAI
帮助
常见问题
帮助
工具
链入页面
相关更改
特殊页面
页面信息