“Microduino-RTC”的版本间的差异

来自Microduino Wikipedia
跳转至: 导航搜索
Pkj讨论 | 贡献
Feature
 
(未显示2个用户的13个中间版本)
第1行: 第1行:
 +
{{Language|Microduino-RTC}}
 
{| style="width: 800px;"
 
{| style="width: 800px;"
 
|-
 
|-
 
|
 
|
 
[[file:Microduino-RTC-T.jpg|400px|thumb|right|Microduino-RTC]]
 
[[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 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 timing for serveral minutes after power disconnected. PCF8563 uses an external crystal and a capacitor as well as an interrupt input which can trigger the interruption periodically.
  
 
* Microduino RTC Real Time Clock Module
 
* Microduino RTC Real Time Clock Module
 
* PCF8563 CMOS Real-Time Clock (RTC)
 
* PCF8563 CMOS Real-Time Clock (RTC)
* Two Wire Interface (I2C)
+
* Two-Wire Interface (I2C)
* Backup by additional EEPROM AT24C32
+
* It is supported by additional EEPROM AT24C32
  
 
|-
 
|-
 
|
 
|
 
==Feature==
 
==Feature==
*基于PCF8563时钟芯片,带有世纪标志、秒、分、时、日、星期、月、年;
+
*Based on PCF8563 clock chip with century mark, second, minute, hour, day, week, month, year;
*采用I2C接口与Core/Core+ 核心模块通信;
+
*Use the I2C interface to communicate with the Core/Core+ module;
*带I2C接口的EEPROM AT24C32 存储芯片;
+
*Use EEPROM AT24C32 with I2C interface;
*时钟芯片功耗低,典型电流值为0.25μA,外加超级电容,掉电后时钟依然运行;
+
*Low-power clock chip, the typical current value 0.25μA. With a super capacitor, the clock still keeps running after a power diconnection;
*开源的硬件电路设计,与 Arduino 兼容的编程开发环境程;
+
*Open hardware circuit design and Arduino compatible programming development environment;
*统一的 Microduino 接口规范,和丰富的外围模块,可方便、灵活的与其他符合 Microduino 接口规范的模块、传感器进行快速的连接和扩展;
+
*Uniform Microduino interface standard and rich peripheral modules, capable of having a fast and flexible connection and extension with other modules and sensors  in accord with Microduino interface standard;
*2.54间距的排母接口方便集成到洞洞板。
+
*Easy to be integrated to pegboards with a 2.45-pitch female header connector interface.
 
 
 
|-
 
|-
 
|
 
|
==规格==
 
*时钟芯片:PCF8563
 
**低功耗的CMOS 实时时钟/日历芯片;
 
**提供一个可编程时钟输出,一个中断输出和掉电检测器,所有的地址和数据通过I2C总线接口串行传递;
 
**最大总线速度为400Kbits/s,每次读写数据后,内嵌的字地址寄存器会自动产生增量。
 
  
*EEPROM存储芯片:AT24C32
+
==Specification==
**提供32768位的串行电可擦写可编程只读存储器,组织形式为4096字×8位字长;
+
*Clock chip: PCF8563;
**AT24C32的级联特性允许在同一I2C总线上挂接8个器件,百万次的复写周期和100年的保存年限,并带有写保护功能。
+
**Low-power CMOS real-time clock/calendar chip;
 +
**Provide a programmable clock output, an interrupt output and a brown-out detector. All the addresses and data will have a serial transmission through the I2C bus interface;
 +
**With the maximum bus speed of 400Kbits/s, the embedded word address register will generate increment automatically after reading and writing data every time.
  
*超级电容:XH414
+
*EEPROM chip:AT24C32
**提供一定时间的掉电计时功能。
+
**Provide 32,768 EPROM serial power, which can  be organized with a length of 4096 words × 8-bit;
 +
**Cascade feature allows AT24C32 to articulate eight devices on the same I2C bug, to have 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]]
 
[[File:RTC-Pinout-1.jpg|800px|thumb|center|Microduino-RTC-Pinout]]
  
==文档==
+
==Document==
 
Eagle PCB '''[[media:Microduino-RTC.zip|Download]]'''
 
Eagle PCB '''[[media:Microduino-RTC.zip|Download]]'''
  
===主要元件===
+
===Main components===
===主要元器件===
+
*Clock chip:PCF8563 '''[[File:PCF8563 cn.pdf]]''','''[[File:PCF8563 en.pdf]]'''
*时钟芯片:PCF8563 '''[[File:PCF8563 cn.pdf]]''','''[[File:PCF8563 en.pdf]]'''
 
 
*EEPROM:AT24c32 '''[[File:Atmel24c32.pdf]]'''
 
*EEPROM:AT24c32 '''[[File:Atmel24c32.pdf]]'''
*时钟晶振:MS2V-T1S '''[[File:MS2V-T1S.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]]'''
 
* Crystal:'''[[media:MS2V-T1S.pdf|MS2V-T1S]]'''
  
 
[[File:RTC-Pinout-1.jpg|800px|thumb|center|Microduino-RTC-Pinout1]]
 
[[File:RTC-Pinout-1.jpg|800px|thumb|center|Microduino-RTC-Pinout1]]
  
==开发==
+
==Development==
  
===Arduino库及支持包===
+
===Arduino library and support package===
*【Rtc_Pcf8563库'''[http://playground.arduino.cc/Main/RTC-PCF8563 下载 ]''' 】
+
*Rtc_Pcf8563:https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Libraries/_06_Microduino_RTC_PCF8563
*【I2Cdev库'''[https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/I2Cdev github下载 ]''' 】
+
*I2Cdev:https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Libraries/_10_Microduino_System_I2Cdev
*【U8glib库'''[http://code.google.com/p/u8glib/ google下载 ]''' 】
+
*U8glib:https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Libraries/_01_Microduino_OLED_U8glib
* Pcf8563 Arduino Library【'''[http://playground.arduino.cc/Main/RTC-PCF8563 ArduinoPlayground]''' 】【'''[[media:Rtc_Pcf8563.zip | Download]]'''】
+
*【Pcf8563 Arduino Library'''[http://playground.arduino.cc/Main/RTC-PCF8563 ArduinoPlayground]''' 】
  
 +
==Application==
  
==应用==
+
===Software Download===
 +
*Test program::'''[[File:Program Test RTC.zip]]'''
  
===程序下载===
+
*Prepared hardware:Microduino FT232R, Microduino Core, Microduino RTC andMicroduino OLED;
*测试程序::'''[[File:Program Test RTC.zip]]'''
+
*Prepared software:Microduino provides test program(Arduino terminal), Arduino IDE(version 1.0 and higher)and Rtc_Pcf8563 library;
 +
*Put the downloaded library to the library subfolder of Arduino IDE installation folder;
 +
*Start Arduino IED,open the Microduino test program, choose the "Microduino Core (Atmega328P@16M,5V)" , then download directly.
  
  
*所需要准备的硬件有:Microduino FT232R、Microduino Core、Microduino RTC、Microduino OLED;
+
===Test the continued time after power down:[RTC_Time]===
*所需要准备的软件有:Microduino提供的测试程序(Arduino端)、Arduino IDE(1.0版本以上)、Rtc_Pcf8563库;
+
*The loading process is displayed after power on, including:Welcome!Load Time and "Microduino". It takes about one second to load a project. After the loading, it will enter into the main program page.
*将下载好的库文件夹放入Arduino IDE安装文件夹内的libraries中;
+
**Date is displayed on the first line. The format is xx/xx/xx(year/month/day);
*启动Arduino IED,打开Microduino提供的测试程序,板卡选择Microduino Core (Atmega328P@16M,5V),直接下载即可;
+
**Time including week is displayed on the second line. The time format: xx:xx:xx(Hour:minute:second), followed the week(English format,excluding abbreviations);
 +
**The third line fixedly shows:"Microduino-RTC v1.0  201310". Please choose small font due to lots of characters;
 +
*After program running, just disconnect the power and wait for a while. You can see the Time on the second line that is the continued time instead of the default time;
 +
**(Note: Microduino-RTC is a programmable clock output module,using function vosettime() to set time. By setting time through vosettime() function, you need to comment out vosettime() so that you can take blackout timing next time. Otherwise, you have to reset the value after power-on and restart.)
  
 +
===Test EEPROM read/write:[RTC_EEPROM]===
 +
*The loading process is displayed as soon as the system powers on, including Welcome!, Load EEPROM and "Microduino". In every minute, will the system load a project. It will enter the main program page after the download;
 +
**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". Please choose small font due to lots of characters;
 +
*You can shut off the power supply and then restart during the test. And you'll see that the last value before the blackout has updated to the place where the EEPROM displays values.
  
===测试掉电续时:[RTC_Time]===
 
*开机显示载入过程,包括:Welcome!Load Time...,Microduino图标。每隔1s左右载入一个项目,载入完毕进入主程序界面;
 
**第一行显示的日期,日期格式:xx/xx/xx(年/月/日)
 
**第二行显示的时间,包括星期。时间格式:xx:xx:xx(时:分:秒),接着后面显示星期(英文,不含缩写);
 
**第三行固定显示:Microduino-RTC v1.0  201310,因为字符较多,采用小字体;
 
*程序运行后,切断电源,等一段时间后上电观察到第二行显示的时间是掉电后继续运行的时间,而不是初始化设置得时间,也是掉电前1s显示的时间;
 
**(注意:RTC是可编程时钟输出,通过vosettime()函数来设置时间,下载完毕后注释掉vosettime()函数再下一次才能掉电继续计时,不然上电重启之后又恢复设置得值)
 
  
===测试EEPROM读写:[RTC_EEPROM]===
+
===Test regular interruption:[RTC_Alarm]===
*开机显示载入过程,包括:Welcome!,Load EEPROM,Microduino图标。每隔1s左右载入一个项目,载入完毕进入主程序界面;
+
*The loading process is displayed as soon as the system powers on, including Welcome!, Load EEPROM and "Microduino". In every minute, will the system load a project. It will enter the main program page after the download;
**第一行显示随机函数值,第一个数据是10到99的随机数(Random);第二个数据是EEPROM掉电后上电读取的数值;
+
**The first line shows the time. Time format: xx:xx:xx(Hour:minute:second);
**第二行固定显示:Microduino-RTC v1.0  201310,因为字符较多,采用小字体;
+
**The second line shows:"Microduino-RTC v1.0  201310". Please choose small font due to lots of characters;
*在测试过程中可拔掉电源后插上电源,就可以看到掉电前随机数变换的最后一个值更新到了读取EEPROM显示值处。
+
*When it reaches the set time, the LED light flashes one time per second and lasts for one minute. You can see the countdown time on the OLED screen
 
 
===测试定时中断:[RTC_Alarm]===
 
*开机显示载入过程,包括:Welcome!,Load Time...,Load Alarm..,Microduino图标。每隔1s左右载入一个项目,载入完毕进入主程序界面;
 
**第一行显示的时间。时间格式:xx:xx:xx(时:分:秒)
 
**第二行固定显示:Microduino-RTC v1.0  201310,因为字符较多,采用小字体。
 
*定时中断,当时间到达设定时间时,led每秒闪烁一次,持续1分钟,并且在OLED屏幕上看到倒计时时间。
 
  
 
|-
 
|-
 
|
 
|
==Buy==
+
 
 +
==Purchase==
 
* '''[http://www.microduino.cc/Modules/Microdoino%20Extension%20Modules/RTC Buy Microduino-RTC ]'''
 
* '''[http://www.microduino.cc/Modules/Microdoino%20Extension%20Modules/RTC Buy Microduino-RTC ]'''
  

2014年8月22日 (五) 02:50的最新版本

Language English
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 timing for serveral minutes after power disconnected. PCF8563 uses an external crystal and a capacitor as well as an interrupt input which can trigger the interruption periodically.

  • Microduino RTC Real Time Clock Module
  • PCF8563 CMOS Real-Time Clock (RTC)
  • Two-Wire Interface (I2C)
  • It is supported by additional EEPROM AT24C32

Feature

  • Based on PCF8563 clock chip with century mark, second, minute, hour, 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. With a super capacitor, the clock still keeps running after a power diconnection;
  • Open hardware circuit design and Arduino compatible programming development environment;
  • Uniform Microduino interface standard and rich peripheral modules, capable of having a fast and flexible connection and extension with other modules and sensors in accord with Microduino interface standard;
  • Easy to be integrated to pegboards with a 2.45-pitch female header connector interface.

Specification

  • Clock chip: PCF8563;
    • Low-power CMOS real-time clock/calendar chip;
    • Provide a programmable clock output, an interrupt output and a brown-out detector. All the addresses and data will have a serial transmission through the I2C bus interface;
    • With the maximum bus speed of 400Kbits/s, the embedded word address register will generate increment automatically after reading and writing data every time.
  • EEPROM chip:AT24C32
    • Provide 32,768 EPROM serial power, which can be organized with a length of 4096 words × 8-bit;
    • Cascade feature allows AT24C32 to articulate eight devices on the same I2C bug, to have 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.
文件:RTC-Pinout-1.jpg
Microduino-RTC-Pinout

Document

Eagle PCB Download

Main components

文件:RTC-Pinout-1.jpg
Microduino-RTC-Pinout1

Development

Arduino library and support package

Application

Software Download

  • Prepared hardware:Microduino FT232R, Microduino Core, Microduino RTC andMicroduino OLED;
  • Prepared software:Microduino provides test program(Arduino terminal), Arduino IDE(version 1.0 and higher)and Rtc_Pcf8563 library;
  • Put the downloaded library to the library subfolder of Arduino IDE installation folder;
  • Start Arduino IED,open the Microduino test program, choose the "Microduino Core (Atmega328P@16M,5V)" , then download directly.


Test the continued time after power down:[RTC_Time]

  • The loading process is displayed after power on, including:Welcome!Load Time and "Microduino". It takes about one second to load a project. After the loading, it will enter into the main program page.
    • Date is displayed on the first line. The format is xx/xx/xx(year/month/day);
    • Time including week is displayed on the second line. The time format: xx:xx:xx(Hour:minute:second), followed the week(English format,excluding abbreviations);
    • The third line fixedly shows:"Microduino-RTC v1.0 201310". Please choose small font due to lots of characters;
  • After program running, just disconnect the power and wait for a while. You can see the Time on the second line that is the continued time instead of the default time;
    • (Note: Microduino-RTC is a programmable clock output module,using function vosettime() to set time. By setting time through vosettime() function, you need to comment out vosettime() so that you can take blackout timing next time. Otherwise, you have to reset the value after power-on and restart.)

Test EEPROM read/write:[RTC_EEPROM]

  • The loading process is displayed as soon as the system powers on, including Welcome!, Load EEPROM and "Microduino". In every minute, will the system load a project. It will enter the main program page after the download;
    • 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". Please choose small font due to lots of characters;
  • You can shut off the power supply and then restart during the test. And you'll see that the last value before the blackout has updated to the place where the EEPROM displays values.


Test regular interruption:[RTC_Alarm]

  • The loading process is displayed as soon as the system powers on, including Welcome!, Load EEPROM and "Microduino". In every minute, will the system load a project. It will enter the main program page after the download;
    • The first line shows the time. Time format: xx:xx:xx(Hour:minute:second);
    • The second line shows:"Microduino-RTC v1.0 201310". Please choose small font due to lots of characters;
  • When it reaches the set time, the LED light flashes one time per second and lasts for one minute. You can see the countdown time on the OLED screen

Purchase

History

  • first version: 2013/July/06 passed internal testing


Pictures

Front
Back