New Definition TBK-RD8T3x Development Evaluation Board - Review
[Copy link]
I recently applied for a TBK-RD8T3x development evaluation board on the New Definition official website. The board comes with a touch button program, which is very sensitive and works well. Here is some information about this development board.
Development Board Introduction
TBK-RD8T 3x
Introduction : The newly defined TBK-RD8T3x core development board uses an enhanced high-speed 1T 8051 core and an industrial-grade Flash microcontroller RD8T37P48RJ with integrated touch key functions.
Development board features:
The main MCU chip model of the development board is RD8T37P48RJ, which integrates the touch module and ISP burning module.
1) Touch function: 6 normal touch buttons, 1 slider touch module
1. Touch slider function: When you slide your finger from left to right on the slider, the indicator light corresponding to the slider lights up and gradually lights up as the finger moves. When you lift your finger, the indicator light goes out.
2. Touch button function: After pressing the corresponding TK button, the indicator light corresponding to the button lights up. Press the button again and the indicator light goes out.
2) Programming function: ISP programming/reserved 4-wire programming (VDD/DIO/GND/CLK)
Evaluation Introduction
The content of my evaluation was mainly the control of the GPIO pins. The specific phenomenon was that the LED light on the board flashed at intervals of 1 second.
First is the environment configuration. I use keil to write programs + ISP to burn programs. Regarding the keil part, you need to install C51. Note that you need to install C51V961. The old version will not work and will not compile. Then you also need to install a new definition keil plug-in, which is similar to packbao and can compile programs for new definition chips.
C51V961 configuration tutorial C51V961 configuration tutorial link. Note that if you don't have Keil, just follow this tutorial to install it. If you have Keil, just install the required parts.
After the environment is configured, the next step is to write the program. I cleared the program based on the original factory demo, leaving only the sample framework, and then wrote the GPIO program. This article only introduces the GPIO program part.
The above picture is the main function part. The framework is very clear. GPIO is initialized, and then the LED pin is controlled to be inverted. After a delay of one second, it is inverted again to realize the turning on and off of the LED light.
The following is an introduction to the GPIO initialization function:
Configure P20-P25 pins for push-pull output and the GPIO initialization function ends.
In the while loop, the LED1-6 are inverted once a second. This operation directly operates the pin register. Take LED1 as an example. LED1 corresponds to pin P21. In the CustomType.h file, the macro definition defines LED1 as P21. In the RD8T36x_C.H file, P21 is defined as P2^1 through macro definition. In the RD8T36x_C.H file, P2 is defined as 0XA0 through macro definition, corresponding to the P2 port data register. Therefore, by modifying this register, the high and low level conversion of the GPIo pin can be controlled. Therefore, in the while loop, by inverting LED1-6, the LED light can be controlled. The location of the corresponding macro definition in the file is shown in the figure below.
Finally, the delay function part, only through the empty program to achieve the delay, the delay time is 1ms, through the input parameters to set the delay in ms, because this program is only for approximate testing, so the time is not accurate. The delay function is shown in the figure below.
After the compilation is completed, the next step is burning. The serial port burning needs to use the .hex file. You need to ensure that the following settings are enabled in Keil.
After compiling, a .hex file will be generated in the Output folder of the project file, which will be used for ISP burning.
The burning steps are shown in the figure below. First, change the chip model to RD8T37P48 (it should be the default RD8T37P48 when opened), then change the baud rate to 115200 and select the corresponding serial port, then find the corresponding directory to import the file, and finally update the motor program. At this point, the burning is completed.
The above is the complete content of this evaluation. The factory DEMO and the evaluation project documents are attached.
Demo:
This review:
The evaluation video phenomenon is as follows:
新定义测评
|