Skip to main content
aeolia_amha
Associate III
June 18, 2010
Question

using fprintf problem

Posted on June 18, 2010 at 09:15

using fprintf problem

    This topic has been closed for replies.

    11 replies

    trevor23
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:55

    Please be more specific. How are you sending this time number? Serial I preaume (UART)? Are you sending this number in ascii or binary format ? If ascii than assuming the number is received into a buffer called buffer that is null terminated the code to set the time would look something like this

    RTC_SetCounter( (u32)atol(buffer) );