Cortex M4 Exceptions, state, types, handlers
====================================
Program αα
္αုαို α‘αုα္αုα္ေααဲ့α‘α်ိα္αွာ ααိုαားα‘α္αဲ့ α‘ျαα
္α‘α်α္(error) ေαြαို handle αုα္αိုαα‘αြα္ Exception ေαြαိုα‘αံုးျαဳαါαα္။ Exception ႏွα
္α်ိဳး αွိαါαα္။
(α) ααααα
္α်ိဳးα System Exception ျαα
္ျαီးေαာ့
(α) αုαိααα
္αုα်ိဳးαေαာ့ Interrupt Exception ျαα
္αါαα္။
Exception αα
္αုαာ software αဲαα‘αုα္ေαြαိုေျαာα္းαဲေα
ႏိုα္αါαα္။ Reset ααြဲαိုα Processor αာ Exception ေαြα‘ားαံုးαို handle ျαဳαုα္αိုααα္α‘αြα္ handler mode αိုα‘αံုးျαဳαါαα္။ Interrupt handling αို NVIC register ေαြαေαျαီးေαာ့ αိα္းα်ဳα္αါαα္။
Exception State α
ုα
ုေαါα္း ေαးαုαွိαါαα္။
(α) ααααα
္αုα Inactive ျαα
္αါαα္။ αီ state αွာαိုαα္ Exception α active ျαα
္αေααါαူး။ αိုαα‘αူ αိုα္းαံ့ ေαျαα္းαα္းααွိαါαူး။
(α) αုαိααα
္αုαေαာ့ Pending ျαα
္αါαα္။ Processor αေαα‘αုα္αုα္ေαးαိုααα္ exception α αိုα္းαံ့ေααါαα္။ Peripheral αα
္αုαေααာαဲ့ Interrupt Request αိုαααုα္ Software αေααာαဲ့ Software αေααာαဲ့ αာαဲ့ Interrupt Request αα
္αုαာ αူαဲααα္αα္αဲ့ Interrupt αဲα state αိုαိုα္းαံ့ေα
ႏိုα္αါαα္။
(α) ααိααα
္αုαေαာ့ Active ျαα
္αါαα္။ Processor α exception αို α‘αုα္αုα္ေααဲျαα
္αါ αα္။ αါေααα့္ αျαီးေαးαါαူး။ Exception handler αα
္αုαာ ေαာα္αα္ exception handler αα
္αု α‘αုα္αုα္αာαို interrupt ျαα
္ေα
ႏိုα္αါαα္။ αီαိုα‘ေျαေααွာαိုαα္ exception ႏွα
္αုα
αံုးαာ inactive state αွာαွိαါαα္။
(α) α
αုαၳαα
္αုαေαာ့ Active and pending ျαα
္αါαα္။ Exception αို Processor αေαα‘αုα္αုα္ေααါαα္။ αါ့α‘ျαα္ source αူျαီးေαာ့ ေα
ာα့္αိုα္းေααဲ့ exception αα
္αုαα္း αွိေααါαα္။
Exception types
++++++++++++++
Exception α‘α်ိဳးα‘α
ား αα္αုαွိαါαα္။
(α) Reset
(α) NMI
(α) Hard fault
(α)Memory Management fault
(α
)Bus fault
(α) Usage fault
(α) SVCall
(α) PendSV
(α) SysTick
(αα) Interrupt(IRQ)
ေαာα္ Post αွာ Exception α‘α်ိဳးα‘α
ားαα
္αုα်α္းα
ီα‘ေαΎαာα္းαိုαွα္းျααါα₯ီးαα္။
Exception handlers
+++++++++++++++++
Processor αာ exception ေαြαို handle αုα္αဲ့ေααာαွာ ေα‘ာα္αါαိုααိုα‘αံုးαါαα္။
(α) ααααα
္αုα Interrupt Service Routines (ISRs) Interrupt ေαြျαα
္αΎααဲ့ IRQ0 αေαျαီးေαာ့ IRQ81 α‘αိ αာ ISRs αေα handle αုα္αဲ့ Exception ေαြျαα
္αΎααါαα္။
(α) αုαိααα
္αုαေαာ့ Fault handler ေαြျαα
္αါαα္။ Hard fault, memory management fault, usage fault, bus fault αိုααာ fault handler ေαြαေα handle αုα္αဲ့ handler exception ေαြျαα
္αΎααါαα္။
(α) ααိααα
္αုαေαာ့ System handler ေαြျαα
္αΎααါαα္။
NMI, PendSV, SVCall , SysTick αဲα fault exception ေαြα‘ားαံုးαာ system handler ေαြαေα handle αုα္αဲ့ system exception ေαြျαα
္αΎααါαα္။
Thank you!
Zaw Myat
Wednesday, June 13, 2018
New
About Unknown
SoraTemplates is a blogger resources site is a provider of high quality blogger template with premium looking layout and robust design. The main mission of SoraTemplates is to provide the best quality blogger templates.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment