中国电子技术网

设为首页 网站地图 加入收藏

 

[原创] NXP LPC546xx系列32位ARM MCU嵌入应用开发方案

关键词:ARM Cortex-M4 MCU LPC546xx 微处理器

时间:2019-07-30 11:30:46       来源:中电网

nxp公司的LPC546xx系列是基于ARM Cortex-M4核的32位MCU,具有先进的外设和功率效率的微处理器(MCU),集成了多达512KB 闪存和200kB SRAM,高速USB器件/主+PHY,全速USB器件/主,以太网AVB, LCD,EMC, SPIFI,CAN FD,SDIO和SHA;以及12位5M取样/秒 ADC以及DMIC子系统.32位核ARM Cortex-M4提供了系统增强特性如低功耗,增强调试特性和高档的支持区块集成.ARM Cortex-M4 CPU采用3级流水线,采用具有单独本地指令和数据总线以及用于外设的第三总线的哈佛架构,包括内部的预取单元,支持分支操作.ARM Cortex-M4支持但周期数字信号处理和SIMD指令,核中还集成了硬件浮点处理器.ARM Cortex-M4 CPU工作频率高达220 MHz,单电源1.71-3.6V工作,工作温度-40℃到+105℃,主要用在低功耗嵌入式应用.本文介绍了LPC546xx系列主要特性和优势,框图,以及LPCXpresso546x8/540xx/54S0xx开发板主要特性,主要特性分布图,电路图,材料清单和PCB设计图.

The LPC546xx is a family of ARM Cortex-M4 based microcontrollers for embedded applications featuring a rich peripheral set with very low power consumption and enhanced debug features.

The ARM Cortex-M4 is a 32-bit core that offers system enhancements such as low power consumption, enhanced debug features, and a high level of support block integration. The ARM Cortex-M4 CPU incorporates a 3-stage pipeline, uses a Harvard architecture with separate local instruction and data buses as well as a third bus for peripherals, and includes an internal prefetch unit that supports speculative branching. The ARM Cortex-M4 supports single-cycle digital signal processing and SIMD instructions. A hardware floating-point processor is integrated into the core.

The LPC546xx family includes up to 512 KB of flash, 200 KB of on-chip SRAM, up to 16 kB of EEPROM memory, a quad SPI Flash Interface (SPIFI) for expanding program memory, one high-speed and one full-speed USB host and device controller, Ethernet AVB, LCD controller, Smart Card Interfaces, SD/MMC, CAN FD, an External Memory Controller (EMC), a DMIC subsystem with PDM microphone interface and I2S, five general-purpose timers, SCTimer/PWM, RTC/alarm timer, Multi-Rate Timer (MRT), a Windowed Watchdog Timer (WWDT), ten flexible serial communication peripherals (USART, SPI, I2S, I2C interface), Secure Hash Algorithm (SHA), 12-bit 5.0 Msamples/sec ADC, and a temperature sensor.

