- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I want to cut off the PWM, if current limit is greater or lesser, so i went to Normal conversion mode. The problem it is always generating the interrupt it is not waiting for upper and lower limit, I need any example code to configure normal conversion mode with lower and upper limit. My requirement (if current is greater or lower limit that time it should generate the interrupt).
Thanks & Regards,
Unknown
Solved! Go to Solution.
- Labels:
-
Aurix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi UNknown_12,
Although I could not find any already available code example for limit checking, you can modify available EVADC example code available in Infineon Code Example Repo .
To add limit checking for already existing example code configure below parameters:
1. Configure Boundary Select Register of the group containing your desired channel. Configure desired BOUNDARY0 & BOUNDARY1 values. (You may do this configuration inside initEVADCGroup() )
2. Map the BOUNDARY0 & BOUNDARY1 values to appropriate Lower Boundary Select and Upper Boundary Select in the channel control register. And also enable limit checking by selecting appropriate Channel Event Mode in the same register. (You can do this inside initEVADCChannels() )
3. Map Channel Event Node pointer to appropriate group request line. (You can do this inside initEVADCChannels() )
4. Finally configure SRC register with appropriate priority and TOS. (You can do this inside initEVADCChannels() )
Regards,
KB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi UNknown_12,
Although I could not find any already available code example for limit checking, you can modify available EVADC example code available in Infineon Code Example Repo .
To add limit checking for already existing example code configure below parameters:
1. Configure Boundary Select Register of the group containing your desired channel. Configure desired BOUNDARY0 & BOUNDARY1 values. (You may do this configuration inside initEVADCGroup() )
2. Map the BOUNDARY0 & BOUNDARY1 values to appropriate Lower Boundary Select and Upper Boundary Select in the channel control register. And also enable limit checking by selecting appropriate Channel Event Mode in the same register. (You can do this inside initEVADCChannels() )
3. Map Channel Event Node pointer to appropriate group request line. (You can do this inside initEVADCChannels() )
4. Finally configure SRC register with appropriate priority and TOS. (You can do this inside initEVADCChannels() )
Regards,
KB