STM32之GPIO和EXTI視頻
上傳時(shí)間: 2013-10-28
上傳用戶:forzalife
ST32 基于(英蓓特)STM32V100的EXTI程序 This example shows how to configure an external interrupt line. In this example, the EXTI line 9 is configured to generate an interrupt on each falling edge. In the interrupt routine a led connected to PC.06 is toggled. This led will be toggled due to the softawre interrupt generated on EXTI Line9 then at each falling edge.
標(biāo)簽: configure interrupt external example
上傳時(shí)間: 2016-11-17
上傳用戶:GavinNeko
//CM3 有 最多240個(gè)中斷(通常外部中斷寫作IRQs),就是 軟件上說的 IRQ CHANAELx(中斷通道號(hào)x) 每個(gè)中斷有自己的可編程的中斷優(yōu)先級(jí)【 有唯一對(duì)應(yīng)的 中斷優(yōu)先級(jí)寄存器 】. 由于CM3支持 硬件中斷嵌套,所以可以有 256 級(jí)的可編程優(yōu)先級(jí) 和 256級(jí)中斷嵌套【 書上稱:搶占(preempt) 優(yōu)先級(jí)】 所以大家可以設(shè): IRQ CHANAEL 0 通道 = 2 中斷優(yōu)先級(jí)WWDG 窗口定時(shí)器中斷 IRQ CHANAEL 1 通道 = 0 中斷優(yōu)先級(jí)PVD 聯(lián)到EXTI的電源電壓檢測(cè)(PVD)中斷 IRQ CHANAEL 3 通道 = 255 中斷優(yōu)先級(jí)RTC 實(shí)時(shí)時(shí)鐘(RTC)全局中斷 IRQ CHANAEL 6 通道 = 10 中斷優(yōu)先級(jí)EXTI0 EXTI線0中斷 ..... IRQ CHANAEL 239 通道 = (0<x<255) 中斷優(yōu)先級(jí)..
上傳時(shí)間: 2013-10-28
上傳用戶:redherr
This example shows how to update at regulate period the WWDG counter using theEarly Wakeup interrupt (EWI). The WWDG timeout is set to 262ms, refresh window set to 41h and the EWI isenabled. When the WWDG counter reaches 40h the EWI is generated and in the WWDGISR the counter is refreshed to prevent a WWDG reset and led connected to PC.07is toggled.The EXTI line9 is connected to PB.09 pin and configured to generate an interrupton falling edge.In the NVIC, EXTI line9 to 5 interrupt vector is enabled with priority equal to 0and the WWDG interrupt vector is enabled with priority equal to 1 (EXTI IT > WWDG IT). The EXTI Line9 will be used to simulate a software failure: once the EXTI line9event occurs (by pressing Key push-button on EVAL board) the correspondent interruptis served, in the ISR the led connected to PC.07 is turned off and the EXTI line9pending bit is not cleared. So the CPU will execute indefinitely EXTI line9 ISR andthe WWDG ISR will never be entered(WWDG counter not updated). As result, when theWWDG counter falls to 3Fh the WWDG reset occurs.If the EXTI line9 event don抰 occurs the WWDG counter is indefinitely refreshed inthe WWDG ISR which prevent from WWDG reset. If the WWDG reset is generated, after resuming from reset a led connected to PC.06is turned on. In this example the system is clocked by the HSE(8MHz).
上傳時(shí)間: 2013-11-11
上傳用戶:gundamwzc
STM8單片機(jī)開發(fā)板資料STM8S208RB DEMO軟件源碼+例程講解+開發(fā)板原理圖+芯片資料:'stm8板原理圖.pdf使用說明文件開發(fā)板介紹.pdf相關(guān)例程講解相關(guān)芯片資料相關(guān)輔助軟件軟件源碼程序AD(寄存器操作,連續(xù)轉(zhuǎn)換模式)ADC_OLEDBEEP 寄存器操作BEPPCAN For STVDCLKDS18B20EXTII2C_24C02I2C_24C64IWDG獨(dú)立看門狗KEYLCD1602LEDRADIOTIME1_pwmTime4_1Time4_2USART1AD應(yīng)用.pdfGPIO口操作.pdfI2C應(yīng)用.pdfIWDG_獨(dú)立看門狗.pdfMMA7455例程簡(jiǎn)單介紹.pdfSPI.pdfTIME1-PWM應(yīng)用.pdfTIME4應(yīng)用.pdfUSART應(yīng)用.pdf時(shí)鐘.pdf蜂鳴器應(yīng)用.pdf
標(biāo)簽: stm8 單片機(jī) 開發(fā)板 stm8s208rb demo
上傳時(shí)間: 2021-10-25
上傳用戶:qdxqdxqdxqdx
GD32F103的移植說明和開發(fā)指南,幫助新手快速了解GD32F103芯片,縮短上手時(shí)間。本教程結(jié)合官方的用戶手冊(cè)以及固件庫(kù)例程,通過實(shí)際例程講解以及實(shí)驗(yàn)現(xiàn)象來幫助讀者理解和使 用 GD32F130xx 這 個(gè) 系 列 的 芯 片 。 軟 件 平 臺(tái) 使 用 的 是 MDK-ARM 和 官 方 外 設(shè) 驅(qū) 動(dòng) 庫(kù) GD32F1x0_Firmware_Library_v3.1.0(庫(kù)函數(shù)開發(fā)),硬件使用技新 GD32F130G8U6 核心板 V1.0 和 GD-LINK 下載&調(diào)試器。 教程從開發(fā)平臺(tái)介紹、開發(fā)環(huán)境搭建、建立工程等基礎(chǔ)內(nèi)容,到 GD13F130xx 外設(shè)應(yīng)用,包括: GPIO應(yīng)用、EXTI應(yīng)用、CLK應(yīng)用、USART 應(yīng)用、TIMER 應(yīng)用、I2C應(yīng)用、SPI應(yīng)用、ADC應(yīng)用、FWDGT 應(yīng)用和 WWDGT 應(yīng)用等十大部分內(nèi)容。外設(shè)應(yīng)用部分的內(nèi)容都配有源碼,并配合硬件平臺(tái)進(jìn)行實(shí)驗(yàn)講 解。教程面對(duì)的對(duì)象是具有一定的 MCU 編程基礎(chǔ)以及 C 語言基礎(chǔ)的,主旨是幫助開發(fā)者快速入門和快速 開發(fā)使用 GD32F130xx 系列產(chǎn)品。
標(biāo)簽: gd32f103
上傳時(shí)間: 2022-06-18
上傳用戶:1208020161
教程從開發(fā)平臺(tái)介紹、開發(fā)環(huán)境搭建、建立工程等基礎(chǔ)內(nèi)容,到 STM8L051F3 相關(guān)外設(shè)應(yīng)用,包括:GPIO應(yīng)用、EXTI應(yīng)用、CLK應(yīng)用、USART應(yīng)用、TIMER應(yīng)用、I2C應(yīng)用、SPI應(yīng)用、ADC應(yīng)用、FWDGT應(yīng)用和 WWDGT 應(yīng)用等十大部分內(nèi)容。外設(shè)應(yīng)用部分的內(nèi)容都配有源碼,并配合硬件平臺(tái)進(jìn)行實(shí)驗(yàn)講解。教程面對(duì)的對(duì)象是具有一定的 MCU 編程基礎(chǔ)以及 C 語言基礎(chǔ)的,主旨是幫助開發(fā)者快速入門和快速開發(fā)使用 STM8L051F3。
標(biāo)簽: STM8L051F3
上傳時(shí)間: 2022-06-30
上傳用戶:
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1