当前位置:首页 > 嵌入式 > 嵌入式教程
[导读]LPC2939设计在MCU USB接口技术的应用

LPC2939以ARM968E-S CPU为内核,在一个芯片中集成了两个操作频率高达125MHz的TCM模块、全速USB2.0主机/OTG/设备控制器、CAN和LIN、56KB SRAM、768KB Flash存储器、外部存储器接口、3个10位ADC和多个串行、并行接口,定位于消费应用、工业、医疗、通信和汽车制造业市场。为了使系统功耗最优化,LPC2939具有一个非常灵活的时钟产生单元(CGU),可提供动态时钟门控和调节。本文介绍了LPC2939主要特性, 方框图,以及各种USB,USB OTG接口方框图。

MCU(MicrocontrolUnit)中文名称为微控制单元,又称单片微型计算机(singleChipMicrocomputer)或者单片机,是指随着大规模集成电路的出现及其发展,将计算机的CPU、RAM、ROM、定时计数器和多种I/O接口集成在一片芯片上,形成芯片级的计算机,为不同的应用场合做不同组合控制。微控制器在经过这几年不断地研究,发展,历经4位,8位,到现在的16位及32位,甚至64位。产品的成熟度,以及投入厂商之多,应用范围之广,真可谓之空前。目前在国外大厂因开发较早,产品线广,所以技术领先,而本土厂商则以多功能为产品导向取胜。但不可讳言的,本土厂商的价格战是对外商造成威胁的关键因素

LPC2939: ARM9 microcontroller with CAN, LIN, and USB

The LPC2939 combine an ARM968E-S CPU core with two integrated TCM blocks operating at frequencies of up to 125 MHz, Full-speed USB 2.0 Host/OTG/device Controller, CAN and LIN, 56 kB SRAM, 768 kB flash memory, external Memory interface,three 10-bit ADCs, and multiple serial and parallel interfaces in a single chip targeted at consumer, industrial, medical, and communication markets. To optimize system power consumption, the LPC2939 has a very flexible Clock Generation Unit (CGU) that provides dynamic clock gating and scaling.

LPC2939主要特性和优势:

  ARM968E-S processor running at frequencies of up to 125 MHz maximum.

  Multilayer AHB system bus at 125 MHz with four separate layers.

  On-chip memory:

  Two Tightly Coupled Memories (TCM), 32 kB Instruction (ITCM), 32 kB Data TCM (DTCM)

  Two separate internal Static RAM (SRAM) instances; 32 kB SRAM and 16 kB SRAM

  8 kB ETB SRAM, also usable for code execution and data

  768 kB high-speed flash program memory

  16 kB true EEPROM, byte-erasable/programmable

  Dual-master, eight-channel GPDMA controller on the AHB multilayer matrix which can be used with the SPI interfaces and the UARTs, as well as for memory-to-memory transfers including the TCM memories

  External Static Memory Controller (SMC) with eight memory banks; up to 32-bit data bus; up to 24-bit address bus

  Serial interfaces:

  USB 2.0 full-speed Host/OTG/Device controller with dedicated DMA controller and on-chip device PHY

  Two-channel CAN controller supporting FullCAN and extensive message filtering

  Two LIN master controllers with full hardware support for LIN communication. The LIN interface can be configured as UART to provide two additional UART interfaces.

  Two 550 UARTs with 16-byte Tx and Rx FIFO depths, DMA support, modem control, and RS-485/EIA-485 (9-bit) support

  Three full-duplex Q-SPIs with four slave-select lines; 16 bits wide; 8 locations deep;Tx FIFO and Rx FIFO

  Two I2C-bus interfaces

  Other peripherals:

  One 10-bit ADC with 5.0 V measurement range and eight input channels with conversion times as low as 2.44 ?s per channel

  Two 10-bit ADCs, 8-channels each, with 3.3 V measurement range provide an additional 16 analog inputs with conversion times as low as 2.44 ?s per channel. Each channel provides a compare function to minimize interrupts.

  Multiple trigger-start option for all ADCs: timer, PWM, other ADC, and external signal input

  Four 32-bit timers each containing four capture-and-compare registers linked to I/Os

  Four six-channel PWMs (Pulse-Width Modulators) with capture and trap functionality

  Two dedicated 32-bit timers to schedule and synchronize PWM and ADC

  Quadrature encoder interface that can monitor one external quadrature encoder

  32-bit watchdog with timer change protection, running on safe clock

  Up to 152 general-purpose I/O pins with programmable pull-up, pull-down, or bus keeper

  Vectored Interrupt Controller (VIC) with 16 priority levels

  Up to 22 level-sensitive external interrupt pins, including USB, CAN and LIN wake-up features

  Configurable clock-out pin for driving external system clocks

  Processor wake-up from Power-down via external interrupt pins and CAN or LIN activity

  Flexible Reset Generator Unit (RGU) able to control resets of individual modules

  Flexible Clock-Generation Unit (CGU) able to control clock frequency of individual modules:

  On-chip very low-power ring oscillator; fixed frequency of 0.4 MHz; always on to provide a Safe_Clock source for system monitoring

  On-chip crystal oscillator with a recommended operating range from 10 MHz to 25 MHz. PLL input range 10 MHz to 25 MHz.

  On-chip PLL allows CPU operation up to a maximum CPU rate of 125 MHz

  Generation of up to 11 base clocks

  Seven fractional dividers

  Second, dedicated CGU with its own PLL generates USB clocks and a configurable clock output

  Highly configurable system Power Management Unit (PMU):

  clock control of individual modules

  allows minimization of system operating power consumption in any configuration

  Standard ARM test and debug interface with real-time in-circuit emulator

  Boundary-scan test supported

  ETM/ETB debug functions with 8 kB of dedicated SRAM also accessible for application code and data storage

  Dual power supply:

  CPU operating voltage: 1.8 V ? 5 %

  I/O operating voltage: 2.7 V to 3.6 V; inputs tolerant up to 5.5 V

  208-pin LQFP package
 

