tag 标签: interrupts

相关博文
  • 热度 16
    2011-6-28 12:16
    1670 次阅读|
    0 个评论
    The point of engineering is to design and build predictably reliable systems. Most firmware engineers, though, do not value the role of determinism in real-time systems. Few can answer questions like "how can you guarantee that the system won't fail when stressed?" Today's hardware is often cursed with all sorts of nifty speed-enhancers like cache, pipelines, and speculative execution. All of these contribute to execution time uncertainty. The system's performance can vary wildly depending on a lot of hard-to-predict events. An interrupt may occur at any time, and will require at least a partial cache flush. Resuming execution flow means rereading instructions from L2 or memory, which can take a surprisingly long time. A system that is running fine but close to the edge may suddenly crumble in meeting its hard real-time deadlines. Can you really guarantee the highest priority task will complete on time? What if there's a perfect storm of interrupts? Or of bus activity ( DMA or having to yield the bus to another master )? In big systems a task may depend in very complex ways on externalities ( other computers, systems, I/O ) that aren't ready in time. Preemptive multitasking is itself inherently non-deterministic, though techniques like rate-monotonic analysis can mitigate the problem. But RMA requires more analysis than most developers will ever do. Even extremely simple systems that have none of these speed-enhancing features can suffer from serious timing problems. A little bit of C code that looks quite deterministic probably makes calls to the black hole that is the runtime library, which is generally uncharacterized ( in the time domain ) by the vendor. Does that call take a microsecond or a week? No one knows. It's my belief that too many systems "work" due only to divine intervention. Developers chase down the usual procedural bugs and then breathe a sigh of relief that, once again, a miracle has occurred. But all too often that gift from heaven is merely a reprieve, an indulgence, with damnation still possible or even likely when the system experiences unexpected stresses. Or when luck runs out and interrupts bunch up. Unlike most other engineered systems our real-time devices don't have fuses that blow when something goes wrong. Instead of a controlled shutdown or fallback to a less-capable mode, firmware completely collapses in an unpredictable way. What do you do to convince yourself ( at least ) that the system will be reliable in the time domain?
相关资源
  • 所需E币: 1
    时间: 2023-6-25 13:30
    大小: 727.92KB
    上传者: 张红川
    TMS320x2833x,2823xSystemControlandInterruptsReferenceGuide(Rev.D).pdf
  • 所需E币: 4
    时间: 2019-12-24 23:10
    大小: 64.77KB
    上传者: 978461154_qq
    详细介绍可重入中断处理程序和以及提供代码示例的信息AN10381NestingofinterruptsintheLPC2000Rev.01―6June2005ApplicationnoteDocumentinformationInfoContentKeywordsnested,reentrant,interrupts,LPC2000AbstractDetailsonreentrantinterrupthandlersandcodeexamplesforthesameisprovidedPhilipsSemiconductorsAN10381NestingofinterruptsintheLPC2000RevisionhistoryRevDateDescription0120050606InitialversionContactinformationForadditionalinformation,pleasevisit:http://www.semiconductors.philips……
  • 所需E币: 5
    时间: 2019-12-24 23:11
    大小: 181.84KB
    上传者: 二不过三
    文档讲解了伪中断以及如何在ARM7的LPC2000系列有效地处理AN10414HandlingofspuriousinterruptsintheLPC2000Rev.01―4January2006ApplicationnoteDocumentinformationInfoContentKeywordsSpuriousinterrupts,LPC2000,IRQ,FIQ,InterruptAbstractDescribesspuriousinterruptsandhowtheycanbeeffectivelyhandledintheARM7LPC2000familyPhilipsSemiconductorsAN10414HandlingofspuriousinterruptsintheLPC2000RevisionhistoryRevDateDescription0120060104Initialversion.ContactinformationForadditionalinformation,ple……
  • 所需E币: 3
    时间: 2019-12-24 19:56
    大小: 327.2KB
    上传者: 238112554_qq
    infineonc16x系列快速中断……
  • 所需E币: 4
    时间: 2019-12-24 18:23
    大小: 108KB
    上传者: 238112554_qq
    摘要:本应用笔记是一个方便的参考卡,以帮助设计师使用MAX3420E的USB外设控制器,SPI接口。MAX3420E的SPI接口连接到一个SPI主,“谈判”的21个内部寄存器实现USB全速外围设备。本参考卡集MAX3420E的设计重要的信息-管脚,模式和寄存器-在一个地方,方便的参考。MAX3420EUSBInterfaceInformationCardXIXOGPIN3GPIN2GPIN1GPIN0XoutXinNC……
  • 所需E币: 5
    时间: 2020-1-13 09:49
    大小: 44.5KB
    上传者: 微风DS
    IEC-EN61000-4-11-VoltageDips-ShortInterruptsDataSheet(2[1]|Date:     |PowerSupplyVender:|TestRequest#:     |||     |||EUT:     |PowerSupplyModel:     |Technician:     ||RegulatoryModelName:|Temperature:     (C|Engineer:     ||     ||||EUTS/N:     |Humidity:     %|||Voltage/Freq.230VAC/50|BarometerPressure:     |||Hz|kPa|||TestSetup||VoltageDips……