SlideShare a Scribd company logo
1 of 26
Three ways to Reset
 System Reset
 Power Reset
 RTC Domain Reset
System Reset
What happens during System reset ?
 Except for the RTC, RTC backup registers and control/status
register, RCC_CSR , all the Registers are reset to their reset
values.
How is System Reset Generated ?
 1. A low level on the NRST pin (external reset)
 2. Window watchdog end-of-count condition (WWDG reset)
 3. Independent watchdog end-of-count condition (IWDG reset)
 4. A software reset (SW reset)
 5. Low-power management reset
 6. Option byte loader reset
 7. Exit from Standby mode
The reset source can be identified by checking the reset flags
in the control/status register, RCC_CSR
Software Reset
The SYSRESETREQ bit (Application Interrupt and Reset
Control Register) must be set to force a software reset on
the device.
Low-power management reset
Two ways to generate low power management reset
 Reset generated when entering Stand By Mode
 Reset when entering Stop mode
nRST_STDBY
nRST_STOP
 1. Reset generated when entering Standby mode:
This type of reset is enabled by resetting nRST_STDBY bit
in user option bytes.
whenever a Standby mode entry sequence is successfully
executed, the device is reset instead of entering Standby
mode.
 2. Reset when entering Stop mode:
This type of reset is enabled by resetting nRST_STOP bit in
user option bytes.
whenever a Stop mode entry sequence is successfully
executed, the device is reset instead of entering Stop mode.
Option byte loader reset
 The Option byte loader reset is generated when
the OBL_LAUNCH bit (bit 18) is set in the
FLASH_PECR register.
Power Reset
 1. Power-on/power-down reset (POR/PDR reset)
 2. BOR reset
