CH56X 32位系列MCU應用參考示例

應用設計:

1、CH569最小系統,FPGA對接典型電路

http://www.fszrt.cn/bbs/thread-86805-1.html


2、CH569/565評估版使用注意事項

http://www.fszrt.cn/bbs/thread-106742-1.html


示例代碼:

1,CH56X 主機通過(guò)AOA協(xié)議與安卓手機通訊,提供安卓端調試軟件和源碼。

icon_rar.gifCH563 AOA操作安卓設備.rar


2,CH56X通過(guò)SPI讀寫(xiě)SD卡,支持U盤(pán)文件系統庫。

icon_rar.gifCH563_SDCARD_FAT.rar


3,CH563做主機操作USB MIDI設備。

icon_rar.gifCH563操作USB MIDI.rar


4,CH563模擬U盤(pán)。

icon_rar.gifCH563模擬U盤(pán).rar


5,CH563讀寫(xiě)U盤(pán),并且通過(guò)TCP方式發(fā)送和接收數據,讀U盤(pán)數據通過(guò)TCP發(fā)出,接收的TCP數據寫(xiě)入U盤(pán)。

icon_rar.gifUDISK_FAT_TCP.rar


6、CH569/565 IAPdemo

icon_rar.gif56x_IAP_20220113_P1.zip


7、CH569/565 SD卡

icon_rar.gifCH569_SD.zip

電路原理圖:icon_pdf.gifCH569W-SD-R0-1v0.pdf


8、CH565/CH32V307 評估板DVP攝像頭購買(mǎi)選擇

http://www.fszrt.cn/bbs/thread-98402-1.html


9、CH565/569 DVP接口使用指南

http://www.fszrt.cn/bbs/thread-100961-1.html



有沒(méi)有器件支持包


您好 請教下大家有沒(méi)有用過(guò)CH563網(wǎng)絡(luò ) 做重連機制? 比如斷網(wǎng)后重連?


請問(wèn)是否可以下載CH563的芯片手冊?


獲取CH563手冊聯(lián)系025-52632854


CH563組播的例子有嗎?


有CH563的組播例程,您可以在官網(wǎng)下載CH563的例程包http://www.fszrt.cn/downloads/CH563EVT_ZIP.html?

EXAM -> NET -> MULTICAST 為組播程序。


參考STM32的例子,在CH32V307板子上收發(fā)包打不了時(shí)間戳呢.

請問(wèn)有PTP(1588)收發(fā)包的例子嗎?



CH563被動(dòng)并口例程和詳細說(shuō)明有沒(méi)有?


參考CH563EVT示例代碼:http://www.fszrt.cn/downloads/CH563EVT_ZIP.html



有沒(méi)有CH32V203F6F6 CAN 應用的例程,發(fā)我一下,謝謝:個(gè)人信息保護,已隱藏


你好 請問(wèn)有ch569模擬tf卡讀卡器 通過(guò)usb連接電腦的例程嗎 有的話(huà)麻煩發(fā)個(gè)人信息保護,已隱藏 謝謝


大家好,我調試CH565W程序,發(fā)現仿真器連接不上,報如下一些錯誤:

Open On-Chip Debugger 0.11.0+dev-02215-gcc0ecfb6d-dirty (2022-09-13-15:53)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.org/doc/doxygen/bugs.html

Info : only one transport option; autoselect 'jtag'

Ready for Remote Connections

Started by GNU MCU Eclipse

Info : Listening on port 6666 for tcl connections

Info : Listening on port 4444 for telnet connections

Info : WCH-Link-CH549? mod:RV version 2.7?

Info : WCH-Link version 2.6 is recommended

Error:? WCH-Link failed to connect with riscvchip

Error:? 1.Make sure the two-line debug interface has been opened. If not, set board to boot mode then use ISP tool to open it

Error:? 2.Please check your physical link connection

Error:? if your chip is CH32V00X,WCH-Link-CH549 does not support this chip, please use WCH-LinkE

我已經(jīng)在WCHISOStudio開(kāi)啟了 “兩線(xiàn)仿真接口”,且通過(guò)ISP可以看到程序正常運行,但是仿真器就是連接不上,哪位大佬可以幫我看看怎么回事,如下是我的代碼:

