Electronic Components Datasheet Search
  English  ▼

X  

AN4088 Datasheet(PDF) 49 Page - STMicroelectronics

Part # AN4088
Description  Migrating between STM32F1 and STM32F0 series microcontrollers
PDF  71 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4088 Datasheet(HTML) 49 Page - STMicroelectronics

Back Button AN4088 Datasheet HTML 45Page - STMicroelectronics AN4088 Datasheet HTML 46Page - STMicroelectronics AN4088 Datasheet HTML 47Page - STMicroelectronics AN4088 Datasheet HTML 48Page - STMicroelectronics AN4088 Datasheet HTML 49Page - STMicroelectronics AN4088 Datasheet HTML 50Page - STMicroelectronics AN4088 Datasheet HTML 51Page - STMicroelectronics AN4088 Datasheet HTML 52Page - STMicroelectronics AN4088 Datasheet HTML 53Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 49 / 71 page
background image
DocID023072 Rev 3
49/71
AN4088
Firmware migration using the library
70
/* Configure EXTI line0 */
EXTI_InitStructure.EXTI_Line = EXTI_Line0;
EXTI_InitStructure.EXTI_Mode = EXTI_Mode_Interrupt;
EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Falling;
EXTI_InitStructure.EXTI_LineCmd = ENABLE;
EXTI_Init(&EXTI_InitStructure);
4.7
NVIC interrupt configuration
This section describes the configuration of the NVIC interrupts (IRQ).
In STM32F1 series, the NVIC supports:
up to 81 interrupts
A programmable priority level of 0-15 for each interrupt (4 bits of interrupt priority
are used). A higher level corresponds to a lower priority; level 0 is the highest
interrupt priority.
Grouping of priority values into group priority and sub priority fields.
Dynamic changing of priority levels.
The Cortex-M3 exceptions are managed by CMSIS functions:
Enable and configure the preemption priority and sub priority of the selected IRQ
channels according to the Priority grouping configuration.
The example below shows how to configure the CEC interrupt in STM32F1 series:
/* Configure two bits for preemption priority */
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
/* Enable the CEC global Interrupt (with higher priority) */
NVIC_InitStructure.NVIC_IRQChannel = CEC_IRQn;
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
In STM32F0 series, the NVIC supports:
Up to 32 interrupts
4 programmable priority levels (2 bits of interrupt priority are used).
The priority level of an interrupt should not be changed after it is enabled.
The Cortex-M0 exceptions are managed by CMSIS functions:
Enable and configure the priority of the selected IRQ channels. The priority ranges
between 0 and 3. Lower priority values give a higher priority.
In STM32F0 series, the configuration of the CEC Interrupt source code should be updated
as follows:
/* Enable the CEC global Interrupt (with higher priority) */
NVIC_InitStructure.NVIC_IRQChannel = CEC_IRQn;
NVIC_InitStructure.NVIC_IRQChannelPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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