qoistoochee128

[Hangshun Training Camp] HK32F103C8T6 core board and ink screen motherboard

 
Overview

1. HK32F103C8T6 core board

The core board uses the C8T6, CBT6 and CBT6A chips of HK32F103. All GPIO ports are led out, the front layout is as symmetrical as possible, and the circuit components are placed at the bottom. The front is simple and the components at the bottom are arranged in a robot shape.

  1. Using AMS1117 linear voltage regulator chip to convert 5V to 3.3V
  2. Type-C interface
  3. CH340C chip with circuit enables one-click serial port download
  4. Front SWD interface and BOOT0 button, BOOT1 is grounded
  5. Power light PWR and LED light connected to PC13
IMG20210326194357.jpg IMG20210626165114.jpg
IMG20210706164930.jpg

2. 2.9-inch ink screen display module

The 2.9-inch ink screen display module includes the ink screen FPC24 interface to SPI circuit, Qualcomm GT30L32S4W chip circuit, Micro SD card holder and 3 button circuits.

  1. Align the patch header with the core board pins
  2. The Qualcomm GT30L32S4W chip contains GB2312 encoded Chinese characters, which are arranged horizontally in Song style (can be converted into vertical layout displayed on the ink screen through the code). The Chinese character lattice sizes are 12x12, 16x16, 24x24, and 32x32.
  3. Micro SD card slot circuit
  4. Two patch horizontal switches control the power supply of the font module and SD card module, and connect LED prompts (make up an RGB
  5. 2.9-inch ink screen IO resource allocation
EP_SDI EP_SCLK EP_CS EP_D/C EP_RES EP_BUSY
PA0 PA1 PA2 PA3 PA4 PA5

6. The SD card uses the SPI2 of the core board

SD_CS SD_SCK SD_MISO SD_MOSI
PB12 PB13 PB14 PB15

7.GT font chip uses IO to simulate SPI

GT_CS GT_SO GT_SI GT_SCK
PB5 PB6 PB7 PB8



IMG20210326194426.jpg 1625561648281.jpg

3. Programming log

March 16, 2021
  1. Complete core board minimum project creation, without using standard library, register version project
  2. Complete functional verification of GPIO and USART
March 17, 2021
  1. completion delay function
March 21, 2021
  1. Completed transplanting the ink screen module driver
  2. Write an algorithm to convert the horizontal dot matrix of Qualcomm font chip GT30L32S4W into a vertical dot matrix
March 24, 2021
  1. Complete the writing of Qualcomm font driver
March 25, 2021
  1. Use the ink screen module to find the 16x16 dot matrix offset address of GB2312 Chinese characters (junk Qualcomm font library, the offset address is not mentioned in the specification book)
  2. Write a function for the ink screen module to display Chinese characters, automatically wrap lines, and display each line in a round-robin manner
March 26-29, 2021

Migrate SD card driver

  1. Tried software SPI driver, failed
  2. Tried hardware SPI to drive a separate SD card module, but failed (it was finally found that there was a problem with the SD card module)
June 17, 2021
  1. Implement SD card driver
  2. Redraw the board and assign pins, draw the motherboard, and print the board
June 18, 2021
  1. Start porting the FatFs system
June 23, 27, 28, 30, 2021
  1. FatFs system transplantation is completed, version 0.14, but the Chinese mode cannot be selected because the system Chinese font size is more than 500KB, while HK32CBT6 is only 128KB, so the Chinese font needs to be transferred elsewhere and the ff_oem2uni and ff_uni2oem functions in the ffunicode.c file need to be changed.
  2. FatFs still has some minor bugs
  3. Write a program to read the TXT file in the SD card through the FatFs system, record the read offset pointer, and continuously display the Chinese characters of the novel on the ink screen without garbled characters.
July 1-5, 2021
  1. Organize the code and encapsulate it into functions
  2. Implement SD card file directory display and selection

updating. . .

IMG20210326194637.jpg IMG20210326194518.jpg

4. Video recording

| January 17th  recorded the realization of local brushing and one pixel operation of the ink screen module | February 21st  recorded the embedded English font and its application and display on the ink screen | April 19th  recorded the implementation of the Chinese font and the display of Chinese on the ink screen | Recorded on July 5th:  Writing a program to read novels after transplanting the SD card and FatFs system



参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2024-11-14 23:31:03

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号