Other Parts Discussed in Thread: HALCOGEN
Hi
Is it possible to influence (disable) the status change interrupt of a dcan module with halcogen? Halcogen (version 03.03.01) generates the following code:
/** @b Initialize @b CAN1: */
/** - Setup control register
* - Disable automatic wakeup on bus activity
* - Local power down mode disabled
* - Disable DMA request lines
* - Enable global Interrupt Line 0 and 1
* - Disable debug mode
* - Release from software reset
* - Enable/Disable parity or ECC
* - Enable/Disable auto bus on timer
* - Setup message completion before entering debug state
* - Setup normal operation mode
* - Request write access to the configuration registers
* - Setup automatic retransmission of messages
* - Disable error interrupts
* - Disable status interrupts
* - Enter initialization mode
*/
canREG1->CTL = 0x00000000U | 0x00000000U | 0x00000005U | 0x00020043U;
According to the comment, the status interrupts should be disabled! However, the generated code seems to activate the status interrupt ( SIE Bit of CTL-Register is set to 1)!
Best regards
Fabian