The first chapter is the AM824-Core development kit . This article is the 1.1 LPC824 microcontroller and the 1.2 LPC84x microcontroller .
This chapter guides:
With the development of the Internet of Things technology, the capabilities of MCU processors are becoming increasingly powerful, and the boundaries between today's MCUs and microprocessors are becoming increasingly blurred, and will be further integrated into embedded processors. Since AMetal has completely shielded the underlying complex details, developers only need to understand the basic functions of the MCU.
1.1 LPC824 Microcontroller
> > > Â Â 1.1.1 Features
system:
-ARM Cortex-M0+ embedded processor with built-in nestable interrupt vector controller (NVIC), system tick timer, runtime frequency up to 30 MHz;
- Supports Serial Wire Debug (SWD) mode and JTAG Boundary Scan (BSDL) mode.
Up to 32kB of on-chip Flash and 8kB SRAM with 64-byte page write and erase.
Digital peripherals:
- Integrated up to 32 general purpose I/O pins with configurable pull-up/pull-down resistors, programmable open-drain mode, input inverter and interference filter, GPIO directional control supports independent set of bits/ Clear/trigger;
- 4 pins with 20mA output drive capability and 2 open-drain pins with 20mA sink drive capability;
-GPIO interrupt generation capability, 8 GPIO inputs with Boolean pattern matching;
- Switch matrix for flexible configuration of each I/O pin function;
- CRC engine with DMA for 18 channels and 9 trigger inputs.
Timer:
- State configurable timer (SCTimer/PWM), input and output functions (including capture and match) for timing and PWM applications;
- Quad Channel Multi Rate Timer (MRT) to generate repeatable interrupts at up to 4 programmable fixed rates;
- Self-wake timer (WKT), using IRC, low power, low frequency internal oscillator as the clock, or the external clock input of the always-on power domain as the clock;
- Window Watchdog Timer (WWDT).
Analog peripherals:
- A 12-bit ADC with up to 12 input channels with multiple internal and external trigger inputs, sampling rates up to 1.2Msamples/s, and ADC support for two independent conversion sequences;
- Comparator with 4 input pins and external or internal reference.
Serial interface:
- 3 USART interfaces, pin functions are assigned via a switch matrix and a shared fractional baud rate generator;
- 2 SPI controllers with pin functions assigned via switch matrix;
- 4 I2C bus interfaces. I2C supports a high-speed mode plus, in both the true open-drain mode data rate monitor and 1Mbit / s, three standard digital I2C pin supports data rates up to 400kbit / s.
Clock generation:
- 12MHz internal RC oscillator adjusted to 1.5% accuracy for selective use as system clock;
- crystal oscillator with an operating frequency range of 1MHz to 25MHz;
- Programmable watchdog oscillator with a frequency range of 9.4kHz to 2.3MHz;
- 10 kHz low power oscillator for WKT;
-PLL allows the CPU to generate the highest CPU frequency without the need for a high frequency crystal, which can be run from the system oscillator, an external clock input, or an internal RC oscillator;
- Clock output with divider to reflect all internal clock sources.
Power Control:
- Integrated PMU (Power Management Unit) that minimizes power consumption;
- Energy saving mode: sleep mode, deep sleep mode, power down mode and deep power down mode;
- Deep sleep mode and power down mode can be awakened by USART, SPI and I 2 C peripherals;
- Deep power down mode can be self-wake by timer control;
- Power-on reset (POR), brownout detection (BOD).
Single power supply (1.8V ~ 3.6V), operating temperature range -40 ° C ~ +105 ° C.
> > > 1.1.2 Overview
The LPC824 series of microcontrollers (MCUs) shown in Figure 1.1 have a rich set of on-chip peripherals that support switch matrix, state configurable timers, multirate timers, window watchdog timers, and DMA control in addition to GPIOs. And so on. The analog peripherals include a 12-bit high-speed ADC and an analog comparator that supports three UARTs, two SPIs, and four I 2 Cs . In addition, a 12MHz RC oscillator is integrated inside the chip, which can be used as the clock source of the system.
Figure 1.1 LPC824 Functional Block Diagram
The LPC824 Series MCUs are uniquely low power and feature industry-leading ultra-low power (90uA/MHz). In addition, four low-power modes are supported, allowing users to flexibly select the appropriate power mode based on application requirements, and consume less than 1uA in the lowest power mode.
Although these concepts may be very strange to beginners, don't be afraid, just like the computer you use, although it's complicated, it doesn't affect your computer programming and surfing the Internet.
The LPC812/824 belongs to the LPC800 series MCU. The LPC824 is an enhanced version of the LPC812 series. It has more peripheral resources and can better meet the application needs of different occasions. Because the registers of the same peripherals are consistent, the software design can be fully compatible, which greatly reduces the difficulty of platform construction, and can be reasonably selected according to different needs. See Table 1.1 for details.
Table 1.1 LPC800 Series MCU Selection Table
The LPC824 series MCUs are available in two packages, TSSOP20 and HVQFN33, with pinouts as shown in Figure 1.2.
Figure 1.2 Schematic diagram of the package
The pin descriptions and main functions of the LPC824 series MCU are shown in Table 1.2.
Table 1.2 Pin Descriptions for the LPC824 Series
1.2 LPC84x Microcontroller
> > > 1.2.1 Features
system:
- ARM Cortex-M0+ processor with runtime frequency up to 30 MHz, support for single-cycle multiplication and fast single-cycle I/O;
- Built-in nestable interrupt vector controller (NVIC);
- system tick timer;
AHB bus matrix:
- Support for Serial Wire Debug (SWD) mode and JTAG Boundary Scan (BSDL) mode;
- Micro Tracking Buffer (MTB).
storage
- Up to 64kB of on-chip Flash, supporting 64-byte page write and erase functions;
-FAIM memory allows the user to configure the behavior of the chip when it is powered up;
- Code Read Protection (CRP)
- Up to 16 KB of SRAM, including 2 8 KB contiguous SRAMs, one of which can be used by the MTB;
- Support for bit-band operations to support atomic operations of a single bit.
ROM API support
-Bootloader;
- Support for application Flash programming (IAP);
- Support for system-on-chip programming (ISP), the communication interface can be USART, SPI and I2C ;
- Integer division API interface.
Digital peripherals:
- Integrated up to 32 general purpose I/O pins with configurable pull-up/pull-down resistors, programmable open-drain mode, input inverter and interference filter, GPIO directional control supports independent set of bits/ Clear/flip;
-4 pins with 20mA output drive capability;
- 2 open-drain pins with 20mA sink drive capability;
-GPIO interrupt generation capability, 8 GPIO inputs with Boolean pattern matching;
- Switch matrix for flexible configuration of each I/O pin function;
-CRC engine;
- DMA with 25 channels and 13 trigger inputs;
- Capacitive touch screen interface.
Timer:
- State configurable timer (SCTimer/PWM), input and output functions (including capture and match) for timing and PWM applications, support for 8 match/capture, 8 events, 8 states;
-1 general purpose timer with 4 matched outputs, 3 input captures, support for PWM mode, external counting and DMA;
- Quad Channel Multi Rate Timer (MRT) to generate repeatable interrupts at up to 4 programmable fixed rates;
- Self-wake timer (WKT), using IRC, low power, low frequency internal oscillator as the clock, or the external clock input of the always-on power domain as the clock;
- Window Watchdog Timer (WWDT).
Analog peripherals:
- A 12-bit ADC with up to 12 input channels with multiple internal and external trigger inputs, sampling rates up to 1.2Msamples/s, and the ADC supporting two independent conversion sequences;
- Comparator with 4 input pins and external or internal reference voltage;
- 2 10-bit DACs.
Serial interface:
- 5 USART interfaces, pin functions are assigned via a switch matrix and a shared fractional baud rate generator;
- 2 SPI controllers with pin functions assigned via switch matrix;
- 4 I2C bus interfaces. I2C supports a high-speed mode plus, in both the true open-drain mode data rate monitor and 1Mbit / s, three standard digital I2C pin supports data rates up to 400kbit / s.
Clock generation:
- Free running oscillator (FRO) with ±1% accuracy, can provide 18MHz, 24MHz or 30MHz clock, or can be divided to 9MHz, 12MHz or 15MHz as the system clock;
- Use FAIM memory to complete low power startup with a running frequency of 3MHz;
- crystal oscillator with an operating frequency range of 1MHz to 25MHz;
- A low power oscillator can be used as a watchdog clock;
- Programmable watchdog oscillator with a frequency range of 9.4kHz to 2.3MHz;
-PLL allows the CPU to generate the highest CPU frequency without the need for a high frequency crystal, which can be run from the system oscillator, an external clock input, or an internal RC oscillator;
- Clock output with divider to reflect all internal clock sources.
Power Control:
- The power consumption in operation mode can be as low as 90uA/MHz;
- Internal integration of PMU (Power Management Unit) to minimize power consumption;
- Energy saving mode: sleep mode, deep sleep mode, power down mode and deep power down mode;
- Deep sleep mode and power down mode can be woken up by USART, SPI and I2C peripherals;
- Deep power down mode can be self-wake by timer control;
- Power-on reset (POR), brownout detection (BOD).
Single power supply (1.8V ~ 3.6V), operating temperature range -40 ° C ~ +105 ° C;
Available in LQFP64, LQFP48, HVQFN48, and HVQFN33 packages.
> > > 1.2.2 Overview
The LPC84x family of microcontrollers (MCUs), shown in Figure 1.3, has a rich set of on-chip peripherals that support switch matrix, state configurable timers, multirate timers, window watchdog timers, and DMA control in addition to GPIOs. And so on. The analog peripherals include a 12-bit high speed ADC and two 10-bit DACs supporting five UARTs, two SPIs, and four I2Cs. In addition, a free running oscillator is integrated inside the chip, which can be used as the clock source of the system.
Figure 1.3 LPC84x Functional Block Diagram
The LPC84x family of MCUs are uniquely low power and feature industry-leading ultra-low power (90uA/MHz). In addition, four low-power modes are supported, allowing users to flexibly select the appropriate power mode based on application requirements, with less than 1uA in the lowest power mode. Although these concepts may be very strange to beginners, don't be afraid, just like the computer you use, although it's complicated, it doesn't affect your computer programming and surfing the Internet.
The LPC84x series MCUs are available in 4 different packages and can be selected according to different requirements. See Table 1.3 for details.
Table 1.3 LPC84x Series MCU Selection Table
The pin descriptions and main functions of the LPC84x series MCU are shown in Table 1.4.
Table 1.4 Pin Description
Portable Power Station also known as Portable Power Bank. Our product regulated DC Power, AC Pass-Through Charging, Wireless Fast Charger, Bluetooth Playback, Attentive Start, Car charger, Type-C ....... Large capacity meet the needs of all kinds of equipment.
Portable Power Station,Indoor Portable Power Station,Solar Portable Power Station,Portable Power Station With Bms
Jiangsu Zhitai New Energy Technology Co.,Ltd , https://www.zhitainewenergy.com