PCF2129 RTC example code with use of FRDM-KL25Z and OM13513 boards

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PCF2129 RTC example code with use of FRDM-KL25Z and OM13513 boards

PCF2129 RTC example code with use of FRDM-KL25Z and OM13513 boards

***************************************************************************************************
* The PCF2129AT is a CMOS Real Time Clock (RTC) and calendar with an integrated
* Temperature Compensated Crystal Oscillator and a 32.768 kHz quartz crystal
* optimized for very high accuracy and very low power consumption.

* Detailed Description:

* This simple example code has been written for the FRDM-KL25Z + OM13513
* boards and demonstrates how to set and read the time/date on the PCF2129AT
* using the SPI (do not forget to remove the JP1 jumper) interface.
*
* In this example the time to be set is Wednesday, February 8 2017, 2:45 PM.

*

* Connection:    FRDM-KL25Z       OM13513
* VDD               J9-4                       P2-2
* GND               J9-18                    P2-1
* MOSI              J2-8                      P2-5
* MISO              J2-10                    P2-6
* SCLK              J2-12                    P2-4
* CS                  J2-6                      P2-7
***************************************************************************************************

Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1100298%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPCF2129%20RTC%20example%20code%20with%20use%20of%20FRDM-KL25Z%20and%20OM13513%20boards%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1100298%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E***************************************************************************************************%3CBR%20%2F%3E*%20The%20PCF2129AT%20is%20a%20CMOS%20Real%20Time%20Clock%20(RTC)%20and%20calendar%20with%20an%20integrated%3CBR%20%2F%3E*%20Temperature%20Compensated%20Crystal%20Oscillator%20and%20a%2032.768%20kHz%20quartz%20crystal%3CBR%20%2F%3E*%20optimized%20for%20very%20high%20accuracy%20and%20very%20low%20power%20consumption.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E*%20Detailed%20Description%3A%3C%2FP%3E%3CP%3E*%20This%20simple%20example%20code%20has%20been%20written%20for%20the%20FRDM-KL25Z%20%2B%20OM13513%20%3CBR%20%2F%3E*%20boards%20and%20demonstrates%20how%20to%20set%20and%20read%20the%20time%2Fdate%20on%20the%20PCF2129AT%3CBR%20%2F%3E*%20using%20the%20SPI%20(do%20not%20forget%20to%20remove%20the%20JP1%20jumper)%20interface.%20%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20In%20this%20example%20the%20time%20to%20be%20set%20is%20Wednesday%2C%20February%208%202017%2C%202%3A45%20PM.%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20Connection%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20FRDM-KL25Z%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20OM13513%3CBR%20%2F%3E*%20VDD%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BJ9-4%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20P2-2%3CBR%20%2F%3E*%20GND%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BJ9-18%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20P2-1%3CBR%20%2F%3E*%20MOSI%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20J2-8%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20P2-5%3CBR%20%2F%3E*%20MISO%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20J2-10%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20P2-6%3CBR%20%2F%3E*%20SCLK%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20J2-12%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20P2-4%3CBR%20%2F%3E*%20CS%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20J2-6%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20P2-7%20%3CBR%20%2F%3E***************************************************************************************************%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎02-22-2017 07:33 AM
Updated by: