9 years, 2 months ago.

RTC with VBatt not working

This might seen as spam, i already read the other questing but no luck making it work. Im using mbed LPC1768 v5.1 this is my code:

include the mbed library with this snippet

#include "mbed.h"
#include "C12832.h"

C12832 lcd(p5, p7, p6, p8, p11); 
int main() {
    //set_time(1443657600);  // Set RTC time to Wed, 28 Oct 2009 11:35:37
 
    while (true) {
        time_t seconds = time(NULL);
   
        char buffer[32];
        strftime(buffer, 32, "%T", localtime(&seconds));
        lcd.printf("Time %s\n\r", buffer);
        wait(1);
    }
}

it seems that Vbat is not routed to physical pin 19.

Do you mean on your mbed board, which seems unlikely, or on your application board, where I noticed myself also that some pins are considered not required apparantly, and are not routed.

posted by Erik - 02 Oct 2015

Mbed board, what I do is connect 3.3v directly to VB pin run program, disconnect the usb power source, reconnect power source. The timer starts on 0 again .

posted by J Daniel Martinez C 02 Oct 2015
Be the first to answer this question.