当前位置:首页 > 嵌入式 > 嵌入式教程
[导读]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主机
 

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

LED驱动电源的输入包括高压工频交流(即市电)、低压直流、高压直流、低压高频交流(如电子变压器的输出)等。

关键字: 驱动电源

在工业自动化蓬勃发展的当下,工业电机作为核心动力设备,其驱动电源的性能直接关系到整个系统的稳定性和可靠性。其中,反电动势抑制与过流保护是驱动电源设计中至关重要的两个环节,集成化方案的设计成为提升电机驱动性能的关键。

关键字: 工业电机 驱动电源

LED 驱动电源作为 LED 照明系统的 “心脏”,其稳定性直接决定了整个照明设备的使用寿命。然而,在实际应用中,LED 驱动电源易损坏的问题却十分常见,不仅增加了维护成本,还影响了用户体验。要解决这一问题,需从设计、生...

关键字: 驱动电源 照明系统 散热

根据LED驱动电源的公式,电感内电流波动大小和电感值成反比,输出纹波和输出电容值成反比。所以加大电感值和输出电容值可以减小纹波。

关键字: LED 设计 驱动电源

电动汽车(EV)作为新能源汽车的重要代表,正逐渐成为全球汽车产业的重要发展方向。电动汽车的核心技术之一是电机驱动控制系统,而绝缘栅双极型晶体管(IGBT)作为电机驱动系统中的关键元件,其性能直接影响到电动汽车的动力性能和...

关键字: 电动汽车 新能源 驱动电源

在现代城市建设中,街道及停车场照明作为基础设施的重要组成部分,其质量和效率直接关系到城市的公共安全、居民生活质量和能源利用效率。随着科技的进步,高亮度白光发光二极管(LED)因其独特的优势逐渐取代传统光源,成为大功率区域...

关键字: 发光二极管 驱动电源 LED

LED通用照明设计工程师会遇到许多挑战,如功率密度、功率因数校正(PFC)、空间受限和可靠性等。

关键字: LED 驱动电源 功率因数校正

在LED照明技术日益普及的今天,LED驱动电源的电磁干扰(EMI)问题成为了一个不可忽视的挑战。电磁干扰不仅会影响LED灯具的正常工作,还可能对周围电子设备造成不利影响,甚至引发系统故障。因此,采取有效的硬件措施来解决L...

关键字: LED照明技术 电磁干扰 驱动电源

开关电源具有效率高的特性,而且开关电源的变压器体积比串联稳压型电源的要小得多,电源电路比较整洁,整机重量也有所下降,所以,现在的LED驱动电源

关键字: LED 驱动电源 开关电源

LED驱动电源是把电源供应转换为特定的电压电流以驱动LED发光的电压转换器,通常情况下:LED驱动电源的输入包括高压工频交流(即市电)、低压直流、高压直流、低压高频交流(如电子变压器的输出)等。

关键字: LED 隧道灯 驱动电源
关闭