Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
22 years ago

real time clock -- how to w NiosII ?

Anyone having a reference design or an idea on how to have a RTC as a NiosII peripheral ?

The considered design shall use an EP1C3 + EPCS1SI8.

Thanks!

Cheers

Franck P.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hallo Franck,

    There are two ways for using a RTC with the Nios. First you can use an external RTC with SPI, I2C, … interface or you can write or use an Verilog/VHDL module. In my current design I will use an external RTC (Epson RTC-8564) with the free I2C interface from opencores (http://www.opencores.org/).

    Bye,

    niosIIuser
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello:

    I used the BQ4845 from TI. It's got an 8 bit parallel interface which is suitable for my system.

    32khz crystal and battery input pin.

    so does this make a 3 way to implement a RTC. Just kidding.

    Next for me is the time.h stuff from C. I'm scheduling things at sunrise and sunset any where in the world.

    Good Luck

    George