跨届大侠
- 积分
- 6784
- 威望
- 2910
- 贡献
- 1540
- 兑换币
- 1579
- 注册时间
- 2012-3-17
- 在线时间
- 1167 小时
|
☆_。寒泉..+ 发表于 2012-5-7 21:23
我是摄像头的,请问我用内部AD还有必要用dma么?
用了话,可以更快的速度……
我没写过,给个参考的DMA传输ADC的资料给你看看吧:
第78页,有参考的代码:
7.5.1 Requirements
The input to the ADC0 must be sampled every 1 ms. To achieve this, a 32-bit AD
command word must be supplied to the ADC0_SC1A (0x4003B000) every 1 ms, when
the module is able to accept the command. The command word is located in the internal
SRAM. This example only requires a single command word to be provided to the AD. It
is stored in a variable labeled "command." After the AD has completed the conversion,
the result is moved from the AD result register ADC0_RA, located at 0x4003B010, to
address 0x1FFF9000 in internal SRAM. Figure 7-7 illustrates the functionality of this
example.
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|