Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12600 Discussions

real time clock -- how to w NiosII ?

Altera_Forum
Honored Contributor II
1,326 Views

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.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
497 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
497 Views

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
0 Kudos
Reply