전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN2776 데이터시트(PDF) 11 Page - STMicroelectronics

부품명 AN2776
상세설명  The purpose of this application note is to explain
PDF  20 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2776 데이터시트(HTML) 11 Page - STMicroelectronics

Back Button AN2776 Datasheet HTML 7Page - STMicroelectronics AN2776 Datasheet HTML 8Page - STMicroelectronics AN2776 Datasheet HTML 9Page - STMicroelectronics AN2776 Datasheet HTML 10Page - STMicroelectronics AN2776 Datasheet HTML 11Page - STMicroelectronics AN2776 Datasheet HTML 12Page - STMicroelectronics AN2776 Datasheet HTML 13Page - STMicroelectronics AN2776 Datasheet HTML 14Page - STMicroelectronics AN2776 Datasheet HTML 15Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 11 / 20 page
background image
AN2776
FWLib V1.0 to V2.0 migration steps
11/20
TIM_ICInitStructure.TIM_ICSelection = TIM_ICSelection_DirectTI;
TIM_ICInitStructure.TIM_ICPrescaler = TIM_ICPSC_DIV1;
TIM_ICInitStructure.TIM_ICFilter = 0x0;
TIM_ICInit(TIM3, &TIM_ICInitStructure);
TIM_SelectInputTrigger(TIM3, TIM_TS_TI1FP1);
TIM_SelectSlaveMode(TIM3, TIM_SlaveMode_Reset);
/* TIM enable counter */
TIM_Cmd(TIM3, ENABLE);
In FWLib V2.0, the TIM_ICMode member of the TIM_ICInitTypeDef structure was removed:
TIM_ICInitStructure.TIM_Channel = TIM_Channel_1;
TIM_ICInitStructure.TIM_ICPolarity = TIM_ICPolarity_Rising;
TIM_ICInitStructure.TIM_ICSelection = TIM_ICSelection_DirectTI;
TIM_ICInitStructure.TIM_ICPrescaler = TIM_ICPSC_DIV1;
TIM_ICInitStructure.TIM_ICFilter = 0x0;
TIM_ICInit(TIM3, &TIM_ICInitStructure);
TIM_SelectInputTrigger(TIM3, TIM_TS_TI1FP1);
TIM_SelectSlaveMode(TIM3, TIM_SlaveMode_Reset);
/* TIM enable counter */
TIM_Cmd(TIM3, ENABLE);
PWM input capture configuration
Typical code for TIM PWM input capture configuration based on FWLib V1.0:
TIM_ICInitStructure.TIM_ICMode = TIM_ICMode_PWMI;
TIM_ICInitStructure.TIM_Channel = TIM_Channel_1;
TIM_ICInitStructure.TIM_ICPolarity = TIM_ICPolarity_Rising;
TIM_ICInitStructure.TIM_ICSelection = TIM_ICSelection_DirectTI;
TIM_ICInitStructure.TIM_ICPrescaler = TIM_ICPSC_DIV1;
TIM_ICInitStructure.TIM_ICFilter = 0x0;
TIM_ICInit(TIM2, &TIM_ICInitStructure);
TIM_SelectInputTrigger(TIM2, TIM_TS_TI1FP1);
TIM_SelectSlaveMode(TIM2, TIM_SlaveMode_Reset);
In FWLib V2.0, the TIM_ICMode member of the TIM_ICInitTypeDef structure was removed
and a new function, TIM_PWMIConfig, was added:
TIM_ICInitStructure.TIM_Channel = TIM_Channel_1;
TIM_ICInitStructure.TIM_ICPolarity = TIM_ICPolarity_Rising;
TIM_ICInitStructure.TIM_ICSelection = TIM_ICSelection_DirectTI;
TIM_ICInitStructure.TIM_ICPrescaler = TIM_ICPSC_DIV1;
TIM_ICInitStructure.TIM_ICFilter = 0x0;
TIM_PWMIConfig(TIM2, &TIM_ICInitStructure);
TIM_SelectInputTrigger(TIM2, TIM_TS_TI1FP1);
TIM_SelectSlaveMode(TIM2, TIM_SlaveMode_Reset);
2.2.3
SPI
In FWLib V1.0, the stm32f10x_spi.c/stm32f10x_spi.h driver is used to cover the
functionality of the SPI1 and SPI2 peripherals. The function format in this driver is as
follows:
SPI_FunctionName(SPIx, param1, param2,...)
e.g.: SPI_ITConfig(SPI_TypeDef* SPIx, u8 SPI_IT, FunctionalState NewState)
In FWLib V2.0, this driver was updated to support the new SPI3 peripheral and the I2S
protocol.
In high-density devices, the SPI2 and SPI3 interfaces give the flexibility to use either the SPI
protocol or the I2S audio protocol. These two protocols share some configuration bits plus a
dedicated bit for each protocol.
The following sections describes the update made on this driver.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com