adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128

所属分类:单片机开发
开发工具:C/C++
文件大小:36KB
下载次数:0
上传日期:2020-03-17 10:42:55
上 传 者轩辕十四123
说明:  德州仪器CC2650 模拟转数字连续传输源代码。
(TI CC2650 anlog to digital continuous conversion and ring buffer.)

文件列表:
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128 (0, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\.ccsproject (979, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\.cproject (32451, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\.project (953, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\.settings (0, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\.settings\org.eclipse.cdt.codan.core.prefs (62, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\.settings\org.eclipse.cdt.debug.core.prefs (123, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\.xdchelp (0, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\adcBufContinuousSampling.c (7093, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\adcBufContinuousSampling.cfg (19479, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\Board.h (3076, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\CC2650_LAUNCHXL.c (26759, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\CC2650_LAUNCHXL.cmd (3522, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\CC2650_LAUNCHXL.h (10669, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\ccfg.c (2365, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\Debug (0, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\makefile.defs (817, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\targetConfigs (0, 2020-03-17)
adcbufcontinuous_CC2650_LAUNCHXL_TI_CC2650F128\targetConfigs\CC2650F128.ccxml (1837, 2020-03-17)

## Example Summary Example that uses the ADCBuf driver to make a number of samples and then echoes them to the console via UART. ## Peripherals Exercised * `Board_ADCBuf0` - Used to take samples on an analogue input. * `Board_UART0` - Used to echo samples to host serial session ## Resources & Jumper Settings > Please refer to the development board's specific __Settings and Resources__ section in the Getting Started Guide. For convenience, a short summary is also shown below. | Development board | Notes | | ----------------- | ------| | CC1310DK_7XD | | | CC2650DK_7ID | | | MSP-EXP432P401R | | > Fields left blank have no specific settings for this example. ## Example Usage * Run the example. * When the application is running, open a serial session (e.g. `HyperTerminal`, `puTTY`, etc.) to the appropriate COM port. > The COM port can be determined via Device Manager in Windows or via `ls /dev/tty*` in Linux. The connection should have the following settings ``` Baud-rate: 115200 Data bits: 8 Stop bits: 1 Parity: None Flow Control: None ``` * The target will send packages of 100 samples and a header to the serial session twice per second. The ADCBuf driver supports higher sampling rates. The exact maximum rate is device specific. 100 samples sampled at 500 Hz was chosen to make the console output easily interpretable. The values displayed on the console are in micro-volts. ## Application Design Details * This example shows how to initialize the ADCBuf driver in continuous mode. * A single task, `conversiontStartFxn`, sets up the UART connection to the serial console and starts a continuous conversion with the ADCBuf driver. After this is completed, the task sleeps forever. This allows the device to enter low power states. The callback function `adcBufCallback` is called whenever the driver has finished filling one of the buffers. It transfers the data into an output buffer in a human-readable format. It then starts a UART transfer to send the output buffer to the console. ## References * For GNU and IAR users, please read the following website for details about enabling [semi-hosting](http://processors.wiki.ti.com/index.php/TI-RTOS_Examples_SemiHosting) in order to view console output.

近期下载者

相关文件


收藏者