Polling.zip

  • raulbaggio13
    了解作者
  • C/C++
    开发工具
  • 507KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 0
    下载次数
  • 2021-04-15 19:14
    上传日期
lpc17xx_libcfg.h: Library configuration file - include needed driver library for this example makefile: Example's makefile (to build with GNU toolchain) adc_burst_test.c: Main program
Polling.zip
  • Polling
  • Keil
  • Flash
  • adc_polling.map
    34KB
  • lpc17xx_uart.d
    778B
  • adc_polling.hex
    18.9KB
  • system_lpc17xx.__i
    494B
  • adc_polling.lnp
    539B
  • lpc17xx_adc.crf
    72.6KB
  • adc_polling_test.crf
    80.9KB
  • system_lpc17xx.d
    555B
  • debug_frmwrk.o
    75.1KB
  • core_cm3.d
    128B
  • lpc17xx_adc.o
    69.8KB
  • adc_polling.plg
    749B
  • lpc17xx_uart.crf
    86.1KB
  • lpc17xx_gpio.crf
    64.7KB
  • startup_LPC17xx.o
    5.8KB
  • lpc17xx_uart.o
    81.5KB
  • lpc17xx_pinsel.__i
    520B
  • debug_frmwrk.__i
    512B
  • lpc17xx_clkpwr.crf
    66KB
  • core_cm3.o
    8.5KB
  • lpc17xx_gpio.o
    55.4KB
  • lpc17xx_clkpwr.o
    62KB
  • lpc17xx_gpio.__i
    512B
  • lpc17xx_clkpwr.__i
    520B
  • startup_LPC17xx.d
    105B
  • lpc17xx_uart.__i
    512B
  • adc_polling.sct
    540B
  • system_lpc17xx.o
    54.4KB
  • system_lpc17xx.crf
    60.8KB
  • debug_frmwrk.d
    846B
  • adc_polling.htm
    43.7KB
  • lpc17xx_clkpwr.d
    674B
  • lpc17xx_pinsel.d
    674B
  • lpc17xx_pinsel.o
    58.6KB
  • lpc17xx_adc.__i
    508B
  • startup_LPC17xx.lst
    41.9KB
  • debug_frmwrk.crf
    78.6KB
  • adc_polling_test.d
    934B
  • lpc17xx_adc.d
    765B
  • lpc17xx_pinsel.crf
    63.9KB
  • adc_polling.tra
    1.7KB
  • adc_polling.axf
    83.3KB
  • core_cm3.__i
    456B
  • adc_polling_test.__i
    504B
  • core_cm3.crf
    3.3KB
  • adc_polling_test.o
    75.2KB
  • lpc17xx_gpio.d
    708B
  • adc_polling_uvopt.bak
    18.4KB
  • adc_polling_uvproj.bak
    37.2KB
  • adc_polling.uvproj
    37.8KB
  • RAM.ini
    1.2KB
  • adc_polling_LPC1700 FLASH.dep
    9.7KB
  • adc_polling.uvgui.lvscassas
    74.1KB
  • adc_polling.uvopt
    19KB
  • adc_polling.uvgui_lvscassas.bak
    69.8KB
  • EWARM
  • adc_polling.ewd
    37KB
  • Ram.mac
    232B
  • adc_polling.eww
    165B
  • adc_polling.ewp
    45.5KB
  • adc_polling_test.c
    5.8KB
  • abstract.txt
    4.2KB
  • makefile
    1.6KB
  • lpc17xx_libcfg.h
    4.2KB
