熱插拔電路設(shè)計利器——MAX15091/MAX15091A詳解 在電子設(shè)備的實(shí)際應(yīng)用中,熱插拔功能的重要性日益凸顯。它允許在系統(tǒng)帶電運(yùn)行的情況下安全地插入或移除電路板,這不僅提高了系統(tǒng)的可維護(hù)性,還
發(fā)表于 02-09 10:40
?111次閱讀
, BSP_IO_LEVEL_LOW);
R_BSP_SoftwareDelay(100, BSP_DELAY_UNITS_MICROSECONDS);
}
實(shí)現(xiàn)跑馬燈效果的邏輯:定義顏色數(shù)組存儲 GRB 格式的紅
發(fā)表于 11-25 01:55
3842充電器電路圖詳解
發(fā)表于 09-12 16:50
?13次下載
... pter6/chapter6.html
因?yàn)榇碎_發(fā)板有IC CH340C 來進(jìn)行UART通信,建議用SWD接口和USB 轉(zhuǎn)TTL下載器進(jìn)行編程下載。
3.在keil中編程跑馬燈程序。
先在
發(fā)表于 09-11 07:53
,搭配UI軟體工具來燒錄或仿真。1、J1連接PC,燒錄RGB_LED跑馬燈程序
每一片EVB,出廠都帶有程序,上電可以運(yùn)行。
2、J1連接PC,可以在Keil直接仿真。
三、笙泉M0系列EVB
發(fā)表于 06-24 11:16
達(dá)夢數(shù)據(jù)庫常用管理SQL命令詳解
發(fā)表于 06-17 15:12
?7185次閱讀
一、電路分享二、電路詳解電路中電流采樣主要通過電阻R1和芯片LTC6102進(jìn)行1、LTC6102簡介LTC6102/LTC6102HV是多功能、高壓、高邊電流檢測放大器。高電源電壓額定
發(fā)表于 06-09 19:35
?1600次閱讀
打開RA4L1的原理圖,上面有3個LED燈
分別是
P601-- LED3
P610-- LED2
P609-- LED1
任何人都知道,這3燈都是高電平 “1”點(diǎn)亮 “0”熄滅,不解釋
打開瑞薩的SMART配置軟件進(jìn)行IO配置
3燈配置完成
點(diǎn)擊生成代碼
默認(rèn)我配置為熄滅
KEIL里面也顯示smart生成軟件生效了
修改LED功能代碼
添加LED文件
4。添加LED頭文件
根據(jù)原理圖引腳配置宏
5。實(shí)現(xiàn)LED1LED2LED3功能函數(shù)
#include \"led.h\"
/*函數(shù)說明:led1閃爍
*傳入?yún)?shù):無
*返回參數(shù):無
*/
void led_1_flicker(void)
{
LED1_lighting_up;
R_BSP_SoftwareDelay(500,BSP_DELAY_UNITS_MILLISECONDS);
LED1_lighting_off;
R_BSP_SoftwareDelay(500,BSP_DELAY_UNITS_MILLISECONDS);
}
/*函數(shù)說明:led2閃爍
*傳入?yún)?shù):無
*返回參數(shù):無
*/
void led_2_flicker(void)
{
LED2_lighting_up;
R_BSP_SoftwareDelay(500,BSP_DELAY_UNITS_MILLISECONDS);
LED2_lighting_off;
R_BSP_SoftwareDelay(500,BSP_DELAY_UNITS_MILLISECONDS);
}
/*函數(shù)說明:led3閃爍
*傳入?yún)?shù):無
*返回參數(shù):無
*/
void led_3_flicker(void)
{
LED3_lighting_up;
R_BSP_SoftwareDelay(500,BSP_DELAY_UNITS_MILLISECONDS);
LED3_lighting_off;
R_BSP_SoftwareDelay(500,BSP_DELAY_UNITS_MILLISECONDS);
}
#ifndef __led_H
#define __led_H
#include \"hal_data.h\"
/*********參數(shù)宏定義*********/
#define LED1 BSP_IO_PORT_06_PIN_09
#define LED2 BSP_IO_PORT_06_PIN_10
#define LED3 BSP_IO_PORT_06_PIN_01
/*********函數(shù)宏定義*********/
#define LED1_lighting_off R_IOPORT_PinWrite(&g_ioport_ctrl,LED1,BSP_IO_LEVEL_LOW)
#define LED1_lighting_upR_IOPORT_PinWrite(&g_ioport_ctrl,LED1,BSP_IO_LEVEL_HIGH)
#define LED2_lighting_off R_IOPORT_PinWrite(&g_ioport_ctrl,LED2,BSP_IO_LEVEL_LOW)
#define LED2_lighting_upR_IOPORT_PinWrite(&g_ioport_ctrl,LED2,BSP_IO_LEVEL_HIGH)
#define LED3_lighting_off R_IOPORT_PinWrite(&g_ioport_ctrl,LED3,BSP_IO_LEVEL_LOW)
#define LED3_lighting_upR_IOPORT_PinWrite(&g_ioport_ctrl,LED3,BSP_IO_LEVEL_HIGH)
/*********函數(shù)聲明*********/
void led_1_flicker(void);
void led_2_flicker(void);
void led_3_flicker(void);
#endif
主函數(shù)中添加功能
#include \"hal_data.h\"
#include \"usart9.h\"
#include \"RTT.h\"
#include \"led.h\"
FSP_CPP_HEADER
void R_BSP_WarmStart(bsp_warm_start_event_t event);
FSP_CPP_FOOTER
/*******************************************************************************************************************//**
main() is generated by the RA Configuration editor and is used to generate threads if an RTOS is used.This function
is called by main() when no RTOS is used.
*********************************************************************************************************************/
void hal_entry(void)
{
/ TODO: add your own code here */
UART9_Init();
//printf(\"\\\\r\\\\n歡迎來到瑞薩電子\\\\r\\\\n\");
//printf(\"很高興試用RA4L1開發(fā)板********\\\\r\\\\n\");
//printf(\"串口輸出打印 波特率115200\\\\r\\\\n\\\\r\\\\n\");
print(\"\\\\r\\\\nwelcome to renesas\\\\r\\\\n\");
print(\"USART output RA4L1 test\\\\r\\\\n\");
print(\"\\\\r\\\\n\");
while(1)
{
//printf(\"RA4L1 Sensor開發(fā)板\\\\r\\\\n\");
//print(\"RA4L1 Sensor develop board\\\\r\\\\n\");
led_1_flicker();
led_2_flicker();
led_3_flicker();
//R_BSP_SoftwareDelay(300, BSP_DELAY_UNITS_MILLISECONDS);
}
#if BSP_TZ_SECURE_BUILD
/* Enter non-secure code */
R_BSP_NonSecureEnter();
#endif
}
/*******************************************************************************************************************//**
This function is called at various points during the startup process.This implementation uses the event that is
called right before main() to set up the pins.
@param[in]event Where at in the start up process the code is currently at
**********************************************************************************************************************/
void R_BSP_WarmStart (bsp_warm_start_event_t event)
{
if (BSP_WARM_START_RESET == event)
{
#if BSP_FEATURE_FLASH_LP_VERSION != 0
/* Enable reading from data flash. */
R_FACI_LP->DFLCTL = 1U;
/* Would normally have to wait tDSTOP(6us) for data flash recovery. Placing the enable here, before clock and
* C runtime initialization, should negate the need for a delay since the initialization will typically take more than 6us. */
#endif
}
if (BSP_WARM_START_POST_C == event)
{
/* C runtime environment and system clocks are setup. */
/* Configure pins. */
R_IOPORT_Open(&IOPORT_CFG_CTRL, &IOPORT_CFG_NAME);
#if BSP_CFG_SDRAM_ENABLED
/* Setup SDRAM and initialize it. Must configure pins first. */
R_BSP_SdramInit(true);
#endif
}
}
#if BSP_TZ_SECURE_BUILD
FSP_CPP_HEADER
BSP_CMSE_NONSECURE_ENTRY void template_nonsecure_callable ();
/* Trustzone Secure Projects require at least one nonsecure callable function in order to build (Remove this if it is not required to build). */
BSP_CMSE_NONSECURE_ENTRY void template_nonsecure_callable ()
{
}
FSP_CPP_FOOTER
#endif
編譯,燒錄板子,可以看到LED1 LED2 LED3每隔500ms翻轉(zhuǎn)
詳情看視頻!?。。。?!
發(fā)表于 06-09 09:25
安徽京準(zhǔn):北斗衛(wèi)星同步時鐘的安裝與調(diào)試詳解
發(fā)表于 06-05 10:08
?1545次閱讀
SSH常用命令詳解
發(fā)表于 06-04 11:30
?2013次閱讀
在電子電路設(shè)計中,接地方式的選擇至關(guān)重要,它直接影響到電路的穩(wěn)定性、抗干擾能力和安全性。以下是電子電路設(shè)計中常用的幾種接地方式的詳解: 一、浮地 1. 定義:浮地是指
發(fā)表于 04-17 16:24
?2068次閱讀
芯片新關(guān)稅涉及的品牌/標(biāo)簽/產(chǎn)地—詳解
發(fā)表于 04-16 17:44
?1057次閱讀
Boost 電路的原理圖如下圖所示當(dāng)MOSFET開通時,電源給電感L充電,電感儲能,電容放電。電感上的電流增加量(電感線圈未飽和時)為:
其中:為占空比,為開關(guān)周期。
當(dāng)MOSFET關(guān)斷時,電感放電
發(fā)表于 03-25 14:15
該文檔為放大器電路原理及放大器電路圖內(nèi)容詳解資料,講解的還不錯,感興趣的可以下載看看~
(如果內(nèi)容有幫助可以關(guān)注、點(diǎn)贊、評論支持一下哦~)
發(fā)表于 03-20 11:55
開關(guān)電源原理及各功能電路詳解
一、 開關(guān)電源的電路組成::
開關(guān)電源的主要電路是由輸入電磁干擾濾波器(EMI)、整流濾波電路、功率變換
發(fā)表于 03-10 16:51
評論