freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

嵌入式系統(tǒng)設(shè)計課設(shè)報告(編輯修改稿)

2025-08-30 23:54 本頁面
 

【文章內(nèi)容簡介】 初始化ADC模塊 ADC_setVoltRefSrc(myAdc, ADC_VoltageRefSrc_Int)。 ADC_powerUp(myAdc)。 ADC_enableBandGap(myAdc)。 ADC_enableRefBuffers(myAdc)。 ADC_enable(myAdc)。 //溫度轉(zhuǎn)換使能 ADC_enableTempSensor(myAdc)。 //soc配置 ADC_setSocChanNumber(myAdc, ADC_SocNumber_0, ADC_SocChanNumber_A5)。 ADC_setSocSampleWindow(myAdc, ADC_SocNumber_0, ADC_SocSampleWindow_7_cycles)。 ADC_setSocTrigSrc(myAdc, ADC_SocNumber_0, ADC_SocTrigSrc_EPWM1_ADCSOCA)。 //PWM配置 PWM_setSocAPulseSrc(myPwm1,PWM_SocPulseSrc_CounterEqualZero)。 PWM_setSocAPeriod(myPwm1,PWM_SocPeriod_FirstEvent)。 PWM_enableSocAPulse(myPwm1)。}void MY_ADC_INT_config(void){ PIE_registerPieIntHandler(myPie,PIE_GroupNumber_10,PIE_SubGroupNumber_1,(intVec_t)amp。(MY_ADC_isr))。 //模塊中斷配置 ADC_setIntPulseGenMode(myAdc, ADC_IntPulseGenMode_Prior)。 ADC_setIntSrc(myAdc,ADC_IntNumber_1, ADC_IntSrc_EOC0)。 ADC_setIntMode(myAdc, ADC_IntNumber_1, ADC_IntMode_ClearFlag)。 //ADC中斷使能 ADC_enableInt(myAdc,ADC_IntNumber_1)。 //PIE開關(guān)的允許 PIE_enableInt(myPie, PIE_GroupNumber_10, PIE_InterruptSource_ADCINT_10_1)。 //CPU全局中斷 CPU_enableInt(myCpu,CPU_IntNumber_10)。} // end of file/**/ifndef _MY_ADC_H_define _MY_ADC_H_// the includesinclude // driverinclude F2802x_Component/include User_Component/User_Mcu/ifdef __cplusplusextern C {endififndef TARGET_GLOBAL define TARGET_EXT externelse define TARGET_EXTendif/* hardware description of the example module */TARGET_EXT void MY_ADC_initial(void)。TARGET_EXT void MY_ADC_config(void)。TARGET_EXT void MY_ADC_INT_config(void)。TARGET_EXT interrupt void MY_ADC_isr(void)。 //redefined in /*end of hardware description */TARGET_EXT uint16_t MY_ADC。TARGET_EXT uint16_t SET_TEMP。/* end of globals */ifdef __cplusplus}endif // extern Cendif // end of _EXAMPLE_H_ definition④/**/// the includesinclude User_Component/MY_CAP/include User_Component/User_Mcu/ void MY_CAP_initial(void){}void MY_CAP_config(void){ GPIO_setPullUp(myGpio, GPIO_Number_5, GPIO_PullUp_Enable)。 GPIO_setQualification(myGpio, GPIO_Number_5, GPIO_Qual_Sync)。 GPIO_setMode(myGpio, GPIO_Number_5, GPIO_5_Mode_ECAP1)。 CLK_enableEcap1Clock(myClk)。 CAP_disableInt(myCap, CAP_Int_Type_All)。 // 禁止CAP中斷 CAP_clearInt(myCap, CAP_Int_Type_All)。 // 清除CAP中斷標(biāo)志位 CAP_disableCaptureLoad(myCap)。 // Disable CAP1CAP4 register loads CAP_disableTimestampCounter(myCap)。 // Make sure the counter is stopped // Configure peripheral registers CAP_setCapContinuous(myCap)。 // continuous CAP_setStopWrap(myCap, CAP_Stop_Wrap_CEVT4)。// Stop at 3 events CAP_setCapEvtPolarity(myCap, CAP_Event_1, CAP_Polarity_Rising)。 // 捕獲上升沿 CAP_setCapEvtPolarity(myCap, CAP_Event_2, CAP_Polarity_Falling)。 // 捕獲下降沿 CAP_setCapEvtPolarity(myCap, CAP_Event_3, CAP_Polarity_Rising)。 // 捕獲上升沿 CAP_setCapEvtReset(myCap, CAP_Event_3, CAP_Reset_Enable)。 // 重置計數(shù)器確保計數(shù)器不會溢出 CAP_enableTimestampCounter(myCap)。 // 打開計數(shù)器 CAP_enableCaptureLoad(myCap)。 // Enable CAP1CAP4 register loads /* CAP_enableInt(myCap, CAP_Int_Type_CEVT3)。 // 3個捕獲點(diǎn)之后發(fā)生中斷 // Register interrupt handlers in the PIE vector table PIE_registerPieIntHandler(myPie, PIE_GroupNumber_4, PIE_SubGroupNumber_1, (intVec_t)amp。ecap1_isr)。 // Enable CPU INT4 which is connected to ECAP14 INT: CPU_enableInt(myCpu, CPU_IntNumber_4)。 // Enable eCAP INTn in the PIE: Group 3 interrupt 16 PIE_enableCaptureInt(myPie)。 CPU_enableGlobalInts(myCpu)。 */}void MY_CAP_INT_config(void){ CAP_enableInt(myCap, CAP_Int_Type_CEVT3)。 // 3 events = interrupt // Register interrupt handlers in the PIE vector table PIE_registerPieIntHandler(myPie, PIE_GroupNumber_4, PIE_SubGroupNumber_1, (intVec_t)amp。MY_CAP_isr)。 // Enable CPU INT4 which is connected to ECAP14 INT: CPU_enableInt(myCpu, CPU_IntNumber_4)。 // Enable eCAP INTn in the PIE: Group 3 interrupt 16 PIE_enableCaptureInt(myPie)。 CPU_enableGlobalInts(myCpu)。}// end of file/**/ifndef _MY_CAP_H_define _MY_CAP_H_// the includesinclude // driverinclude F2802x_Component/ifdef __cplusplusextern C {endififndef TARGET_GLOBAL define TARGET_EXT externelse define TARGET_EXTendif/* hardware description of the example module */TARGET_EXT void MY_CAP_initial(void)。TARGET_EXT void MY_CAP_config(void)。TARGET_EXT void MY_CAP_INT_con
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1