What happens During Power Reset ?
A power reset sets all registers to their reset values
including for the RTC domain
Diagram for Reset Circuit
Clocks
 HSI ((high-speed internal) oscillator clock
 HSE (high-speed external) oscillator clock
 PLL clock
 MSI (multispeed internal) oscillator clock
Secondary Clock
 37 kHz low speed internal RC (LSI RC) which drives
the independent watchdog and optionally the RTC
used for Auto-wakeup from Stop/Standby mode.
 32.768 kHz low speed external crystal (LSE crystal)
which optionally drives the realtime clock (RTCCLK)
Each clock source can be switched on or off independently
when it is not used, to optimize power consumption.
HSE
 The high speed external clock signal (HSE)
can be generated by
HSE external crystal/ceramic resonator
The resonator and the load capacitors have to be placed as close as possible
to the oscillator pins in order to minimize output distortion
HSE
 The 1 to 24 MHz external oscillator has the advantage of
producing a very accurate rate on the main clock.
 The HSERDY flag of the RCC_CR register indicates whether
the HSE oscillator is stable or not
 An interrupt can be generated if enabled in the RCC_CR
register.
 The HSE Crystal can be switched on and off using the
HSEON bit in the RCC_CR register.
HSI
 The HSI clock signal is generated from an internal 16 MHz
RC oscillator. It can be used directly as a system clock or
as PLL input.
Advantages of HIS
 Low cost ,(No External Components )
 faster startup time than the HSE crystal oscillator
Disadvantage of HIS
 Less accurate than an external crystal oscillator or
ceramic resonator.
MSI
 The MSI clock signal is generated from an internal RC oscillator.
 Its frequency range can be adjusted by software by using the
MSIRANGE[2:0] bits in the RCC_ICSCR register.
 Seven frequency ranges are available: 65.536 kHz,
131.072 kHz, 262.144 kHz, 524.288 kHz, 1.048 MHz,
2.097 MHz (default value) and 4.194 MHz.
Advantages
 low-cost (no external components)
 It is used as wake-up clock in low power modes to
reduce power consumption and wake-up time.
PLL
The internal PLL can be clocked by the HSI RC or HSE
crystal. It is used to drive the system clock and to
generate the 48 MHz clock for the USB peripheral
 The PLL input clock frequency must be between 2 and
24 MHz.
 PLL VCO clock (defined byhe PLL multiplication factor)
must be programmed to output a 96 MHz frequency.
This is required to provide a 48 MHz clock to the USB
or SDIO (SDIOCLK or USBCLK =PLLVCO/2).
System clock (SYSCLK) selection
 A switch from one clock source to another occurs
only if the target clock source is ready
 Status bits in the RCC_CR register indicate which
clock(s) is (are) ready and which clock is currently
used as system clock.
Clock security system (CSS)
•If a failure is detected on the HSE clock, this oscillator is
automatically disabled and an interrupt is generated to inform
the software about the failure (Clock Security System
Interrupt, CSSI)
css
 If the HSE oscillator is used directly or indirectly as
the system clock
 A detected failure causes a switch of the system
clock to the MSI oscillator and the disabling of the
HSE
Clock-out capability
 The microcontroller clock output (MCO)
capability allows the clock to be output
onto the external MCO pin (PA8)
Stm32f303 rest and Clock contol

More Related Content

What's hot

Serial Io
Serial IoSerial Io
Serial IoAisu
 
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD CoverterUniversal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD CoverterTejas Shetye
 
Serial Peripheral Interface
Serial Peripheral InterfaceSerial Peripheral Interface
Serial Peripheral InterfaceAnurag Tomar
 
An ECG-on-Chip for Wearable Cardiac Monitoring Devices
An ECG-on-Chip for Wearable Cardiac Monitoring Devices An ECG-on-Chip for Wearable Cardiac Monitoring Devices
An ECG-on-Chip for Wearable Cardiac Monitoring Devices ecgpapers
 
How to use peripherals on MCB1700
How to use peripherals on MCB1700How to use peripherals on MCB1700
How to use peripherals on MCB1700Vajih Montaghami
 
USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaPallav Shukla
 
UART(universal asynchronous receiver transmitter ) PPT
UART(universal asynchronous receiver transmitter ) PPTUART(universal asynchronous receiver transmitter ) PPT
UART(universal asynchronous receiver transmitter ) PPTSai_praneeth
 
8251 usart programmable communication interface by aniket bhute
8251  usart  programmable communication interface by aniket bhute8251  usart  programmable communication interface by aniket bhute
8251 usart programmable communication interface by aniket bhuteAniket Bhute
 
Verification of uart ip core using uvm
Verification of uart ip core using uvmVerification of uart ip core using uvm
Verification of uart ip core using uvmeSAT Publishing House
 
Designing and Controlling of Motor by Interfacing RS232 with Microcontroller
Designing and Controlling of Motor by Interfacing RS232 with MicrocontrollerDesigning and Controlling of Motor by Interfacing RS232 with Microcontroller
Designing and Controlling of Motor by Interfacing RS232 with MicrocontrollerIRJET Journal
 
8251 a usart programmable communication interface(1)
8251 a usart   programmable communication interface(1)8251 a usart   programmable communication interface(1)
8251 a usart programmable communication interface(1)divyangpit
 

What's hot (20)

Serial Io
Serial IoSerial Io
Serial Io
 
Uart
UartUart
Uart
 
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD CoverterUniversal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
 
8259 updated
8259 updated 8259 updated
8259 updated
 
Serial Peripheral Interface
Serial Peripheral InterfaceSerial Peripheral Interface
Serial Peripheral Interface
 
An ECG-on-Chip for Wearable Cardiac Monitoring Devices
An ECG-on-Chip for Wearable Cardiac Monitoring Devices An ECG-on-Chip for Wearable Cardiac Monitoring Devices
An ECG-on-Chip for Wearable Cardiac Monitoring Devices
 
8251 USART
8251 USART8251 USART
8251 USART
 
Usart 8251
Usart 8251Usart 8251
Usart 8251
 
How to use peripherals on MCB1700
How to use peripherals on MCB1700How to use peripherals on MCB1700
How to use peripherals on MCB1700
 
8251 USART
8251 USART8251 USART
8251 USART
 
USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav Shukla
 
UART(universal asynchronous receiver transmitter ) PPT
UART(universal asynchronous receiver transmitter ) PPTUART(universal asynchronous receiver transmitter ) PPT
UART(universal asynchronous receiver transmitter ) PPT
 
8251 usart programmable communication interface by aniket bhute
8251  usart  programmable communication interface by aniket bhute8251  usart  programmable communication interface by aniket bhute
8251 usart programmable communication interface by aniket bhute
 
USART
USARTUSART
USART
 
Verification of uart ip core using uvm
Verification of uart ip core using uvmVerification of uart ip core using uvm
Verification of uart ip core using uvm
 
Serial communication of microcontroller 8051
Serial communication of microcontroller 8051Serial communication of microcontroller 8051
Serial communication of microcontroller 8051
 
Designing and Controlling of Motor by Interfacing RS232 with Microcontroller
Designing and Controlling of Motor by Interfacing RS232 with MicrocontrollerDesigning and Controlling of Motor by Interfacing RS232 with Microcontroller
Designing and Controlling of Motor by Interfacing RS232 with Microcontroller
 
I2C
I2CI2C
I2C
 
8251 a usart programmable communication interface(1)
8251 a usart   programmable communication interface(1)8251 a usart   programmable communication interface(1)
8251 a usart programmable communication interface(1)
 
Uart
UartUart
Uart
 

Viewers also liked

FreeRTOS
FreeRTOSFreeRTOS
FreeRTOSquakke
 
Can We Assess Creativity?
Can We Assess Creativity?Can We Assess Creativity?
Can We Assess Creativity?John Spencer
 
Guided Reading: Making the Most of It
Guided Reading: Making the Most of ItGuided Reading: Making the Most of It
Guided Reading: Making the Most of ItJennifer Jones
 
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksHow to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksSlideShare
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShareSlideShare
 

Viewers also liked (7)

FreeRTOS
FreeRTOSFreeRTOS
FreeRTOS
 
S emb t13-freertos
S emb t13-freertosS emb t13-freertos
S emb t13-freertos
 
Free FreeRTOS Course-Task Management
Free FreeRTOS Course-Task ManagementFree FreeRTOS Course-Task Management
Free FreeRTOS Course-Task Management
 
Can We Assess Creativity?
Can We Assess Creativity?Can We Assess Creativity?
Can We Assess Creativity?
 
Guided Reading: Making the Most of It
Guided Reading: Making the Most of ItGuided Reading: Making the Most of It
Guided Reading: Making the Most of It
 
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksHow to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & Tricks
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShare
 

Similar to Stm32f303 rest and Clock contol

Lecture on PIC-1.pptx
Lecture on PIC-1.pptxLecture on PIC-1.pptx
Lecture on PIC-1.pptxgodfrey35
 
8-Bit CMOS Microcontrollers with nanoWatt Technology
8-Bit CMOS Microcontrollers with nanoWatt Technology8-Bit CMOS Microcontrollers with nanoWatt Technology
8-Bit CMOS Microcontrollers with nanoWatt TechnologyPremier Farnell
 
LTC2440 - High Speed Delta Sigma ADC
LTC2440 - High Speed Delta Sigma ADCLTC2440 - High Speed Delta Sigma ADC
LTC2440 - High Speed Delta Sigma ADCPremier Farnell
 
Introduction to Stellaris Family Microcontrollers
Introduction to Stellaris Family MicrocontrollersIntroduction to Stellaris Family Microcontrollers
Introduction to Stellaris Family MicrocontrollersPremier Farnell
 
ESD III UNIT.pptx
ESD III UNIT.pptxESD III UNIT.pptx
ESD III UNIT.pptxECEHOD19
 
Lecture 5 (system clock crossbar and gpio) rv012
Lecture 5 (system clock crossbar and gpio) rv012Lecture 5 (system clock crossbar and gpio) rv012
Lecture 5 (system clock crossbar and gpio) rv012cairo university
 
An Overview of LPC2101/02/03
An Overview of LPC2101/02/03An Overview of LPC2101/02/03
An Overview of LPC2101/02/03Premier Farnell
 
Introduction to PIC18FX6J Series MCUs
Introduction to PIC18FX6J Series MCUsIntroduction to PIC18FX6J Series MCUs
Introduction to PIC18FX6J Series MCUsPremier Farnell
 
Low Power Flexis™ Series of QE Family MCUs
Low Power Flexis™ Series of QE Family MCUs Low Power Flexis™ Series of QE Family MCUs
Low Power Flexis™ Series of QE Family MCUs Premier Farnell
 
ARM stacks, subroutines, Cortex M3, LPC 214X
ARM  stacks, subroutines, Cortex M3, LPC 214XARM  stacks, subroutines, Cortex M3, LPC 214X
ARM stacks, subroutines, Cortex M3, LPC 214XKarthik Vivek
 
Overview of LPC213x MCUs
Overview of LPC213x MCUsOverview of LPC213x MCUs
Overview of LPC213x MCUsPremier Farnell
 
An Introduction to very low power 16-bit Digital Signal Controllers
An Introduction to very low power 16-bit Digital Signal Controllers An Introduction to very low power 16-bit Digital Signal Controllers
An Introduction to very low power 16-bit Digital Signal Controllers Premier Farnell
 
Course material msp430-for_automatic_control
Course material msp430-for_automatic_controlCourse material msp430-for_automatic_control
Course material msp430-for_automatic_controlBhukya Mangu
 
Atmel 42735-8-bit-avr-microcontroller-a tmega328-328-p_summary
Atmel 42735-8-bit-avr-microcontroller-a tmega328-328-p_summaryAtmel 42735-8-bit-avr-microcontroller-a tmega328-328-p_summary
Atmel 42735-8-bit-avr-microcontroller-a tmega328-328-p_summaryRajan Gautam
 

Similar to Stm32f303 rest and Clock contol (20)

Lecture on PIC-1.pptx
Lecture on PIC-1.pptxLecture on PIC-1.pptx
Lecture on PIC-1.pptx
 
pic_1.pdf
pic_1.pdfpic_1.pdf
pic_1.pdf
 
8-Bit CMOS Microcontrollers with nanoWatt Technology
8-Bit CMOS Microcontrollers with nanoWatt Technology8-Bit CMOS Microcontrollers with nanoWatt Technology
8-Bit CMOS Microcontrollers with nanoWatt Technology
 
Psoc3 text book
Psoc3 text book Psoc3 text book
Psoc3 text book
 
LTC2440 - High Speed Delta Sigma ADC
LTC2440 - High Speed Delta Sigma ADCLTC2440 - High Speed Delta Sigma ADC
LTC2440 - High Speed Delta Sigma ADC
 
Introduction to Stellaris Family Microcontrollers
Introduction to Stellaris Family MicrocontrollersIntroduction to Stellaris Family Microcontrollers
Introduction to Stellaris Family Microcontrollers
 
ESD III UNIT.pptx
ESD III UNIT.pptxESD III UNIT.pptx
ESD III UNIT.pptx
 
Lecture 5 (system clock crossbar and gpio) rv012
Lecture 5 (system clock crossbar and gpio) rv012Lecture 5 (system clock crossbar and gpio) rv012
Lecture 5 (system clock crossbar and gpio) rv012
 
STM32 Microcontroller Clocks and RCC block
STM32 Microcontroller Clocks and RCC blockSTM32 Microcontroller Clocks and RCC block
STM32 Microcontroller Clocks and RCC block
 
Pic full note
Pic full notePic full note
Pic full note
 
An Overview of LPC2101/02/03
An Overview of LPC2101/02/03An Overview of LPC2101/02/03
An Overview of LPC2101/02/03
 
Introduction to PIC18FX6J Series MCUs
Introduction to PIC18FX6J Series MCUsIntroduction to PIC18FX6J Series MCUs
Introduction to PIC18FX6J Series MCUs
 
Low Power Flexis™ Series of QE Family MCUs
Low Power Flexis™ Series of QE Family MCUs Low Power Flexis™ Series of QE Family MCUs
Low Power Flexis™ Series of QE Family MCUs
 
ARM stacks, subroutines, Cortex M3, LPC 214X
ARM  stacks, subroutines, Cortex M3, LPC 214XARM  stacks, subroutines, Cortex M3, LPC 214X
ARM stacks, subroutines, Cortex M3, LPC 214X
 
Overview of LPC213x MCUs
Overview of LPC213x MCUsOverview of LPC213x MCUs
Overview of LPC213x MCUs
 
STM32 MCU Family
STM32 MCU FamilySTM32 MCU Family
STM32 MCU Family
 
An Introduction to very low power 16-bit Digital Signal Controllers
An Introduction to very low power 16-bit Digital Signal Controllers An Introduction to very low power 16-bit Digital Signal Controllers
An Introduction to very low power 16-bit Digital Signal Controllers
 
HCS08 Overview
HCS08 OverviewHCS08 Overview
HCS08 Overview
 
Course material msp430-for_automatic_control
Course material msp430-for_automatic_controlCourse material msp430-for_automatic_control
Course material msp430-for_automatic_control
 
Atmel 42735-8-bit-avr-microcontroller-a tmega328-328-p_summary
Atmel 42735-8-bit-avr-microcontroller-a tmega328-328-p_summaryAtmel 42735-8-bit-avr-microcontroller-a tmega328-328-p_summary
Atmel 42735-8-bit-avr-microcontroller-a tmega328-328-p_summary
 

More from Prem Sanil

Cpu steal time
Cpu steal timeCpu steal time
Cpu steal timePrem Sanil
 
MQTT IOT Protocol Introduction
MQTT IOT Protocol IntroductionMQTT IOT Protocol Introduction
MQTT IOT Protocol IntroductionPrem Sanil
 
IBM Watson assistant
IBM Watson assistantIBM Watson assistant
IBM Watson assistantPrem Sanil
 
Cloud service models
Cloud service modelsCloud service models
Cloud service modelsPrem Sanil
 
IBM Cloud Virtual Server/Machine - Setting up and Access
IBM Cloud Virtual Server/Machine - Setting up and AccessIBM Cloud Virtual Server/Machine - Setting up and Access
IBM Cloud Virtual Server/Machine - Setting up and AccessPrem Sanil
 
Google cloud MEAN js
Google cloud MEAN jsGoogle cloud MEAN js
Google cloud MEAN jsPrem Sanil
 
REST API and CRUD
REST API and CRUDREST API and CRUD
REST API and CRUDPrem Sanil
 
MVC Architecture
MVC ArchitectureMVC Architecture
MVC ArchitecturePrem Sanil
 
JavaScript Style guides
JavaScript Style guidesJavaScript Style guides
JavaScript Style guidesPrem Sanil
 
Cloud Hosted mongodb
Cloud Hosted mongodbCloud Hosted mongodb
Cloud Hosted mongodbPrem Sanil
 
Mean Stack Vs Meteor js
Mean Stack Vs Meteor jsMean Stack Vs Meteor js
Mean Stack Vs Meteor jsPrem Sanil
 
Modbus introduction
Modbus introductionModbus introduction
Modbus introductionPrem Sanil
 

More from Prem Sanil (14)

Cpu steal time
Cpu steal timeCpu steal time
Cpu steal time
 
MQTT IOT Protocol Introduction
MQTT IOT Protocol IntroductionMQTT IOT Protocol Introduction
MQTT IOT Protocol Introduction
 
IBM Watson assistant
IBM Watson assistantIBM Watson assistant
IBM Watson assistant
 
Cloud service models
Cloud service modelsCloud service models
Cloud service models
 
IBM Cloud Virtual Server/Machine - Setting up and Access
IBM Cloud Virtual Server/Machine - Setting up and AccessIBM Cloud Virtual Server/Machine - Setting up and Access
IBM Cloud Virtual Server/Machine - Setting up and Access
 
Google cloud MEAN js
Google cloud MEAN jsGoogle cloud MEAN js
Google cloud MEAN js
 
REST API and CRUD
REST API and CRUDREST API and CRUD
REST API and CRUD
 
Bootstrap
BootstrapBootstrap
Bootstrap
 
Nodejs
NodejsNodejs
Nodejs
 
MVC Architecture
MVC ArchitectureMVC Architecture
MVC Architecture
 
JavaScript Style guides
JavaScript Style guidesJavaScript Style guides
JavaScript Style guides
 
Cloud Hosted mongodb
Cloud Hosted mongodbCloud Hosted mongodb
Cloud Hosted mongodb
 
Mean Stack Vs Meteor js
Mean Stack Vs Meteor jsMean Stack Vs Meteor js
Mean Stack Vs Meteor js
 
Modbus introduction
Modbus introductionModbus introduction
Modbus introduction
 

Recently uploaded

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 

Recently uploaded (20)

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 

Stm32f303 rest and Clock contol

  • 1.
  • 2. Three ways to Reset  System Reset  Power Reset  RTC Domain Reset
  • 3. System Reset What happens during System reset ?  Except for the RTC, RTC backup registers and control/status register, RCC_CSR , all the Registers are reset to their reset values.
  • 4. How is System Reset Generated ?  1. A low level on the NRST pin (external reset)  2. Window watchdog end-of-count condition (WWDG reset)  3. Independent watchdog end-of-count condition (IWDG reset)  4. A software reset (SW reset)
  • 5.  5. Low-power management reset  6. Option byte loader reset  7. Exit from Standby mode The reset source can be identified by checking the reset flags in the control/status register, RCC_CSR
  • 6. Software Reset The SYSRESETREQ bit (Application Interrupt and Reset Control Register) must be set to force a software reset on the device.
  • 7. Low-power management reset Two ways to generate low power management reset  Reset generated when entering Stand By Mode  Reset when entering Stop mode nRST_STDBY nRST_STOP
  • 8.  1. Reset generated when entering Standby mode: This type of reset is enabled by resetting nRST_STDBY bit in user option bytes. whenever a Standby mode entry sequence is successfully executed, the device is reset instead of entering Standby mode.  2. Reset when entering Stop mode: This type of reset is enabled by resetting nRST_STOP bit in user option bytes. whenever a Stop mode entry sequence is successfully executed, the device is reset instead of entering Stop mode.
  • 9. Option byte loader reset  The Option byte loader reset is generated when the OBL_LAUNCH bit (bit 18) is set in the FLASH_PECR register.
  • 10. Power Reset  1. Power-on/power-down reset (POR/PDR reset)  2. BOR reset What happens During Power Reset ? A power reset sets all registers to their reset values including for the RTC domain
  • 11. Diagram for Reset Circuit
  • 12. Clocks  HSI ((high-speed internal) oscillator clock  HSE (high-speed external) oscillator clock  PLL clock  MSI (multispeed internal) oscillator clock
  • 13. Secondary Clock  37 kHz low speed internal RC (LSI RC) which drives the independent watchdog and optionally the RTC used for Auto-wakeup from Stop/Standby mode.  32.768 kHz low speed external crystal (LSE crystal) which optionally drives the realtime clock (RTCCLK) Each clock source can be switched on or off independently when it is not used, to optimize power consumption.
  • 14. HSE  The high speed external clock signal (HSE) can be generated by HSE external crystal/ceramic resonator The resonator and the load capacitors have to be placed as close as possible to the oscillator pins in order to minimize output distortion
  • 15. HSE  The 1 to 24 MHz external oscillator has the advantage of producing a very accurate rate on the main clock.  The HSERDY flag of the RCC_CR register indicates whether the HSE oscillator is stable or not  An interrupt can be generated if enabled in the RCC_CR register.  The HSE Crystal can be switched on and off using the HSEON bit in the RCC_CR register.
  • 16. HSI  The HSI clock signal is generated from an internal 16 MHz RC oscillator. It can be used directly as a system clock or as PLL input.
  • 17. Advantages of HIS  Low cost ,(No External Components )  faster startup time than the HSE crystal oscillator Disadvantage of HIS  Less accurate than an external crystal oscillator or ceramic resonator.
  • 18. MSI  The MSI clock signal is generated from an internal RC oscillator.  Its frequency range can be adjusted by software by using the MSIRANGE[2:0] bits in the RCC_ICSCR register.  Seven frequency ranges are available: 65.536 kHz, 131.072 kHz, 262.144 kHz, 524.288 kHz, 1.048 MHz, 2.097 MHz (default value) and 4.194 MHz.
  • 19. Advantages  low-cost (no external components)  It is used as wake-up clock in low power modes to reduce power consumption and wake-up time.
  • 20. PLL The internal PLL can be clocked by the HSI RC or HSE crystal. It is used to drive the system clock and to generate the 48 MHz clock for the USB peripheral
  • 21.  The PLL input clock frequency must be between 2 and 24 MHz.  PLL VCO clock (defined byhe PLL multiplication factor) must be programmed to output a 96 MHz frequency. This is required to provide a 48 MHz clock to the USB or SDIO (SDIOCLK or USBCLK =PLLVCO/2).
  • 22. System clock (SYSCLK) selection  A switch from one clock source to another occurs only if the target clock source is ready  Status bits in the RCC_CR register indicate which clock(s) is (are) ready and which clock is currently used as system clock.
  • 23. Clock security system (CSS) •If a failure is detected on the HSE clock, this oscillator is automatically disabled and an interrupt is generated to inform the software about the failure (Clock Security System Interrupt, CSSI)
  • 24. css  If the HSE oscillator is used directly or indirectly as the system clock  A detected failure causes a switch of the system clock to the MSI oscillator and the disabling of the HSE
  • 25. Clock-out capability  The microcontroller clock output (MCO) capability allows the clock to be output onto the external MCO pin (PA8)