LPC546xx系列主要特性和优势:

 ARM Cortex-M4 core (version r0p1):
 ARM Cortex-M4 processor, running at a frequency of up to 220 MHz.
 The LPC5460x/61x devices operate at CPU frequencies of up to 180 MHz. The LPC54628 device operates at CPU frequencies of up to 220 MHz.
 Floating Point Unit (FPU) and Memory Protection Unit (MPU).
 ARM Cortex-M4 built-in Nested Vectored Interrupt Controller (NVIC).
 Non-maskable Interrupt (NMI) input with a selection of sources.
 Serial Wire Debug (SWD) with six instruction breakpoints, two literal comparators,and four watch points. Includes Serial Wire Output and ETM Trace for enhanced debug capabilities, and a debug timestamp counter.
 System tick timer.
 On-chip memory:
 Up to 512 KB on-chip flash program memory with flash accelerator and 256 byte page erase and write.
 Up to 200 KB total SRAM consisting of 160 KB contiguous main SRAM and an additional 32 KB SRAM on the I&D buses. 8 KB of SRAM bank intended for USB traffic.
 16 KB of EEPROM.
 ROM API support:
 Flash In-Application Programming (IAP) and In-System Programming (ISP).
 ROM-based USB drivers (HID, CDC, MSC, and DFU). Flash updates via USB.
 Booting from valid user code in flash, USART, SPI, and I2C.
 Legacy, Single, and Dual image boot.
 OTP API for programming OTP memory.
 Random Number Generator (RNG) API.
 Serial interfaces:
 Flexcomm Interface contains up to ten serial peripherals. Each Flexcomm Interface can be selected by software to be a USART, SPI, or I2C interface. Two Flexcomm Interfaces also include an I2S interface. Each Flexcomm Interface includes a FIFO that supports USART, SPI, and I2S if supported by that Flexcomm Interface. A variety of clocking options are available to each Flexcomm Interface and include a shared fractional baud-rate generator.
 I2C-bus interfaces support Fast-mode and Fast-mode Plus with data rates of up to 1Mbit/s and with multiple address recognition and monitor mode. Two sets of true I2C pads also support High Speed Mode (3.4 Mbit/s) as a slave.
 Two ISO 7816 Smart Card Interfaces with DMA support.
 USB 2.0 high-speed host/device controller with on-chip high-speed PHY.
 USB 2.0 full-speed host/device controller with on-chip PHY and dedicated DMA controller supporting crystal-less operation in device mode using software library.See Technical note TN00032 for more details.
 SPIFI with XIP feature uses up to four data lines to access off-chip SPI/DSPI/QSPI flash memory at a much higher rate than standard SPI or SSP interfaces.
 Ethernet MAC with MII/RMII interface with Audio Video Bridging (AVB) support and dedicated DMA controller.
 Two CAN FD modules with dedicated DMA controller.
 Digital peripherals:
 DMA controller with 30 channels and up to 24 programmable triggers, able to access all memories and DMA-capable peripherals.
 LCD Controller supporting both Super-Twisted Nematic (STN) and Thin-Film Transistor (TFT) displays. It has a dedicated DMA controller, selectable display resolution (up to 1024 x 768 pixels), and supports up to 24-bit true-color mode.
 External Memory Controller (EMC) provides support for asynchronous static memory devices such as RAM, ROM and flash, in addition to dynamic memories such as single data rate SDRAM with an SDRAM clock of up to 100 MHz. EMC bus width (bit) on TFBGA180, TFBGA100, and LQFP100 and packages supports up to 8/16 data line wide static memory, in addition to dynamic memories, such as, SDRAM (2 banks only) with an SDRAM clock of up to 100 MHz.
 Secured digital input/output (SD/MMC and SDIO) card interface with DMA support.
 CRC engine block can calculate a CRC on supplied data using one of three standard polynomials with DMA support.
 Up to 171 General-Purpose Input/Output (GPIO) pins.
 GPIO registers are located on the AHB for fast access. The DMA supports GPIO ports.
 Up to eight GPIOs can be selected as Pin Interrupts (PINT), triggered by rising, falling or both input edges.
 Two GPIO Grouped Interrupts (GINT) enable an interrupt based on a logical (AND/OR) combination of input states.
 CRC engine.
 Analog peripherals:
 12-bit ADC with 12 input channels and with multiple internal and external trigger inputs and sample rates of up to 5.0 MSamples/sec. The ADC supports two independent conversion sequences.
 Integrated temperature sensor connected to the ADC.
 DMIC subsystem including a dual-channel PDM microphone interface, flexible decimators, 16 entry FIFOs, optional DC locking, hardware voice activity detection, and the option to stream the processed output data to I2S.
 Timers:
 Five 32-bit general purpose timers/counters, four of which support up to four capture inputs and four compare outputs, PWM mode, and external count input.Specific timer events can be selected to generate DMA requests. The fifth timer does not have external pin connections and may be used for internal timing operations.
 SCTimer/PWM with 8 input and 10 output functions (including capture and match). Inputs and outputs can be routed to/from external pins and internally to or from selected peripherals. Internally, the SCTimer/PWM supports 10 match/captures, 10 events, and 10 states.
 32-bit Real-time clock (RTC) with 1 s resolution running in the always-on power domain. A timer in the RTC can be used for wake-up from all low power modes including deep power-down, with 1 ms resolution.
 Multiple-channel multi-rate 24-bit timer (MRT) for repetitive interrupt generation at up to four programmable, fixed rates.
 Windowed Watchdog Timer (WWDT).
 Repetitive Interrupt Timer (RIT) for debug time stamping and for general purpose use.
 Security features:
 enhanced Code Read Protection (eCRP) to protect user code.
 OTP memory for ECRP settings, and user application specific data.
 Secure Hash Algorithm (SHA1/SHA2) module with dedicated DMA controller.
 Clock generation:
 12 MHz internal Free Running Oscillator (FRO). This oscillator provides a selectable 48 MHz or 96 MHz output, and a 12 MHz output (divided down from the selected higher frequency) that can be used as a system clock. The FRO is trimmed to 1 % accuracy over the entire voltage and temperature range.
 External clock input for clock frequencies of up to 25 MHz.
 Crystal oscillator with an operating range of 1 MHz to 25 MHz.
 Watchdog Oscillator (WDTOSC) with a frequency range of 6 kHz to 1.5 MHz.
 32.768 kHz low-power RTC oscillator.
 System PLL allows CPU operation up to the maximum CPU rate and can run from the main oscillator, the internal FRO, the watchdog oscillator or the 32.768 KHz RTC oscillator.
 Two additional PLLs for USB clock and audio subsystem.
 Independent clocks for the SPIFI interface, ADC, USBs, and the audio subsystem.
 Clock output function with divider.
 Frequency measurement unit for measuring the frequency of any on-chip or off-chip clock signal.
 Power control:
 Programmable PMU (Power Management Unit) to minimize power consumption and to match requirements at different performance levels.
 Reduced power modes: sleep, deep-sleep, and deep power-down.
 Wake-up from deep-sleep modes due to activity on the USART, SPI, and I2C peripherals when operating as slaves.
 Ultra-low power Micro-tick Timer, running from the Watchdog oscillator that can be used to wake up the device from low power modes.
 Power-On Reset (POR).
 Brown-Out Detect (BOD) with separate thresholds for interrupt and forced reset.
 Single power supply 1.71 V to 3.6 V.
 Power-On Reset (POR).
 Brown-Out Detect (BOD) with separate thresholds for interrupt and forced reset.
 JTAG boundary scan supported.
 128 bit unique device serial number for identification.
 Operating temperature range -40℃ to +105℃.
 Available in TFBGA180, TFBGA100, LQFP208, and LQFP100 packages.

