This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

display calendar time

Good morning,
Can you give me some advice about displaying calendar time (seconds,minutes and hours after midnight )? What function returns current calendar time (for Cx51)?

Thank you very much.

Parents
  • "I don't have an internal RTC, so the only way to do this is using my PC."

    Not true! There are plenty of other ways to get the time & date:

    There are plenty of RTC chips available.
    There are also modules that will receive radio time signals.
    A GPS receiver will give you date & time.
    An internet connection can give you date & time.
    You could have the user set it manually.
    etc, etc, etc...

    "I don't know if I can read real time connecting my microcontroller to PC"

    Yes, you can.
    It would obviously need something running on the PC to send the time...

    "by the use of USB debug adapter"

    That could be one way of doing it.

    "how should I do it?"

    You need to start by making a clear definition of what, exactly, you are trying to achieve here.

Reply
  • "I don't have an internal RTC, so the only way to do this is using my PC."

    Not true! There are plenty of other ways to get the time & date:

    There are plenty of RTC chips available.
    There are also modules that will receive radio time signals.
    A GPS receiver will give you date & time.
    An internet connection can give you date & time.
    You could have the user set it manually.
    etc, etc, etc...

    "I don't know if I can read real time connecting my microcontroller to PC"

    Yes, you can.
    It would obviously need something running on the PC to send the time...

    "by the use of USB debug adapter"

    That could be one way of doing it.

    "how should I do it?"

    You need to start by making a clear definition of what, exactly, you are trying to achieve here.

Children
No data