由于ch32F103C8T6的芯片,只有内核是中国生产的,并且这个是模仿STM32F103C8T6做的,所以它的使用和STM32F103C8T6的使用一模一样,所以STM32F103C8T6的使用手册等所以资料完全和ch32F103C8T6一样,所以可以使用下面这个手册。
1.系统框架图:
(1.这解释了:MP3.c文件的GPIO设置。)
/*** @brief Clears the TIMx's interrupt pending bits.* @param TIMx: where x can be 1 to 17 to select the TIM peripheral.* @param TIM_IT: specifies the pending bit to clear.* This parameter can be any combination of the following values:* @arg TIM_IT_Update: TIM1 update Interrupt source* @arg TIM_IT_CC1: TIM Capture Compare 1 Interrupt source* @arg TIM_IT_CC2: TIM Capture Compare 2 Interrupt source* @arg TIM_IT_CC3: TIM Capture Compare 3 Interrupt source* @arg TIM_IT_CC4: TIM Capture Compare 4 Interrupt source* @arg TIM_IT_COM: TIM Commutation Interrupt source* @arg TIM_IT_Trigger: TIM Trigger Interrupt source* @arg TIM_IT_Break: TIM Break Interrupt source* @note* - TIM6 and TIM7 can generate only an update interrupt.* - TIM9, TIM12 and TIM15 can have only TIM_IT_Update, TIM_IT_CC1,* TIM_IT_CC2 or TIM_IT_Trigger. * - TIM10, TIM11, TIM13, TIM14, TIM16 and TIM17 can have TIM_IT_Update or TIM_IT_CC1. * - TIM_IT_Break is used only with TIM1, TIM8 and TIM15. * - TIM_IT_COM is used only with TIM1, TIM8, TIM15, TIM16 and TIM17. * @retval None*/
void TIM_ClearITPendingBit(TIM_TypeDef* TIMx, uint16_t TIM_IT)
{
/* Check the parameters */assert_param(IS_TIM_ALL_PERIPH(TIMx));assert_param(IS_TIM_IT(TIM_IT));/* Clear the IT pending Bit */TIMx->SR = (uint16_t)~TIM_IT;
}
为什么会用到USART串口通信?
4.
5.
6.
7.
所有外设都需要开启使能吗?不是外设的,在使用的时候,就不需要开启使能了?怎样判断一个东西是不是外设呢?
8.
那些东西可以接受中断?
9.
10.