PCAN-Router interrupts
-
- Posts: 1
- Joined: Mon 31. Mar 2014, 21:06
PCAN-Router interrupts
I want to use 'CAN read' and 'CAN write' functions in a timer interrupt. Is there an example to setup and use interrupts in c and use them with yagarto command line tool?
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: PCAN-Router interrupts
All available Samples are part of the product DVD:
http://www.peak-system.com/produktcd
in section Develop - Microcontroller Hardware - PCAN-Router - Examples
http://www.peak-system.com/produktcd
in section Develop - Microcontroller Hardware - PCAN-Router - Examples
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
Re: PCAN-Router interrupts
hello,
attached you can find an example for a timer IRQ. The example will send a message from an IRQ.
The function CAN_UserWrite() is protected against timer IRQs. You can modify this example for your
own needs. If you want to read from CAN inside the IRQ, the CAN_UserRead() function must be
protected against timer IRQs too.
attached you can find an example for a timer IRQ. The example will send a message from an IRQ.
The function CAN_UserWrite() is protected against timer IRQs. You can modify this example for your
own needs. If you want to read from CAN inside the IRQ, the CAN_UserRead() function must be
protected against timer IRQs too.
- Attachments
-
- 31_TIMER_ISR.zip
- (41.86 KiB) Downloaded 799 times
--------------------------------------------
PEAK-System HW development Team
support@peak-system.com
phone: +49-6151-8173-20
fax: +49-6151-8173-29
--------------------------------------------
PEAK-System HW development Team
support@peak-system.com
phone: +49-6151-8173-20
fax: +49-6151-8173-29
--------------------------------------------