图1.LPC546xx系列框图

LPCXpresso54628开发板

The LPCXpresso™ family of boards provides a powerful and flexible development system for NXP’s LPC Cortex®-M family of MCUs. They can be used with a wide range of development tools, including NXP’s MCUXpresso IDE. The LPCXpresso54608 (OM13092), LPCXpresso54618 (board provided as part of the OM13094 CAN-FD Kit), LPCXpresso54628 (OM13098), LPCXpresso54018 (OM40003) and LPCXpresso54S018 (LPC54S018-EVK) boards share the same design and have been developed by NXP to enable evaluation of and prototyping with the LPC546x8/540xx/54S0xx families of MCUs. There is no functional difference between these boards except the (1) functionality of the LPC546x8/540xx/54S0xx device installed, and (2) that the LPC54618 board included in the OM13094 and LPC54S018 board do not include the LCD panel. The LPCXpresso54018 and LPCXpresso54S018 also use the same board design and components, but have different booting behavior due to differences in their boot ROMs and have different internal pull up resistor behavior at reset. All boards use a BGA180 package.

Note that the LPCXpresso54628 board features an LPC54628 device which has a superset of functionality compared to the LPC54608 and LPC54618. This means code written for the LPC54608 and LPC54618 can run unchanged on the LPC54628. The LPC54628 is capable of running at up to 220MHz, but requires a different power library (from the MCUXpresso SDK) than the other devices in order to run at this clock speed.

