# Infineon Psoc6-evaluationkit-062S2 說明
## 簡介
本文檔為 `RT-Thread` 為 `PSoC6 CY8CKIT-062S2-43012`開發(fā)板提供的 BSP (板級支持包) 說明。
This is a fast display driver for interfacing ILI9341 LCD display with infineon microcontroller over an 8bit parallel (8080-II/I) bus. It's mainly written for my personal usage.
## 開發(fā)板介紹
`Psoc6-evaluationkit-062S2` 是 RT-Thread 聯(lián)合英飛凌推出的一款集成32位雙核CPU子系統(tǒng)( ARM Cortex-M4 和 ARM Cortex-M0)的開發(fā)板,其具有單周期乘法的150-MHz Arm Cortex-M4F CPU (浮點和存儲器保護單元),100-MHz Cortex M0+ CPU,帶單周期乘法和MPU,可以充分發(fā)揮 PSoC6 雙核芯片性能。
該開發(fā)板核心 **板載資源** 如下:
- MCU:CY8C624ABZI-S2D44,Cortex-M4主頻 150MHz,Cortex-M0主頻 100MHz,2MB Flash 和 1MB SRAM
MCU手冊更多詳細信息請參考文檔 [PSoC 6 MCU: CY8C62x8, CY8C62xA Datasheet (infineon.com)](https://www.infineon.com/dgdl/Infineon-PSOC_6_MCU_CY8C62X8_CY8C62XA-DataSheet-v17_00-EN.pdf?fileId=8ac78c8c7d0d8da4017d0ee7d03a70b1)
- 板載資源:microSD card , 觸摸滑條,Arduino 接口
- 開發(fā)環(huán)境:ModusToolbox 2.0/MDK V5
PSoC? Creator? 下載鏈接 [ModusToolbox? Software - Infineon Technologies](https://www.infineon.com/cms/en/design-support/tools/sdk/modustoolbox-software/)
## 外設支持
本 BSP 目前對外設的支持情況如下:
| **片上外設** | **支持情況** | **備注** |
| :----------: | :----------: | :------: |
| USB 轉(zhuǎn)串口 | 支持 | UART0 |
| GPIO | 支持 | — |
| UART | 支持 | UART0-5 |
| Touch | 支持 | 觸摸滑條 |
## 目前支持
- [x] Support Arduino (simple, there are a few funtions to use ardino in rtt sdk)
- [x] LCD display (8080, ILI9341)
- [ ] ...
## 快速上手
本 BSP 是以 `VS Code` 和 `RT-Thread Studio` 為開發(fā)環(huán)境,接下來介紹如何將系統(tǒng)運行起來。
### VS Code 開發(fā)
#### 硬件連接
使用數(shù)據(jù)線連接開發(fā)板到 PC。
#### 編譯下載
## 運行結(jié)果
下載程序成功之后,系統(tǒng)會自動運行。打開終端工具串口助手,選擇波特率為 115200。復位設備后,而且在終端上可以看到 `RT-Thread` 的輸出信息:
```bash
| /
- RT - Thread Operating System
/ | 4.1.1 build Jul 25 2022 18:03:35
2006 - 2022 Copyright by RT-Thread team
msh >
If you want to show lcd demo, you can input lcd_demo
to entry, see:
| /
- RT - Thread Operating System
/ | 4.1.1 build Jul 25 2022 18:03:35
2006 - 2022 Copyright by RT-Thread team
msh > lcd_demo
msh >
demo:
代碼
Define pinouts to connect LCD board.
uint8_t LCD_CS = A3; // Chip Select goes to Analog 3
uint8_t LCD_CD = A2; // Command/Data goes to Analog 2
uint8_t LCD_WR = A1; // LCD Write goes to Analog 1
uint8_t LCD_RD = A0; // LCD Read goes to Analog 0
uint8_t LCD_RESET = A4; // Can alternately just connect to Arduino's reset pin
uint8_t d8[] = {D8, D9, D2, D3, D4, D5, D6, D7}; // write/read the data of 8 pinouts
TFTLCD tft = TFTLCD(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET, 240, 320, d8);
tft.begin()
: initialize the lcd device.tft.setRotation(x)
: set 0-3
, set rotatation.tft.fillScreen(color)
: set color to full background.tft.drawPixel(x, y, color)
:tft.drawLine(x,y,w,h,l,color)
: set position to (x,y)
, set width to w
, set height to h
, set line width to l
.tft.fillRect(x,y,w,h,color)
: same as drawLine
usage.tft.drawRectangle(x,y,w,h,color)
: same to drawLine
.tft.drawChar(x,y,char,front_color,back_color,font,is_bg)
: font
: see application/font.tft.drawString(x,y,string,front_color)
Can see lcd sources to get information.
審核編輯 黃宇
-
英飛凌
+關注
關注
67文章
2227瀏覽量
139145 -
lcd
+關注
關注
34文章
4438瀏覽量
168475 -
開發(fā)板
+關注
關注
25文章
5126瀏覽量
98320
發(fā)布評論請先 登錄
相關推薦
![](https://file1.elecfans.com/web2/M00/C3/27/wKgZomXpvCqAIS55AAP_IGR8Jw4421.png)
ILI9341液晶控制器詳解
用fsmc模擬8080協(xié)議來驅(qū)動ILI9341顯示屏幕的步驟簡析
【新品發(fā)布】英飛凌PSoC 6 RTT物聯(lián)網(wǎng)開發(fā)板內(nèi)容詳解
【新品試用】英飛凌PSoC 6 RTT開發(fā)板試用活動
【英飛凌PSoC 6 RTT開發(fā)板試用】+開箱測試
ILI9341的使用之【二】ILI9341介紹
![<b class='flag-5'>ILI9341</b>的使用之【二】<b class='flag-5'>ILI9341</b>介紹](https://file.elecfans.com/web1/M00/D9/4E/pIYBAF_1ac2Ac0EEAABDkS1IP1s689.png)
ILI9341的使用之【一】TFT-LCD原理(轉(zhuǎn)載)
![<b class='flag-5'>ILI9341</b>的使用之【一】TFT-<b class='flag-5'>LCD</b>原理(轉(zhuǎn)載)](https://file.elecfans.com/web1/M00/D9/4E/pIYBAF_1ac2Ac0EEAABDkS1IP1s689.png)
ILI9341的使用之【三】ILI9341系統(tǒng)通信接口模式操作詳解
![<b class='flag-5'>ILI9341</b>的使用之【三】<b class='flag-5'>ILI9341</b>系統(tǒng)通信接口模式操作詳解](https://file.elecfans.com/web1/M00/D9/4E/pIYBAF_1ac2Ac0EEAABDkS1IP1s689.png)
ILI9341顯示和LOLIN D32載板開源
![<b class='flag-5'>ILI9341</b>顯示和LOLIN D32載<b class='flag-5'>板</b>開源](https://file.elecfans.com/web1/M00/D9/4E/pIYBAF_1ac2Ac0EEAABDkS1IP1s689.png)
SPI:在ILI9341 TFT LCD上顯示PM2.5濃度
![SPI:在<b class='flag-5'>ILI9341</b> TFT <b class='flag-5'>LCD</b>上顯示PM2.5濃度](https://file.elecfans.com/web1/M00/D9/4E/pIYBAF_1ac2Ac0EEAABDkS1IP1s689.png)
帶有ILI9341的2.4英寸LCD顯示屏的留言板
![帶有<b class='flag-5'>ILI9341</b>的2.4英寸<b class='flag-5'>LCD</b>顯示屏的留言<b class='flag-5'>板</b>](https://file.elecfans.com/web1/M00/D9/4E/pIYBAF_1ac2Ac0EEAABDkS1IP1s689.png)
評論