内容介绍
/********************************************************************** * $Id$ abstract.txt *//** * @file abstract.txt * @brief Example description file * @version 2.0 * @date * @author NXP MCU SW Application Team * * Copyright(C) 2010, NXP Semiconductor * All rights reserved. * *********************************************************************** * Software that is described herein is for illustrative purposes only * which provides customers with programming information regarding the * products. This software is supplied "AS IS" without any warranties. * NXP Semiconductors assumes no responsibility or liability for the * use of the software, conveys no license or title under any patent, * copyright, or mask work right to the product. NXP Semiconductors * reserves the right to make changes in the software without * notification. NXP Semiconductors also make no representation or * warranty that such application will be suitable for the specified * use without further testing or modification. **********************************************************************/ @Example description: Purpose: This example describes how to use ADC conversion in polling mode. Process: Because the potentiometer on different board connect to different ADC channel, so we have to configure correct ADC channel on each board respectively. In this case, - If using MCB1700 board: ADC is configured to convert signal on channel 2 - If using IAR-LPC1768-KS board: ADC is configured to convert signal on channel 5 DMA channel 0 was configured in this example. The ADC conversion rate is 200KHz. A fully A fully accurate conversion requires 65 of these clocks. So ADC clock = 200KHz * 65 = 13MHz. Note that maximum ADC clock input is 13MHz. After start ADC operation, polling "DONE" bit. If "DONE" bit is set, store ADC converted data in "adc_value" and display this data via UART0 and re-start ADC for next conversion. Turn potentiometer to change ADC signal input. @Directory contents: \EWARM: includes EWARM (IAR) project and configuration files \Keil: includes RVMDK (Keil)project and configuration files lpc17xx_libcfg.h: Library configuration file - include needed driver library for this example makefile: Example's makefile (to build with GNU toolchain) adc_polling_test.c: Main program @How to run: Hardware configuration: This example was tested on: Keil MCB1700 with LPC1768 vers.1 These jumpers must be configured as following: - VDDIO: ON - VDDREGS: ON - VBUS: ON - AD0.2: ON - Remain jumpers: OFF IAR LPC1768 KickStart vers.A These jumpers must be configured as following: - PWR_SEL: depend on power source - DBG_EN : ON - Remain jumpers: OFF Serial display configuration: (e.g: TeraTerm, Hyperterminal, Flash Magic...) – 115200bps – 8 data bit – No parity – 1 stop bit – No flow control Running mode: This example can run on RAM/ROM mode. Note: If want to burn hex file to board by using Flash Magic, these jumpers need to be connected: - MCB1700 with LPC1768 ver.1: + RST: ON + ISP: ON - IAR LPC1768 KickStart vers.A: + RST_E: ON + ISP_E: ON (Please reference "LPC1000 Software Development Toolchain" - chapter 4 "Creating and working with LPC1000CMSIS project" for more information) Step to run: - Step 1: Choose correct working board by uncomment correct defined board in adc_polling_test.c file + If using MCB1700 board, uncomment "#define MCB_LPC_1768" + If using IAR-LPC1768-KS board, uncomment "#define MCB_LPC_1768" (Should not uncomment both symbols at the same time) - Step 2: Build example. - Step 3: Burn hex file into board (if run on ROM mode) - Step 4: Connect UART0 on this board to COM port on your computer - Step 5: Configure hardware and serial display as above instruction - Step 6: Run example, turn potetiometer and observe data on serial display (Pls see "LPC17xx Example Description" document - chapter "Examples > ADC > Polling" for more details) @Tip: - Open \EWARM\*.eww project file to run example on IAR - Open \RVMDK\*.uvproj project file to run example on Keil
评论
    相关推荐
    • dma.rar
      dma算法的.h文件和.c文件 编译可用
    • dma.rar
      DMA 实现直接存储器存储,用串口方式或者adc方式,比较简单,可通过这个进行拓展
    • DMA.rar
      S3C6410 DMA 驱动用于研究学习WINCE DMA驱动有较大帮助
    • DMA脉冲计数器
      移植LQ的DMA脉冲计数到逐飞库 之前四路编码器用的是LQ的DMA,lptmr,两路正交。但是,由于之后用的产品大多都是逐飞的产品,如果要一个一个移植到LQ库,会更加麻烦。于是,今早决定把LQ的DMA计数移植到逐飞库中(之...
    • embedded-dma
      embedded-dma 有助于创建声音DMA抽象的特征。 该项目由开发和维护。 最低支持的Rust版本(MSRV) 确保此板条箱可在稳定的Rust 1.37.0及更高版本上编译。 它可能会与旧版本一起编译,但是在任何新的修补程序版本...
    • DMA.rar
      APM32单片机DMA程序;替代STM32F030系列
    • DMA.rar
      RS232用的是串口1 对应的DMA通道是DMA2_Channel4
    • DMA控制器.zip
      DMA 控制原理与结构图,基础知识对了解STM32和LPC17XX USB DMA有帮助
    • 第09章DMA控制器.zip
      DMA 控制原理与结构图,基础知识有助于了解STM32 LPC1768USB-DMA
    • dma.zip
      FPGA平台用DMA搬移数据,来处理高速数据流