图1.LPC2939方框图

图2.LPC2939自供电设备USB接口方框图


图3.LPC2939总线供电设备USB接口方框图

图4.LPC2939 USB OTG端口配置:USB端口1 OTG双任务设备,USB端口2主机

图5.LPC2939 USB OTG端口配置:USB端口1主机,USB端口2主机

图6.LPC2939 USB OTG端口配置:USB端口2设备,USB端口1主机
 

本站声明: 本文章由作者或相关机构授权发布,目的在于传递更多信息,并不代表本站赞同其观点,本站亦不保证或承诺内容真实性等。需要转载请联系该专栏作者,如若文章内容侵犯您的权益,请及时联系本站删除。
换一批
延伸阅读

9月2日消息,不造车的华为或将催生出更大的独角兽公司,随着阿维塔和赛力斯的入局,华为引望愈发显得引人瞩目。

关键字: 阿维塔 塞力斯 华为

加利福尼亚州圣克拉拉县2024年8月30日 /美通社/ -- 数字化转型技术解决方案公司Trianz今天宣布,该公司与Amazon Web Services (AWS)签订了...

关键字: AWS AN BSP 数字化

伦敦2024年8月29日 /美通社/ -- 英国汽车技术公司SODA.Auto推出其旗舰产品SODA V,这是全球首款涵盖汽车工程师从创意到认证的所有需求的工具,可用于创建软件定义汽车。 SODA V工具的开发耗时1.5...

关键字: 汽车 人工智能 智能驱动 BSP

北京2024年8月28日 /美通社/ -- 越来越多用户希望企业业务能7×24不间断运行,同时企业却面临越来越多业务中断的风险,如企业系统复杂性的增加,频繁的功能更新和发布等。如何确保业务连续性,提升韧性,成...

关键字: 亚马逊 解密 控制平面 BSP

8月30日消息,据媒体报道,腾讯和网易近期正在缩减他们对日本游戏市场的投资。

关键字: 腾讯 编码器 CPU

8月28日消息,今天上午,2024中国国际大数据产业博览会开幕式在贵阳举行,华为董事、质量流程IT总裁陶景文发表了演讲。

关键字: 华为 12nm EDA 半导体

8月28日消息,在2024中国国际大数据产业博览会上,华为常务董事、华为云CEO张平安发表演讲称,数字世界的话语权最终是由生态的繁荣决定的。

关键字: 华为 12nm 手机 卫星通信

要点: 有效应对环境变化,经营业绩稳中有升 落实提质增效举措,毛利润率延续升势 战略布局成效显著,战新业务引领增长 以科技创新为引领,提升企业核心竞争力 坚持高质量发展策略,塑强核心竞争优势...

关键字: 通信 BSP 电信运营商 数字经济

北京2024年8月27日 /美通社/ -- 8月21日,由中央广播电视总台与中国电影电视技术学会联合牵头组建的NVI技术创新联盟在BIRTV2024超高清全产业链发展研讨会上宣布正式成立。 活动现场 NVI技术创新联...

关键字: VI 传输协议 音频 BSP

北京2024年8月27日 /美通社/ -- 在8月23日举办的2024年长三角生态绿色一体化发展示范区联合招商会上,软通动力信息技术(集团)股份有限公司(以下简称"软通动力")与长三角投资(上海)有限...

关键字: BSP 信息技术
关闭
关闭