Based on the latest ARM Cortex-M3 STM32 development kit STM32 series of 32-bit flash microcontrollers breakthrough ARM Cortex-M3 kernel based on, which is a specifically developed for the application of embedded kernel. Cortex-M3 core: British ARM company pushing the kernel, dedicated to replacing 8 bit /16 bit microcontroller. Using the THUMB-2 instruction set, 32 bit performance, 16 bit density, compared with Cortex-M3, the ARM7TDMI kernel to 35%, the code is reduced by 45%. STM32 series products benefit from the Cortex-M3 architecture of a number of improvements, including improve performance at the same time and improve code density thumb-2 instruction set, greatly improve the response to interrupts and all the new features has industry Yun and power levels.
Parameters
ST chip STM32F103RET6 * (package: LQFP64)
Resources: 512KFLASH/64KRAM, 51-IO, 16-12bADC, USB/CAN/SDIO/I2S8 /16 bit microcontroller terminator)
Industrial grade design, can be stable running at -40 to 85 degrees Celsius
1 serial port
1 CAN ports
1 USB interfaces
1 SD card slots
1 TFT LCD of 160x128 graphics dot matrix color
Standard 20 pin JTAG port for downloading and debugging
1 adjustable analog voltage control for ADC input, used to test the analog of the analog to STM32F103.
1 speakers for testing the PWM output.
Five 1 to the joystick, as the input for the switch quantity.
1 I2C devices 24C02
All the chips have been led to facilitate the development of the two
Software Examples
Our example from simple to complex, because the configuration of the LCD screen to explain profound theories in simple language, we can observe the experimental results, it is convenint.
GPIO test
output: Most simple example, light LED
Light LCD backlight: PWM test
LCD backlight boost circuit driven by PWM, because it is the hardware of the PWM, so as long as the good set up after not taking CPU resources, and simplify the hardware.
Light LCD screen
Use GPIO to simulate LCD hardware timing to drive LCD. Examples:
Display English string
Show Chinese characters
Display bitmap BMP
GPIO test two: input
Input experiment
Games
ADC test
Using the potentiometer on the plate to change the ADC input voltage.
PWM output test: Electronic piano
Use the timer PWM function to drive the speaker, by changing the ADC potentiometer, the sound of a different frequency.
I2C test: read and write EEPROM
I2C devices on read and write 24C02.
USB interface
Simulate a U disk.
SD card test
Ported the open source file system FatFS to STM32.
Serial communication experiment
UART0 query method
UART0 interrupt mode
CAN bus communication test
CAN bus transceiver experiment.
Timer test: interrupt mode
RTC test
External interrupt test
GPIO set to an external interrupt.
Intrusion detection test
Watchdog test
After observation of the watchdog, if the reduction of the dog is not fed
Software interrupt test
Real-time operating system test: uC/OS-II
Real time operating system uC/OS-II basic experiments, open 2 tasks.
Download and debug with JLINK emulator