Saturday, April 30, 2011

A New Generation of Development And Application of Embedded Microprocessor STM32F103

Abstract:
Co rtex-M3 core STM 32F103 series chip is the new 32-bit embedded microprocessor, it is no operating system, ARM, its performance is much higher than the 51 series, but the development process as easy and 51 Series Microcontroller , which in many applications to replace 51 computers. From the STM 32F103 series chip performance characteristics and on-chip resources to start, focusing on its development tools and development process. And the temperature measurement, for example, to specify based on Keil? Vision4 established software engineering, source code editing, compilation, based on J-L ink emulator download, program online debugging, running and other on-chip process, the ultimate measure of the temperature conversion digital content, through the serial port to the PC-display.



1 Introduction
Embedded microprocessors are increasingly widely used in the production of all areas of life, but either the traditional 8-bit embedded microprocessor processor, performance is limited, either 32-bit ARM-based microprocessors in the use of necessary embedded operating system support, such as L inux operating system, making the system less refined. ARM has introduced this situation until the Cortex-M was able to improve the kernel, it does not require the operating system, you can use the same as the microcontroller Ke il C programming language, greatly reduced the developer's workload. June 2007, ST launched the company in a timely manner based on the Cortex-M 3 a new type of ARM processor cores: STM32 series microprocessor. In this paper, stm32F103 processor, for example, cited the need to use a variety of hardware and software development resources and their role in developing a more detailed description of the processor to use, and then specific to the temperature sensor detects the temperature of the actual application, the developer provide a more intuitive impression, the purpose is to allow developers to quickly understand the familiar features of the processor, control the development of the family of processors to use.

2 STM32F103 series microprocessor Introduction
STM32F103 series is the first microprocessor architecture based on ARMv7-M standard 32-bit RISC (reduced instruction set) processor to provide high code efficiency, the usual 8-bit and 16-bit system memory to play the ARM core high performance. The series microprocessor operating frequency is 72MHz, built-in up to 128K bytes of Flash memory and 20K bytes of SRAM, with a wealth of general-purpose I / O ports.

As the latest generation of embedded ARM processors, which for the realization of the need to provide a low-cost MCU platform, reduced pin count, reduced power consumption, while providing a superior computing performance and advanced interrupt response system. Rich on-chip resources make STM32F103 series microprocessors in a variety of fields such as motor drives, real-time control, handheld devices, PC peripherals and air conditioning systems and so the game shows great potential for development.

STM32F103 series of key resources and characteristics of microprocessors are as follows:

(1) up to 51 Fast I / O port, all I / O ports can be mapped onto the 16 external interrupts, almost all ports are allowed to 5V input. Each port can be configured by software output (push-pull or open drain), enter (with or without pull-up or pull-down), or other peripheral functions mouth.
(2) two 12-bit ADC, up to 16 external input channels, the conversion rate of up to 1MH z, conversion range of 0 ~ 36V; with the dual sample and hold function; internal embedding a temperature sensor, can be easily measure processor temperature.
(3) Flexible 7 general-purpose DMA can manage memory to memory, the memory device to memory and data transfer to the device without any CPU intervention. Through the DMA can move data quickly, and this section? ? CPU resources for other operations. DMA controller supports circular buffer management to avoid the controller reaches the end of the buffer when the interrupt generated. It supports the peripherals include: timers, ADC, SPI, I2C and USART and so on.
(4) Debug mode: support for the standard 20 pin JTAG emulation and debugging for the Cortex-M3 core of the serial wire debug (SWD) capabilities. Usually the default JTAG debug interface is the interface.
(5) contains up to 7 internal timer, the specific names and functions shown in Table 1.
(6) contains a wealth of communication interfaces: three USART asynchronous serial communication interface, two I2C interfaces, two SPI ports, a CAN interface and a USB interface for data communications to provide a guarantee.

No comments: