Jump to content

Search the Community

Showing results for tags 'PCF8563'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 3 results

  1. I solder on spare pcb a pcf8563 acording to diagram: PCF is connected to I2c 3 (PD_0 and PD_1). Tiva-C is flashed with code: #include <Wire.h> #include <RTClib.h> RTC_PCF8563 RTC; void setup () { Serial.begin(57600); Wire.setModule(3); Wire.begin(); RTC.begin(); // following line sets the RTC to the date & time this sketch was compiled RTC.adjust(DateTime(__DATE__, __TIME__)); } void loop () { DateTime now = RTC.now(); Serial.print(now.year(), DEC); Serial.print('/'); Serial.print(now.month(), DEC); Serial.print('/'); Serial.print(now.day(), DEC); Serial.print(' '); Serial.print(now.hour(), DEC); Serial.print(':'); Serial.print(now.minute(), DEC); Serial.print(':'); Serial.print(now.second(), DEC); Serial.println(); delay(3000); } In terminal I got: 2013/12/29 17:45:31 2013/12/29 17:45:34 2032/11/17 5:37:13 2013/12/29 17:45:40 2013/12/29 17:45:43 2052/1/17 5:46:13 2013/12/29 17:45:49 2052/11/17 5:52:13 2052/11/17 5:55:52 2052/19/17 5:58:52 2013/12/29 17:46:1 2013/12/29 17:46:4 2012/1/17 6:7:13 2013/12/29 17:46:10 2012/11/17 6:13:13 2012/11/17 6:16:12 2013/12/29 17:46:19 2013/12/29 17:46:22 2032/1/17 6:25:13 2032/9/17 6:28:32 2013/12/29 17:46:31 2013/12/29 17:46:34 2032/11/17 6:37:13 2013/12/29 17:46:40 2052/1/17 6:43:13 2013/12/29 17:46:46 What is the cause of such problems? PCF not keep proper time. The same PCB works on Arduino and the same code and libraries.
  2. Another trivial port... this is the RTCLib I've been using for a couple of AVR projects, it runs with really minor modifications (just stripped out PROGMEM related stuff). I've already pulled a request to the main repo (I've been contributing DS1388 to this lib in the past). While the pull gets in, here is the library on my fork: https://github.com/elpaso/rtclib I've tested the library on my LP 1.5 with a DS1388 (3.3V version) and it's working fine. Example #include <Wire.h> #include <RTClib.h> RTC_DS1388 RTC; DateTime now; // Ugly globals... uint8_t timeH; uint8_t timeM; volatile uint8_t timeS; uint8_t dateD; uint8_t dateM; uint16_t dateY; uint8_t dateW; void setup() { Wire.begin(); RTC.begin(); if (!RTC.isrunning()) { // following line sets the RTC to the date & time this sketch was compiled RTC.adjust(DateTime(__DATE__, __TIME__)); } } void loop() { // Read clock now = RTC.now(); timeH = now.hour(); timeM = now.minute(); timeS = now.second(); dateD = now.day(); dateM = now.month(); dateY = now.year(); // Do something with those figures... }
  3. Hi guys Here I am again to ask for help :oops: So the deal is this: I'm waiting for a nokia 5110 LCD screen to arrive and I'm thinking on what I can do with it. My idea was to make something like a clock with a thermometer and, with an accelerometer, when I bounce it it works like a magic 8 ball (I think about a decision I have to make and it "helps" me with a "Yes" "No" and "Maybe" answer). The maginc 8 ball isn't a real issue. I gess that the code is pretty simple (I can use a sample code from the book "Getting started with the MSP430") and that shouldn't be a problem. My problem is about using a RTC chip to deal with the clock. Is that really needed? A MSP430G2542 is capable of doing the job (Thermometer + clock + analog accelerometer reading)? Hope anyone can help me. canibalimao
×
×
  • Create New...