在线时间71 小时
UID3175716
注册时间2018-5-14
NXP金币0
TA的每日心情 | 开心 2021-4-15 09:26 |
---|
签到天数: 98 天 [LV.6]常住居民II
高级会员
- 积分
- 623
- 最后登录
- 2021-6-15
|
近期在研究ADC中断时,发现LPC54608中,有阈值比较功能,按照数据手册上的说明,阈值中断能够触发DMA,但是在验证该功能时,
阈值中断处理函数能够正常执行,但是DMA一直触发不了,请教各位大神,有没有遇到过这种情况。
44.6.10 ADC Interrupt Enable register
There are four separate interrupt requests generated by the ADC: conversion, these are
-complete or sequence-complete interrupts for each of the two sequences, a
threshold-comparison out-of-range interrupt, and a data overrun interrupt. The two
conversion/sequence-complete interrupts can also serve as DMA triggers. The threshold
and data overrun interrupts share a slot in the NVIC.
These interrupts may be combined into one request on some chips if there is a limited
number of interrupt slots. This register contains the interrupt-enable bits for each interrupt.
In this register, threshold events selected in the ADCMPINTENn bits are described as
follows:
• Disabled: Threshold comparisons on channel n will not generate an ADC
threshold-compare interrupt/DMA trigger.
• Outside threshold: A conversion result on channel n which is outside the range
specified by the designated HIGH and LOW threshold registers will set the channel n
THCMP flag in the FLAGS register and generate an ADC threshold-compare
interrupt/DMA trigger.
• Crossing threshold: Detection of a threshold crossing on channel n will set the
channel n THCMP flag in the FLAGS register and generate an ADC
threshold-compare interrupt/DMA trigger.
最佳答案
ADC 中断可以作为DMA的硬件触发源
[attach]450461[/attach]
|
|