"Six months ago, I first contacted the enhanced microcontroller development board gd32103e Eval based on Cortex-M3 processor of Zhaoyi innovation technology company. At that time, I learned about this domestic innovative company with great courage from flash field to MCU field. For more than half a year, the microcontroller products of Zhaoyi technology have changed from the original enhanced MCU Gd32f103 series has developed into 124 specifications and models including 6 series of basic type, interconnected type and value-added type. Such rapid development can not be described as unprecedented even from the perspective of the global semiconductor industry.
Aiban has previously evaluated the powerful gd32103e Eval development board of Zhaoyi innovation technology and the gd32107c Eval development board for Internet applications. I believe friends who have seen it have left a lot of impressions, such as software and hardware compatible with STM32F series microcontrollers, innovative zero wait technology, better performance and so on. This time, aiban.com got the latest development board gd32150r-eval evaluation board based on super value MCU launched by Zhaoyi. Let's go and see what kind of surprise it will bring us.
Gd32150r-eval evaluation board
Just got the Zhaoyi innovation gd32150r-eval development board, the most intuitive feeling is that the packaging box has become beautiful. The front of the packaging box in milky white color is printed with a large black logo of gd32 product series. The packaging box adopts flip design, which can be opened by gently pulling up from the front edge. The contact point is attracted by a small piece of magnet, paying great attention to details.
The packaging box adopts a separated design. There is only a gd32150r-eval board protected by an anti-static bag and a mini USB cable more than 80 cm long. However, for friends who use desktop computers like the author and put the host under the table, the length of this mini USB cable is not enough. This is also a problem that many foreign and domestic manufacturers have.
Gd32150r-eval development board hardware
When you take out the gd32150r-eval development board from the anti-static bag and look carefully, you can really feel the difference or style from the previous gd32103e Eval development board and gd32107c Eval development board. Firstly, different from the previous two dark blue PCBs, the green solder resist ink is used for processing this time. In addition, the board has added many small functions, such as infrared transceiver, touch sensing strip (TSI), buzzer, etc. However, it is a pity that the size of the board's own screen has been reduced (2.2 inches), and there is no touch screen, Let's take a look at the whole hardware of gd32150r-eval development board.
Front and back of gd32150r-eval development board
Gd32150r-eval development board onboard resources:
32-bit microcontroller gd32f150r8t6 based on Cortex-M3 core, with a maximum dominant frequency of 72mhz
All IO pins of the microcontroller gd32f150r8t6 are led out through the pin seat for debugging, DIY and on-board backup battery seat
2.2-inch TFT LCD screen, infrared transceiver, buzzer, microSD card function, touch sensor strip (TSI), 2KB EEPROM
RS485 interface, DAC, ADC interface, hdmi-cec interface, standard 20pinjtag interface base (supporting SWD debugging), 3.5mm audio interface
5V MINIUSB cable power supply interface, 4 mechanical keys (reset / wake up / user / tamper), multiplexing function jump cap, led * 4
From the on-board functions, it is not difficult to find that the gd32150r-eval development board is "simple and rough". It spans different fields. It has functions such as lighting LED water lights and buzzers suitable for entry-level, DAC, ADC and audio interfaces controlled by analog, or RS485, touch sensitive bar (TSI) and other functions for industrial fields, It has good applicability for different users. All IO port pins of the microcontroller are led out through the pin seat, which greatly facilitates the user's debugging and DIY, and can fully understand the microcontroller functions from the user's point of view. Although this is only a very simple design, it shows us the original intention of the designer for the user, which is commendable.
Recommended development board
UC / os-iii STM32 development board, evaluation board based on stm32f107
Stevalmki116v1 evaluation board for evaluating audio, MEMS omnidirectional microphone
Microcontroller gd32f150r8t6
After a brief look at the hardware functions of the gd32150r-eval development board, let's focus on the characteristics of this so-called value-added MCU gd32f150r8t6.
Gd32f150r8t6 microcontroller
Hardware system block diagram of microcontroller gd32f150r8t6
Gd32f150r8t6 microcontroller features:
Based on arm Cortex-M3 processor, it supports 72mhz dominant frequency at most, and integrates 64KB flash and 8KB SRAM
16 bit general timer * 5, 32-bit gptm * 1, 16 bit adv. TM * 1, 16 bit basic TM * 1, system clock * 1, watchdog * 2, RTC * 1
USART*2、I2C*2、SPI*2、I2S*1、USB2.0 FS*1、HDMI CEC*1、EXTI*16
Maximum expansion 55gpio port, 18 capacitive sensing touch channels (TSI), two analog voltage comparators, one 16 channel 12 bit SAR ADC and one 12 bit DAC
At present, Zhaoyi gd32f150 series microcontrollers have a total of 10 products, from ultra-small tssop20 package to acceptable lqfp64 package. The basic functions remain the same, but the number of flash, SRAM and peripheral interfaces has increased or decreased. Its gd32f150 series microcontrollers support Zhaoyi's unique patented technology - kernel access flash high-speed zero wait technology, At the same time, it has three power saving modes: sleep mode, deep sleep mode and standby mode. Gd32f150 series microcontroller supports 2.6V ~ 3.3V power supply, and some IO can withstand 5V level to prevent accidental damage to the chip under improper operating conditions.
The on-board gd32f150r8t6 microcontroller is undoubtedly a product with the highest specification configuration in this series. It integrates 64KB flash and 8KB SRAM, and can support the expansion of 55 GPIO ports at most. Users can develop the highly flexible DIY of the pin seat of the IO port led out next to the board microcontroller through gd32150r-eval. The characteristics of gd32f150r8t6 microcontroller make it have very broad application prospects in many occasions, such as industrial control, motor drive, user interface, alarm system, GPS, games and so on.
Microcontroller peripheral hardware circuit
The functions of Zhaoyi gd32150r-eval development board are basically the same as those of gd32103e Eval development board and gd32f107c Eval development board previously evaluated by aiban.com. I won't elaborate one by one. The key point is to look at the following differences.
Gd32150r-eval development board LCD
Remove the board LCD screen module, and you will find the concealed on-board button battery holder and SD card holder on the back of the LCD module. However, it is a little surprised here. The development board itself has a microSD card holder. Is it necessary to build another SD card holder? It's really unnecessary. Facts have proved that this SD card holder has its own table. Some signal lines are not connected and can't be used. I just don't know what it means to place it here. However, looking at the different colors of the two boards, it is easy to guess that they are not dedicated to the gd32150r-eval development board, but may be compatible modules on other boards.
Of course, in addition to the rough handling of LCD screen module, several other flash points are really good, such as infrared transceiver circuit, which greatly facilitates friends who like to toss and learn the principle of infrared remote control, or capacitive touch sensing (TSI), which is a very practical function in industrial control or household appliances, Before that, the st, ATMEL, Freescale and other development boards evaluated by Aiban have similar functions and principles. Interested friends can refer to ATMEL's qtouch principle. In addition, the next two functions, photoresist and HDMI CEC, also brighten my eyes, as shown in the figure below.
Photoresistor and HDMI CEC function
Photosensitive resistance is no stranger to everyone. The author is used to calling it as photoelectric sensor, which can be said to be the first batch of electronic components entering the sensor category. Why is it worthy of the author's praise on this board? Although photoresist is only a simple small circuit, for users who first contact the development board, it is very meaningful to use it to cooperate with other electronic components such as buzzer or led to realize the sound of light control or the lighting and extinguishing of LED. It can also promote fun in boring learning. I really don't know the original intention of the designer to design this circuit, But this really improves some fun of board development.
Recommended development board
Stm32f10 Starter Kit sub card for launching application development and evaluating STMICROELECTRONICS
Stm32f103b evaluation board, arm966e ™ ARM7TDMI ™ Kernel microcontroller function complete solution
HDMI CEC
Another HDMI CEC function may be unfamiliar to friends who have not contacted. CEC is consumer electronic control, and HDMI CEC is a protocol that provides advanced functions for all home audio-visual devices connected through HDMI line, that is, you can interact and control these devices connected through HDMI line and all connected appliances support CEC function through a remote control.
In the HDMI interface, the 13th pin is defined as CEC pin, which sends data at low level. From the gd32150r-eval development board, we can see that CEC controller adopts a single bidirectional line to receive and send data, and its CEC pin is connected to 3.3V voltage through a 27K Ω pull-up resistor, as shown in the figure below.
Principle block diagram of hdmi-cec controller
After reading the zero and zero total functions of Zhaoyi innovation gd32150r-eval development board, there is a feeling of "although the sparrow is small, it has all kinds of internal organs". From the side, it can also reflect Zhaoyi's attitude towards carefully developing its own products, which is worthy of reference for some innovative companies developing in new fields. The following figure is a complete picture of the hardware block diagram of the development board, which may omit some functions.
Hardware block diagram of gd32150r-eval development board
Power on start
As the author said at the beginning, the built-in MINIUSB cable provided by gd32150r-eval development board is too short, and the power on operation still needs the help of the "super long" MINIUSB cable moved by the author from other boards. After power on, the card's own program starts, and the LCD screen displays start 0. However, after beating for a long time, I don't understand what program is built in the factory, as shown in the following figure.
Gd32150r-eval development board factory built-in program
However, it doesn't matter. Zhaoyi provides quite a few routines, basically including all the functional demonstrations of the board. You can study it slowly later. Now it is necessary to introduce some preparations for the board before downloading the new program:
Hardware tools. At present, the interface on gd32150r-eval development board supports j-link or SWD download and debugging of st-link.
Software tools: gd32150r-eval development board supports the compilation, download, debugging and other operations of IAR or keil software commonly used in the market; If you only download the software, there is also the proprietary GD MCU ISP programmer software of Zhaoyi innovation company or the gigadevice MCU multi port download tool software suitable for mass production.
Configure the FLM configuration file of IDE tool, including keil and IAR (the configuration file is provided by Zhaoyi)
OK, the basic board development tools and file configuration are introduced. The author selects several representative routines to demonstrate. However, I had to complain before that. The author began to use keil IDE tool and clone version j-link hardware debugging tool. However, when you use it, you shake your hand and click the j-link firmware upgrade. As a result, you should know what happened. J-link hangs, but it can't be used for the time being. Fortunately, gd32150r-eval development board also supports st-link debugging tool, so the final result is to use the external SWD debugging tool on St board, Since the target board has its own power supply, at least three wires can be connected for SWD download, that is, data / clock / ground signal wires, as shown in the figure below.
Taking the capacitive inductive touch (TSI) routine as an example, loading the routine, we found that the domestic data is good, with Chinese notes, which can greatly facilitate the domestic development users.
Capacitance sensing touch (TSI) routine
Before downloading, we must select the correct hardware tools and FLM. The default hardware debugging tool of the routine is j-link. At this time, we need to set it to st-link and FLM to the corresponding gd32f1x0468, as shown in the figure below
FLM profile settings
After compiling and downloading, press the reset key on the board to run the newly downloaded program. You can see that the LCD screen displays an icon similar to the volume increase bar, and the corresponding progress bar appears by sliding your finger on the LCD screen on the touch sensitive bar, as shown in the figure below
Capacitance sensing touch (TSI) demonstration
Recommended development board
UC / os-iii STM32 development board, evaluation board based on stm32f107
Stevalmki116v1 evaluation board for evaluating audio, MEMS omnidirectional microphone
Next, let's take a look at the microSD card routine. The same step flow is shown in the figure below
MicroSD card routine test
Without j-link, I found that using st-link hardware debugging tool is also very good. Next, let's download the program with the GD MCU ISP programmer software tool of Zhaoyi. ISP download needs to connect the serial port COM1 and set the startup mode to SRAM startup mode, so it is necessary to short the boot0 jump cap to + 3.3V, as shown in the figure below
Connect the serial port COM1 and set boot0
Open ISP to download software
ISP download software interface
The default settings are basically unchanged. Click Next until
Our other product: