UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
697 Views
Registered: ‎02-07-2018

How to access the RTC from PL in Zynq ultrascale+MPSoC

Jump to solution

Hi all,

 

Is there a way to access the current time in the RTC through PL in zynq ultrascale+MPSoC  ?

 

I read the zynq ultrascale+MPSoC technical reference manual, and i am sure that we can access it through PS, without using the PS how do i access the RTC ?

 

Any suggestions ?

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
750 Views
Registered: ‎07-31-2012

Re: How to access the RTC from PL in Zynq ultrascale+MPSoC

Jump to solution

Hi @praveen_mulimani,

 

There is option of enabling irq for RTC alarm and seconds which can be used in PL.

But we do have only testcases for PS accessible RTC under https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/rtcpsu/examples .

You may want to have a look at it and read appropriate register while run.

The register details of RTC module is available in UG1087.

 

Regards

Praveen

 

 


-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

Image 1.jpg
0 Kudos
3 Replies
Moderator
Moderator
751 Views
Registered: ‎07-31-2012

Re: How to access the RTC from PL in Zynq ultrascale+MPSoC

Jump to solution

Hi @praveen_mulimani,

 

There is option of enabling irq for RTC alarm and seconds which can be used in PL.

But we do have only testcases for PS accessible RTC under https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/rtcpsu/examples .

You may want to have a look at it and read appropriate register while run.

The register details of RTC module is available in UG1087.

 

Regards

Praveen

 

 


-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

Image 1.jpg
0 Kudos
657 Views
Registered: ‎02-07-2018

Re: How to access the RTC from PL in Zynq ultrascale+MPSoC

Jump to solution

Hi pvenugo,

 

Thank you for the reply.

 

You mean to say that we can use this interrupt (Alaram/Second) in our design to keep the track of the time . like for example if i initialize my time_register now and next time when i get this interrupt i need to increment this value by 1.

 

 

0 Kudos
654 Views
Registered: ‎02-07-2018

Re: How to access the RTC from PL in Zynq ultrascale+MPSoC

Jump to solution

Hi pvenugo,

 

As you replied that you do have testcases for PS accessible RTC , but we are working on a project which doesn't use the PS at all. In that case the Alarm/second interrupt from the RTC to PL need to enabled right ? And can i enable this without PS ?

0 Kudos