将TIM5的通道1配置为输入捕获模式,包含的操作不正确的是( )。
A: 使能GPIOA的时钟,RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOA, DISABLE);
B: 将PA0口初始化为端口复用模式,GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
C: 调用TIM_OcxPolarityConfig()函数,独立设置待捕获信号的极性
D: 获取TIM5的当前计数值,TIM_GetCapture1(TIM5);
A: 使能GPIOA的时钟,RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOA, DISABLE);
B: 将PA0口初始化为端口复用模式,GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
C: 调用TIM_OcxPolarityConfig()函数,独立设置待捕获信号的极性
D: 获取TIM5的当前计数值,TIM_GetCapture1(TIM5);
举一反三
- 将定时器配置为输入捕获模式,包含的操作不正确的是()。 A: 使能定时器和相应GPIO的时钟 B: 将相应IO口初始化为输入模式 C: 调用TIM_TimeBaseInit();函数,对基本定时功能进行初始化 D: 调用TIM_ICInit();函数,对输入捕获相关参数进行初始化
- 下列函数定义中,是正确的中断服务函数定义的是( )。 A: void tim (char t) interrupt 5 B: char tim () interrupt 0 C: void tim () interrupt 4 using 5 D: void tim () interrupt 2 using 3
- Tim:Hey,Hilary.Howisyour(1)___________thissemester? Hilary:Letmesee.Ihaveitrighthere.Itlooksprettybusy.IhavemathclassonTuesdayandThursdaymorning.OnMonday,WednesdayandFridayafternoonIhavephysics.Thosearemy(2)___________coursesbecauseI’maphysicsmajor. Tim:Howabout(3)___________classes?Areyoutakinganythingelse? Hilary:Yes,I’mtakingacourseinRomanhistoryasanelective.TheclassiseveryFridaymorning.Howaboutyou,Tim?Howisyourschedulethis(4)___________? Tim:It’scrazy!IhaveEnglishclasseveryday.IamtakingaShakespeareclass,too.Heismy(5)___________writer.It’sgoingtobeabusysemester. Hilary:Youcansaythatagain. Unit1
- 实现创建一个 JavaScript 数组的语法是 _________ A: var txt = newArray("tim","kim","jim") B: var txt = newArray(1:"tim",2:"kim",3:"jim") C: var txt = new Array="tim","kim","jim" D: var txt = newArray:1=("tim")2=("kim")3=("jim")
- Where is Tim?In a (1)________.What is another name for New York?The (2)_______.What does Tim say about the view?It's (3)_______.