The LPCXpresso54018/54S018 boards features and LPC54018 or LPC54S018 MCU which can operate at up to 180MHz. These MCUs also include CAN-FD support. While most of the peripherals are identical between LPC540xx, LPC54S0xx and LPC546x8 devices, a different SDK is required for each family.

The schematics show that the board was designed for either 1.8 V or 3.3 V build configurations, but all production boards are built in the 3.3 V configuration.

图2.LPCXpresso546x8/540xx/54S0xx开发板外形图

LPCXpresso546x8/540xx/54S0xx开发板主要特性:

• On-board, high-speed USB based, Link2 Debug Probe with CMSIS-DAP and SEGGER J-Link protocol options:
 Link2 probe can be used with on-board LPC546x8/540xx/54S0xx or external target.
 UART and SPI port bridging from LPC546x8/540xx/54S0xx target to USB via the on-board Debug Probe.
 Support for external Debug Probe.
• 3 x user LEDs
• Target Reset, ISP (3) and user buttons
• Expansion options based on popular standards:
   Arduino UNO compatible expansion site with additional LPCXpresso V3 standard connections
 PMod™ compatible expansion port
 Host connection/general purpose expansion port
• On-board 3.3V regulator with external power supply options.
• Built-in power consumption measurement for target LPC546x8/540xx/54S0xx MCU.
• Winbond 128Mb W25Q128JVFIM Quad-SPI flash (Micron devices used on all revisions up to Rev C and some Rev D.)
• Winbond 128Mb W9812G6JB-6I SDRAM (Micron MT48LC8M16A2B4 used on all revisions up to Rev C and some Rev D.).
• Knowles SPH0641LM4H digital microphone.
• Full size SD/MMC card slot.
• NXP MMA8652FCR1 accelerometer.
• Stereo audio codec with line in/out.
• High and full speed USB ports with micro A/B connector for host or device functionality.
• 10/100Mbps Ethernet (RJ45 connector).
• Rocktech RK043FN02H 272x480 color LCD with capacitive touch screen. Available separately for LPCXpresso54S018 boards.

图3.LPCXpresso546x8/540xx/54S0xx开发板主要特性分布图

图4.LPCXpresso546x8/540xx/54S0xx开发板电路图(1)

图5.LPCXpresso546x8/540xx/54S0xx开发板电路图(2)

图6.LPCXpresso546x8/540xx/54S0xx开发板电路图(3)

图7.LPCXpresso546x8/540xx/54S0xx开发板电路图(4)

图8.LPCXpresso546x8/540xx/54S0xx开发板电路图(5)

图9.LPCXpresso546x8/540xx/54S0xx开发板电路图(6)

图10.LPCXpresso546x8/540xx/54S0xx开发板电路图(7)

图11.LPCXpresso546x8/540xx/54S0xx开发板电路图(8)

图12.LPCXpresso546x8/540xx/54S0xx开发板电路图(9)

图13.LPCXpresso546x8/540xx/54S0xx开发板电路图(10)

图14.LPCXpresso546x8/540xx/54S0xx开发板电路图(11)

图15.LPCXpresso546x8/540xx/54S0xx开发板电路图(12)

图16.LPCXpresso546x8/540xx/54S0xx开发板电路图(13)

图17.LPCXpresso546x8/540xx/54S0xx开发板PCB设计图(1)

图18.LPCXpresso546x8/540xx/54S0xx开发板PCB设计图(2)

图19.LPCXpresso546x8/540xx/54S0xx开发板PCB设计图(3)

图20.LPCXpresso546x8/540xx/54S0xx开发板PCB设计图(4)

图21.LPCXpresso546x8/540xx/54S0xx开发板PCB设计图(5)

图22.LPCXpresso546x8/540xx/54S0xx开发板PCB设计图(6)
LPCXpresso546x8/540xx/54S0xx开发板材料清单见:
LPC546xx-540xx_Eval_brd_bom_Rev-F.xls
详情请见:
https://www.nxp.com/docs/en/data-sheet/LPC546XX.pdf
https://www.nxp.com/docs/en/user-guide/UM11035.pdf
UM11035.pdf
LPC546XX.pdf

  • 分享到:

 

猜你喜欢