-
CW32L083 systick如何实现微秒级延时
准备驱动18B20单总线,想使用systick实现微秒级的定时器,哪位大佬可以指点一下吗,如果有代码更加好,谢谢了!
2023-06-11 7 -
两个相同的MCU如何通信
两个相同的MCU,一个作为控制芯片,一个作为显示驱动芯片,这两个芯片怎么通信
2021-04-22 11 -
HK32F030MF4P6 PC3-TIM1_CH3 PWM 没输出
voidTIM1_WindPwm_Config(void)//16KTIM1_CH3{GPIO_InitTypeDefGPIO_InitStructure;TIM_TimeBaseInitTypeDefTIM_TimeBaseStructure;TIM_OCInitTypeDefTIM_OCInitStructure;RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOC,ENABLE);RCC_APB2PeriphClockCmd(RCC_APB2Periph_TIM1,ENABLE);//使能IOMUX时钟RCC_APB1PeriphClockCmd(RCC_APB1Periph_IOMUX,ENABLE);GPIO_IOMUX_PinAFConfig(GPIOC,GPIO_PinSource3,IOMUX_PC3_TIM1CH3);GPIO_InitStructure.GPIO_Mode=GPIO_Mode_AF;GPIO_InitStructure.GPIO_OType=GPIO_OType_PP;GPIO_InitStructure.GPIO_Pin=GPIO_Pin_3;GPIO_InitStructure.GPIO_PuPd=GPIO_PuPd_NOPULL;//GPIO_PuPd_DOWN;GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz;GPIO_Init(GPIOC,&GPIO_InitStructure);GPIO_PinAFConfig(GPIOC,GPIO_PinSource3,GPIO_AF_3);/*TimeBaseconfiguration*/TIM_TimeBaseStructure.TIM_Prescaler=0;TIM_TimeBaseStructure.TIM_CounterMode=TIM_CounterMode_Up;TIM_TimeBaseStructure.TIM_Period=TIM1_PERIOD-1;TIM_TimeBaseStructure.TIM_ClockDivision=0;TIM_TimeBaseStructure.TIM_RepetitionCounter=0;TIM_TimeBaseInit(TIM1,&TIM_TimeBaseStructure);/*Channel1,2,3and4ConfigurationinPWMmode*/TIM_OCInitStructure.TIM_OCMode=TIM_OCMode_PWM2;TIM_OCInitStructure.TIM_OutputState=TIM_OutputState_Enable;TIM_OCInitStructure.TIM_OutputNState=TIM_OutputNState_Disable;//TIM_OutputNState_Enable;TIM_OCInitStructure.TIM_Pulse=1000;TIM_OCInitStructure.TIM_OCPolarity=TIM_OCPolarity_Low;//TIM_OCInitStructure.TIM_OCNPolarity=TIM_OCNPolarity_Low;TIM_OCInitStructure.TIM_OCIdleState=TIM_OCIdleState_Set;//TIM_OCInitStructure.TIM_OCNIdleState=TIM_OCIdleState_Reset;TIM_OC3Init(TIM1,&TIM_OCInitStructure);/*TIM1counterenable*/TIM_Cmd(TIM1,ENABLE);/*TI
2021-03-25 2 -
msp430AFE253IPW 芯片没有烧写软件时读出来的数据代表什么?
msp430AFE253IPW芯片没有烧写软件时读出来的数据代表什么?红色字体代表什么?@1000AA55FF3FCDABAA553412FFFFFFFFFFFF。。。。。。。。。。。。。。。。。。。。。。。FFFFFFFFFFFFFFFFFFFFA88E998DFFFF@C000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
2021-03-17 8