ADC_SC4[AFDEP], 这个位的解释你就可以知道了:
FIFO Depth enables the FIFO function and sets the depth of FIFO. When AFDEP is cleared, the FIFO is
disabled. When AFDEP is set to nonzero, the FIFO functio ...
ADC_SC4[AFDEP], 这个位的解释你就可以知道了:
FIFO Depth enables the FIFO function and sets the depth of FIFO. When AFDEP is cleared, the FIFO is
disabled. When AFDEP is set to nonzero, the FIFO function is enabled and the depth is indicated by the
AFDEP bits. The ADC_SC1[ADCH] and ADC_R must be accessed by FIFO mode when FIFO function is
enabled. ADC starts conversion when the analog channel FIFO is upon the level indicated by AFDEP bits.
The COCO bit is set when the set of conversions are completed and the result FIFO is upon the level
indicated by AFDEP bits.
也就是FIFO满的时候,COCO位会置1, 然后如果你使能了中断,就会进入中断了。
COCO就是ADC_SC1[COCO]位,你看下手册就知道了。