久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開始

搜索
查看: 2022|回復(fù): 3
打印 上一主題 下一主題
收起左側(cè)

arduino的SAMD21G18內(nèi)置AD的采樣率多少?

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:948592 發(fā)表于 2021-7-4 19:38 | 只看該作者 回帖獎(jiǎng)勵(lì) |倒序?yàn)g覽 |閱讀模式
這家介紹該MCU內(nèi)置AD通過(guò)函數(shù)可以控制至12位
(請(qǐng)手工把點(diǎn)替換成.)鏈接:dronebotworkshop點(diǎn)com/seeeduino-xiao-intro/
  1. // Analog Input Pin
  2. #define ANALOG_IN_PIN A2

  3. // Integer to represent input value
  4. int input_val;

  5. void setup()
  6. {
  7.   // Set A/D converter resolution to 12-bits
  8.   analogReadResolution(12);
  9.   
  10.   // Setup Serial Port
  11.   SerialUSB.begin(9600);
  12. }

  13. void loop()
  14. {
  15.   // Read the input value
  16.   input_val = analogRead(ANALOG_IN_PIN);  
  17.   
  18.   
  19.   // Print value to Serial Monitor
  20.   SerialUSB.println(input_val);
  21.   
  22.   // Slight delay before repeating
  23.   delay(10);
  24.   
  25. }
復(fù)制代碼
摘錄:You can experiment with the analogReadResolution function and set it to different values to see the result. If set to 10 (or if the statement is eliminated) the output will range from 0 to 1023.


是否說(shuō)明采樣率0~1023 SPS ?
找了一圈,沒(méi)找到怎么控制采樣率





分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報(bào)

沙發(fā)
ID:123289 發(fā)表于 2021-7-5 09:59 | 只看該作者
SAMD21G18的手冊(cè)上,關(guān)于AD采樣的時(shí)鐘部分是怎么說(shuō)的呢?
回復(fù)

使用道具 舉報(bào)

板凳
ID:948592 發(fā)表于 2021-7-5 10:36 | 只看該作者
yzwzfyz 發(fā)表于 2021-7-5 09:59
SAMD21G18的手冊(cè)上,關(guān)于AD采樣的時(shí)鐘部分是怎么說(shuō)的呢?

說(shuō)明書忘了看,復(fù)制了一段英文:
Features
• Processor
– ARM Cortex-M0+ CPU running at up to 48MHz
• Single-cycle hardware multiplier
• Micro Trace Buffer (MTB)
• Memories
– 32/64/128/256KB in-system self-programmable Flash
– 4/8/16/32KB SRAM Memory
• System
– Power-on reset (POR) and brown-out detection (BOD)
– Internal and external clock options with 48MHz Digital Frequency
Locked Loop (DFLL48M) and 48MHz to 96MHz Fractional Digital
Phase Locked Loop (FDPLL96M)
– External Interrupt Controller (EIC)
– 16 external interrupts
– One non-maskable interrupt
– Two-pin Serial Wire Debug (SWD) programming, test and
debugging interface
• Low Power
– Idle and standby sleep modes
– SleepWalking peripherals
Atmel-42181J-SAM D21_Datasheet_Complete-07/2016
• Peripherals
– 12-channel Direct Memory Access Controller (DMAC)
– 12-channel Event System
– Up to five 16-bit Timer/Counters (TC), configurable as either:
• One 16-bit TC with two compare/capture channels
• One 8-bit TC with two compare/capture channels
• One 32-bit TC with two compare/capture channels, by using two TCs
– Three 24-bit Timer/Counters for Control (TCC), with extended functions:
• Up to four compare channels with optional complementary output
• Generation of synchronized pulse width modulation (PWM) pattern across port pins
• Deterministic fault protection, fast decay and configurable dead-time between
complementary output
• Dithering that increase resolution with up to 5 bit and reduce quantization error
– 32-bit Real Time Counter (RTC) with clock/calendar function
– Watchdog Timer (WDT)
– CRC-32 generator
– One full-speed (12Mbps) Universal Serial Bus (USB) 2.0 interface
• Embedded host and device function
• Eight endpoints
– Up to six Serial Communication Interfaces (SERCOM), each configurable to operate as
either:
• USART with full-duplex and single-wire half-duplex configuration
• I2C up to 3.4MHz
• SPI
• LIN slave
– One two-channel Inter-IC Sound (I 2 S) interface
– One 12-bit, 350ksps Analog-to-Digital Converter (ADC) with up to 20 channels
• Differential and single-ended input
• 1/2x to 16x programmable gain stage
• Automatic offset and gain error compensation
• Oversampling and decimation in hardware to support 13-, 14-, 15- or 16-bit resolution
– 10-bit, 350ksps Digital-to-Analog Converter (DAC)
– Two Analog Comparators (AC) with window compare function
– Peripheral Touch Controller (PTC)
• 256-Channel capacitive touch and proximity sensing

它們說(shuō)的特征是SAM D21E / SAM D21G / SAM D21J,ADC12位、350ksps應(yīng)該是指這些,我不太會(huì)看英文說(shuō)明書
附鏈接:(請(qǐng)手工把點(diǎn)替換成.)files.seeedstudio點(diǎn)com/wiki/Seeeduino-XIAO/res/ATSAMD21G18A-MU-Datasheet.pdf
ADC描述位于第863頁(yè)

要描述屬實(shí),adc采樣率挺不錯(cuò)。。。淘寶賣模數(shù)轉(zhuǎn)換器ads1015 12位采樣率3300SPS,價(jià)格18~25元一小片,這SAMD21G18集成了ad、da、48MHZ主頻、256kb等,作為arduino硬件,它的價(jià)格38~45挺便宜了嗯,和隔壁百元STM開發(fā)板比較的

謝謝提醒
回復(fù)

使用道具 舉報(bào)

地板
ID:948592 發(fā)表于 2021-7-5 10:42 | 只看該作者
yzwzfyz 發(fā)表于 2021-7-5 09:59
SAMD21G18的手冊(cè)上,關(guān)于AD采樣的時(shí)鐘部分是怎么說(shuō)的呢?

至于時(shí)鐘我沒(méi)啥看法,手冊(cè)第874描述同步可以看看,我只是把傳感器套在模擬通道,直接用幾行代碼讀取數(shù)值的
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

手機(jī)版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表
主站蜘蛛池模板: 欧美日韩综合 | 黄色免费观看网站 | 国产欧美一区二区三区在线看 | 国产亚洲精品精品国产亚洲综合 | 青青久久 | 亚洲成人免费视频 | 国产欧美精品区一区二区三区 | 青青草视频免费观看 | 日韩精品视频中文字幕 | 久草高清视频 | 一区二区成人 | 久久久久久久久久久久一区二区 | 亚洲一区二区免费视频 | 国产a级毛毛片 | 三级视频网站 | 久久成人国产精品 | 野狼在线社区2017入口 | 国产在线一区二区 | 欧美午夜影院 | 亚洲一区二区三区 | 成年人在线观看视频 | 亚洲日韩欧美一区二区在线 | 国产精品一区二区三区在线 | 免费一区二区 | 国产精品久久精品 | 欧美精品综合 | 九九久久精品 | 午夜精品一区 | 国产精品一区久久久 | 精品欧美色视频网站在线观看 | 日本一二区视频 | 精品日韩一区二区 | 操网站 | 久久精品免费观看 | 欧美99| 久久国产精品色av免费观看 | 成人欧美一区二区三区在线观看 | 一区二区三区四区在线免费观看 | 亚洲精品欧美 | 精品区| 99精品在线 |