DAY3_ADC调试

使用MCU自带SD24进行信号采集

• Second-order sigma-delta architecture
• Up to seven independent simultaneously sampling ADCs. (The number of channels is device dependent. See
the device-specific data sheet.)
• Fixed 1.024-MHz modulator input frequency
• Software selectable internal or external voltage reference
• Software selectable temperature sensor accessible by all channels

 reference voltage:internal or external 

Modulator Clock:
The clock system generates a 1.024-MHz fixed frequency clock (fM) to the SD24 module. This clock is suppliedto all modulators so that all modulators convert synchronously. This is not a free running clock to the SD24 module—it runs only when an SD24 channel conversion is active.

可见,sd24是多通道可同时采样的adc,关键配置之一是在多通道转换:

                                        Table--->. Conversion Mode Summary

SD24SNGLSD24GRPModeOperation
10Single channel, single conversionA single channel is converted once.
0        0Single channel, continuous conversionA single channel is converted continuously
11Group of channels, single conversionA group of channels is converted once.
01Group of channels, continuous conversionA group of channels is converted continuously

                                                Group of Channels, Single Conversion:
Consecutive SD24 channels can be grouped together with the SD24GRP bit to synchronize conversions. SettingSD24GRP for a channel groups that channel with the next channel in the module. For example, setting SD24GRP for channel 0 groups that channel with channel 1. In this case, channel 1 is the master channel,enabling and disabling conversion of all channels in the group with its SD24SC bit. The SD24GRP bit of the master channel is always 0. The SD24GRP bit of the last channel in SD24 has no function and is always 0.
When SD24SNGL = 1 for a channel in a group, single conversion mode is selected. A single conversion of thatchannel occurs synchronously when the master channel SD24SC bit is set. The SD24SC bit of all channels inthe group are automatically set and cleared by the SD24SC bit of the master channel. SD24SC for each channelcan also be cleared in software independently.
Clearing SD24SC of the master channel before the conversions are completed immediately stops conversions ofall channels in the group, the channels are powered down, and the corresponding digital filters are turned off.
Values in SD24MEMx can change when SD24SC is cleared. It is recommended that the conversion data inSD24MEMx be read prior to clearing SD24SC to avoid reading an invalid result.

Q:

  • __delay_cycles的定义同上一篇
  • SD24GRP实际定义第一个通道为0,中间为1,最后一通道为0?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值