- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I currently have 3 nios ii processors, all with their own memory peripherals but connected to the same interval timer(should each processor have its own interval timer?). The timer slave is connected to each of the processor's data and instruction masters but I'm not sure how I can correctly use the timer in my application. I currently just want to send a certain number of characters and see how many seconds it's taking to transmit those characters over the uarts. Any help is appreciated.Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Timers are so small I recommend using one for each CPU. That said it depends on how you use them whether sharing them would cause a problem. If you didn't use them as a timer in the BSP settings and you just took snapshots of them only from all three processors that should work although you might see some weird glitches if multiple processors attempted to take a snapshot at the same time. As soon as you use them as a timer in your BSP (system timer for example) then you would run into issues because you would have multiple timer drivers attempting to service the same interrupt which would be a nightmare.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the reply. I've added one timer for each cpu and will be setting the timestamp driver in BSP settings and testing it using its functions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That should work much better. If you were setting the timestamp driver in all three projects to the same hardware I know that would have been problematic.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page