Jump to content

Question

Posted

Platform : PYNQ Z2

Add-on Pmod CAN

Software : Vivado (Vitis dev suite)

Hi

I am using Pmod CAN with a Pynq Z2, and when running the connection automation in Vivado I see that the two interrupts are not connected to the processor.

My project works fine that way, but now, I want to use these interrupts as an input signal for a custom IP, which would take very precise timestamps for each frame received.

I tried looking in the Pmod documentation to have details about these signals and how to use them, but unfortunately there are no information about it. Has anyone here ever used those interrupts and know how they work? Is there a documentation about it that i missed?

My supposition is that SPI interrupt is activated when data is ready for SPI transfer, i.e. that a frame has been received, but I need to be sure.

Thanks

1 answer to this question

Recommended Posts

  • 0
Posted

Hi @bmtn,

I have not used interrupts on this particular Pmod, but will point you towards section 3.11 of the MCP25625 datasheet as the best source of information on these interrupts: https://ww1.microchip.com/downloads/en/DeviceDoc/MCP25625-CAN-Controller-Data-Sheet-20005282C.pdf. It discusses enabling the interrupts, reading the status register to find out the source of the highest priority interrupt that is enabled and triggered, and clearing said interrupt.

Based on section 4.6 of that same microchip datasheet, the all of the various interrupts are disabled by default, so they would need to be enabled. In terms of the block design/custom IP, you'll need to of course enable the PL-PS Interrupts on the Zynq Processor block and get the interrupt set up as the correct external port pin that the Pmod CAN is attached to via the .xdc

Thanks,
JColvin

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...