Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12366 Discussions

real time clock -- how to w NiosII ?

Altera_Forum
Honored Contributor I
893 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 I
64 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
Altera_Forum
Honored Contributor I
64 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
Reply