/********************************** (C) COPYRIGHT *******************************

* File Name? ? ? ? ? : Main.c

* Author? ? ? ? ? ? ?: WCH

* Version? ? ? ? ? ? : V1.0

* Date? ? ? ? ? ? ? ?: 2020/07/31

* Description :?

* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.

* SPDX-License-Identifier: Apache-2.0

*******************************************************************************/


#include "CH56x_common.h"


#define? FREQ_SYS? ?80000000


void GPIO_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast")));


#define normal 1? ? ?//普通輸入輸出

//#define interruption 1? ? //中斷使能



/*******************************************************************************

?* @fn? ? ? ?DebugInit

?*

?* @brief? ? Initializes the UART1 peripheral.

?*

?* @param? ? baudrate: UART1 communication baud rate.

?*

?* @return? ?None

?*/

void DebugInit(UINT32 baudrate)

{

UINT32 x;

UINT32 t = FREQ_SYS;

x = 10 * t * 2 / 16 / baudrate;

x = ( x + 5 ) / 10;

R8_UART1_DIV = 1;

R16_UART1_DL = x;

R8_UART1_FCR = RB_FCR_FIFO_TRIG | RB_FCR_TX_FIFO_CLR | RB_FCR_RX_FIFO_CLR | RB_FCR_FIFO_EN;

R8_UART1_LCR = RB_LCR_WORD_SZ;

R8_UART1_IER = RB_IER_TXD_EN;

R32_PA_SMT |= (1<<8) |(1<<7);

R32_PA_DIR |= (1<<8);

}


/*********************************************************************

?* @fn? ? ? main

?*

?* @brief? ?Main program.

?*

?* @return? none

?*/

int main()

{

SystemInit(FREQ_SYS);

Delay_Init(FREQ_SYS);


/* 配置串口調試 */

DebugInit(115200);

PRINT("Start @ChipID=%02X\r\n", R8_CHIP_ID );


#if normal? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?//通用輸入輸出


GPIOA_ModeCfg( GPIO_Pin_9, GPIO_Slowascent_PP_8mA );


while(1)

{

? ? GPIOA_ResetBits(GPIO_Pin_9);

mDelaymS(1000);

GPIOA_SetBits(GPIO_Pin_9);

mDelaymS(1000);

}


//GPIOB_ModeCfg( GPIO_Pin_24, GPIO_Slowascent_PP_8mA );

//while(1)

//{

//? ? GPIOB_ResetBits(GPIO_Pin_24);

//mDelaymS(300);

//GPIOB_SetBits(GPIO_Pin_24);

//mDelaymS(300);

//}

#endif



#if interruption? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?//中斷配置

GPIOB_ITModeCfg( 4, GPIO_ITMode_RiseEdge );

R32_PB_PD = (1<<4);

R8_GPIO_INT_FLAG = 0xff;

PRINT("R8_GPIO_INT_MODE=%x\r\n",R8_GPIO_INT_MODE);

PRINT("R8_GPIO_INT_POLAR=%x\r\n",R8_GPIO_INT_POLAR);

PRINT("R8_GPIO_INT_ENABLE=%x\r\n",R8_GPIO_INT_ENABLE);

PRINT("R8_GPIO_INT_FLAG=%x\r\n",R8_GPIO_INT_FLAG);

PFIC_EnableIRQ(GPIO_IRQn);

while(1)

{

mDelaymS(1);

}

#endif


while(1);


}




/*******************************************************************************

?* @fn? ? ? GPIO_IRQHandler

?*

?* @brief? ?Interruption function

?*

?* @return? None

?*/

void GPIO_IRQHandler(void)

{

PRINT("in!\r\n");

if(GPIOB_4_ReadITFlagBit(? ))

{

PRINT(" get a interruption!\r\n");

}

GPIOB_4_ClearITFlagBit(? );

}





聯(lián)系wsh@wch.cn


CH569上電后只能下載一次程序,第二次下載會(huì )報配置MCU失敗??捎薪鉀Q方案?


只有登錄才能回復,可以選擇微信賬號登錄
97精品依人久久久大香线蕉97-亚洲欧美日韩一区二区三区-国产亚洲欧美精品久久久-久久99精品久久久大学生-亚洲成a人片在线不卡一二三区 97精品依人久久久大香线蕉97-亚洲欧美日韩一区二区三区-国产亚洲欧美精品久久久-久久99精品久久久大学生-亚洲成a人片在线不卡一二三区