JP4554402B2 - Microcomputer with built-in interrupt controller - Google Patents

Microcomputer with built-in interrupt controller Download PDF

Info

Publication number
JP4554402B2
JP4554402B2 JP2005068423A JP2005068423A JP4554402B2 JP 4554402 B2 JP4554402 B2 JP 4554402B2 JP 2005068423 A JP2005068423 A JP 2005068423A JP 2005068423 A JP2005068423 A JP 2005068423A JP 4554402 B2 JP4554402 B2 JP 4554402B2
Authority
JP
Japan
Prior art keywords
interrupt
signal
function
register
function macro
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005068423A
Other languages
Japanese (ja)
Other versions
JP2006252217A (en
Inventor
健 茂呂
健一郎 黒木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Semiconductor Ltd
Original Assignee
Fujitsu Semiconductor Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Semiconductor Ltd filed Critical Fujitsu Semiconductor Ltd
Priority to JP2005068423A priority Critical patent/JP4554402B2/en
Publication of JP2006252217A publication Critical patent/JP2006252217A/en
Application granted granted Critical
Publication of JP4554402B2 publication Critical patent/JP4554402B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Bus Control (AREA)

Description

本発明は,割り込みコントローラを内蔵するマイクロコンピュータに関し,特に,機能マクロの割り込み順序を管理する割り込みコントローラを内蔵するマイクロコンピュータに関する。   The present invention relates to a microcomputer incorporating an interrupt controller, and more particularly to a microcomputer incorporating an interrupt controller for managing the interrupt order of function macros.

マイクロコンピュータは,種々の機能を有するマクロからなる周辺リソースを内蔵し,これらの周辺リソースの動作を管理し制御する。その基本的な構成は,CPUが周辺リソースである機能マクロに対して動作起動の制御を行い,機能マクロがその処理を完了した時点でCPUに割り込み信号を通知し,その割り込み信号に応答してCPUが必要な割り込み処理を実行する。   The microcomputer incorporates peripheral resources composed of macros having various functions, and manages and controls the operations of these peripheral resources. The basic configuration is that the CPU controls the activation of the function macro, which is a peripheral resource, notifies the CPU of an interrupt signal when the function macro completes its processing, and responds to the interrupt signal. The CPU executes necessary interrupt processing.

CPUへの割り込み信号が高い頻度で発生すると,CPUは割り込み発生の都度,実行中の処理状態を退避させるなどの割り込み処理を行わなければならず,割り込みの発生に伴うオーバーヘッドが増大して好ましくない。そこで,複数の機能マクロからの割り込み通知を監視し,割り込み通知を受信した時に最低限必要な処理を実行し,複数の割り込み通知を確認した段階でCPUに割り込み信号を通知する割り込みコントローラを設けることが提案されている。例えば,特許文献1に記載されるとおりである。   If an interrupt signal to the CPU is generated at a high frequency, the CPU must perform an interrupt process such as saving the processing state being executed every time an interrupt occurs, which is not preferable because the overhead associated with the occurrence of the interrupt increases. . Therefore, an interrupt controller that monitors interrupt notifications from multiple function macros, executes the minimum necessary processing when receiving an interrupt notification, and notifies the CPU of an interrupt signal when multiple interrupt notifications are confirmed is provided. Has been proposed. For example, as described in Patent Document 1.

図1は,特許文献1に記載された従来のマイクロコンピュータの概略構成図である。この例では,マイクロコンピュータMCONは,外部デバイス10から何らかの信号S10を供給され,その信号S10をシリアルに処理する機能マクロA,B,Cと,処理済みのデータScを外部メモリ14に出力するメモリコントローラ13とを有する。これらの機能マクロA,B,Cとメモリコントローラ13とは,CPU12に内部バスBUSを介して接続されている。そして,機能マクロAが信号S10を処理し,その処理済みの信号Saを機能マクロBが処理し,その処理済み信号Sbを機能マクロCが処理し,処理された信号Scが外部メモリ14に格納される。   FIG. 1 is a schematic configuration diagram of a conventional microcomputer described in Patent Document 1. In FIG. In this example, the microcomputer MCON is supplied with some signal S10 from the external device 10, and functions macros A, B, and C for processing the signal S10 serially and a memory for outputting processed data Sc to the external memory 14. And a controller 13. These function macros A, B, and C and the memory controller 13 are connected to the CPU 12 via the internal bus BUS. The function macro A processes the signal S10, the processed signal Sa is processed by the function macro B, the processed signal Sb is processed by the function macro C, and the processed signal Sc is stored in the external memory 14. Is done.

さらに,マイクロコンピュータMCONは,CPU12への割り込み頻度を低減するために,機能マクロからの割り込み信号IRa,IRb,IRcを受信し,全ての割り込み信号を受信した時にCPU12に割り込み信号IRxを出力する割り込みコントローラ11を有する。割り込みコントローラ11は,各機能マクロからの割り込み信号がそろった段階でCPUに割り込み信号を出力して,各機能マクロからの割り込み信号によりCPU12がその都度ディスターブされるのを防止している。
特開2000−236688号公報
Further, the microcomputer MCON receives the interrupt signals IRa, IRb, IRc from the function macro in order to reduce the frequency of interrupts to the CPU 12, and outputs an interrupt signal IRx to the CPU 12 when all interrupt signals are received. It has a controller 11. The interrupt controller 11 outputs an interrupt signal to the CPU at the stage when the interrupt signals from each function macro are gathered, and prevents the CPU 12 from being disturbed each time by the interrupt signal from each function macro.
JP 2000-236688 A

従来の割り込みコントローラは,複数の割り込み信号の発生を確認してからCPUに割り込み信号を出力するので,CPUの割り込み発生に伴うオーバーヘッドを低減している。しかしながら,3つの割り込み信号IRa,IRb,IRcを全て受信すれば,割り込みコントローラ11はCPU12に割り込み信号IRxを出力しているので,何らかの要因で正常でない順序で割り込み信号IRa,IRb,IRcを受信した場合でも,割り込みコントローラ11はCPU12に割り込み信号IRxを出力してしまう。   Since the conventional interrupt controller outputs the interrupt signal to the CPU after confirming the generation of a plurality of interrupt signals, the overhead associated with the CPU interrupt generation is reduced. However, if all three interrupt signals IRa, IRb, and IRc are received, the interrupt controller 11 outputs the interrupt signal IRx to the CPU 12, so that the interrupt signals IRa, IRb, and IRc are received in an order that is not normal for some reason. Even in this case, the interrupt controller 11 outputs the interrupt signal IRx to the CPU 12.

正常でない順序で割り込み信号が発生する原因には,様々な要因が考えられるが,その一つは,機能マクロのハードウエア上のバグが存在する場合や,CPUが実行するプログラムにバグが存在する場合などが考えられる。また,ノイズの発生により割り込み信号が正常でない順序に発生したように見なされる場合もある。このように何らかの要因で割り込みの順序が以上になった場合に,CPUに対して異常割り込みをかけることができるようにすることが望まれる。   There are various possible causes for the occurrence of interrupt signals in an abnormal order. One of them is a bug in the function macro hardware or a bug in the program executed by the CPU. Cases can be considered. In some cases, it may be considered that interrupt signals are generated in an abnormal order due to the occurrence of noise. In this way, it is desirable to be able to issue an abnormal interrupt to the CPU when the order of interrupts is increased for some reason.

そこで,本発明の目的は,複数の割り込み信号が正常に発生したか否かを判定してCPU割り込みをかけるマイクロコンピュータを提供することにある。   SUMMARY OF THE INVENTION An object of the present invention is to provide a microcomputer that determines whether or not a plurality of interrupt signals are normally generated and issues a CPU interrupt.

上記の目的を達成するために,本発明の第1の側面によれば,中央処理ユニットと,複数の機能マクロと,前記中央処理ユニット及び複数の機能マクロとを接続する内部バスとを有するマイクロコンピュータにおいて,前記複数の機能マクロそれぞれから第1の割り込み信号を受信し,当該複数の第1の割り込み信号が所定の順序で発生した時に前記中央処理ユニットに第2の割り込み信号を出力する割り込みコントローラを有することを特徴とする。   In order to achieve the above object, according to a first aspect of the present invention, there is provided a micro processing unit comprising a central processing unit, a plurality of function macros, and an internal bus connecting the central processing unit and the plurality of function macros. In the computer, an interrupt controller that receives a first interrupt signal from each of the plurality of function macros and outputs a second interrupt signal to the central processing unit when the plurality of first interrupt signals are generated in a predetermined order. It is characterized by having.

上記の第1の側面によれば,割り込みコントローラが,複数の機能マクロからの割り込み信号が正常な順序で受信した時に中央処理ユニットに対して割り込み信号を出力するので,何らかのエラー要因により正常でない順序で第1の割り込み信号を受信したときは,その状態を検出し正常処理とは異なる処理を行うことができる。   According to the first aspect, the interrupt controller outputs interrupt signals to the central processing unit when interrupt signals from a plurality of function macros are received in a normal order. When the first interrupt signal is received, the state is detected and processing different from normal processing can be performed.

上記第1の側面において,好ましい実施例では,前記割り込みコントローラは,前記複数の第1の割り込み信号が前記所定の順序に発生した時に,正常割り込み要因を割り込み要因レジスタに格納して前記中央処理ユニットに前記第2の割り込み信号を出力し,前記複数の第1の割り込み信号が所定の順序で発生しない時に,異常割り込み要因を前記割り込み要因レジスタに格納して前記中央処理ユニットに前記第2の割り込み信号を出力する。   In the first aspect, in a preferred embodiment, when the plurality of first interrupt signals are generated in the predetermined order, the interrupt controller stores a normal interrupt factor in an interrupt factor register and stores the central processing unit. The second interrupt signal is output to the central processing unit and the abnormal interrupt factor is stored in the interrupt factor register when the plurality of first interrupt signals are not generated in a predetermined order. Output a signal.

この実施例によれば,割り込みコントローラが割り込み要因レジスタを内蔵し,そのレジスタに,正常割り込み要因情報,異常割り込み要因情報を格納して中央処理ユニットに第2の割り込み信号を出力する。したがって,中央処理ユニットは,第2の割り込み信号を受信した時に,その割り込み要因レジスタをチェックすることで,正常割り込みと異常割り込みとを区別することができ,それに対応する処理を実行することができる。   According to this embodiment, the interrupt controller incorporates an interrupt factor register, stores normal interrupt factor information and abnormal interrupt factor information in the register, and outputs a second interrupt signal to the central processing unit. Therefore, when the central processing unit receives the second interrupt signal, the central processing unit can distinguish between a normal interrupt and an abnormal interrupt by checking the interrupt factor register, and can execute the corresponding processing. .

上記の第1の側面において,好ましい実施例では,前記割り込みコントローラは,前記第1の割り込み信号の所定の順序が設定される割り込み順序設定レジスタを有し,当該順序設定レジスタの所定の順序が任意に設定可能である。   In the first aspect, in a preferred embodiment, the interrupt controller includes an interrupt order setting register in which a predetermined order of the first interrupt signals is set, and the predetermined order of the order setting register is arbitrary. Can be set.

上記の第1の側面において,好ましい実施例では,前記割り込みコントローラは,前記第1の割り込み信号の受信に応答して,前記機能マクロのいずれかを起動することを特徴とする。割り込みコントローラは,中央処理ユニットに代わって,各機能マクロに対する起動処理を実行することで,中央処理ユニットへの割り込み発生に伴う処理を代行する。   In the first aspect, in a preferred embodiment, the interrupt controller activates one of the function macros in response to receiving the first interrupt signal. Instead of the central processing unit, the interrupt controller executes a start process for each function macro, thereby performing a process associated with the generation of an interrupt to the central processing unit.

本発明によれば,中央処理ユニットへの割り込みの発生頻度を下げると共に,機能ユニットの割り込み発生順序が正常の場合のみ正常割り込みを発行し,割り込み発生順序が異常な場合は異常割り込みを発行するので,機能ユニットの動作エラーを区別することができる。   According to the present invention, the frequency of interrupts to the central processing unit is reduced, and a normal interrupt is issued only when the interrupt generation order of the functional units is normal, and an abnormal interrupt is issued when the interrupt generation order is abnormal. , It is possible to distinguish between functional unit operation errors.

以下,図面にしたがって本発明の実施の形態について説明する。但し,本発明の技術的範囲はこれらの実施の形態に限定されず,特許請求の範囲に記載された事項とその均等物まで及ぶものである。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. However, the technical scope of the present invention is not limited to these embodiments, but extends to the matters described in the claims and equivalents thereof.

図2は,本実施の形態におけるマイクロコンピュータの構成図である。本実施の形態は,デジタルスチルカメラの画像処理を行うマイクロコンピュータの例である。外部デバイスとしてカメラモジュール10が設けられている。機能マクロA,B,Cは,カメラインターフェースを構成し,機能マクロAは,カメラモジュールのクロックサイクルで供給される画像データVDをマイクロコンピュータMCON内のクロックサイクルに変換するクロック乗り換え処理を行う。機能マクロBは,カメラモジュール10で撮像した画像サイズを図示しないモニタ表示装置の表示サイズに変換する画像縮小処理を行う。この画像縮小処理により,画素数が縮小される。そして,機能マクロCは,YUV422の色データをYUV420の色データに変換し,または線順次のYUVデータを輝度成分Yと色差成分UVの色プレーンの順(面順次)に変換するフォーマット変換処理を行う。   FIG. 2 is a configuration diagram of the microcomputer according to the present embodiment. The present embodiment is an example of a microcomputer that performs image processing of a digital still camera. A camera module 10 is provided as an external device. The function macros A, B, and C constitute a camera interface, and the function macro A performs a clock change process for converting the image data VD supplied in the clock cycle of the camera module into a clock cycle in the microcomputer MCON. The function macro B performs image reduction processing for converting the image size captured by the camera module 10 into a display size of a monitor display device (not shown). By this image reduction process, the number of pixels is reduced. The function macro C then converts the YUV422 color data into YUV420 color data, or converts the line-sequential YUV data into the order of the color planes of the luminance component Y and the color difference component UV (plane sequential). Do.

3つの機能マクロで処理済みの画像データScは,外部メモリ14にメモリコントローラ13を介して格納される。   The image data Sc processed by the three function macros is stored in the external memory 14 via the memory controller 13.

カメラモジュール10からの画像データVDの処理について以下説明する。カメラモジュール10は,同期信号Sync(例えば垂直,水平同期信号)と共に画像データVDを機能マクロAに出力する。機能マクロA,B,Cは,あらかじめCPU12からの起動信号(図示せず)により起動済みである。そして,機能マクロAは,画像データVDを一旦バッファ内に格納し,マイクロコンピュータMCONの内部クロックに同期してそのバッファから読み出し,画像データSaとして機能マクロBに出力する。これによりクロック乗り換え処理が行われる。さらに,機能マクロAは,同期信号Syncを所定時間遅延させた同期信号SyncAを画像データSaと共に機能マクロBに出力する。機能マクロAは,1フレーム分の画像データのクロック乗り換え処理が完了すると,割り込み信号IRaを出力する。   Processing of image data VD from the camera module 10 will be described below. The camera module 10 outputs the image data VD to the function macro A together with the synchronization signal Sync (for example, vertical and horizontal synchronization signals). The function macros A, B, and C have been activated in advance by an activation signal (not shown) from the CPU 12. The function macro A temporarily stores the image data VD in the buffer, reads it from the buffer in synchronization with the internal clock of the microcomputer MCON, and outputs it to the function macro B as the image data Sa. Thereby, a clock transfer process is performed. Further, the function macro A outputs the synchronization signal SyncA obtained by delaying the synchronization signal Sync for a predetermined time to the function macro B together with the image data Sa. The function macro A outputs the interrupt signal IRa when the clock transfer processing of the image data for one frame is completed.

図2には,機能マクロAの内部構成の一部が示されている。機能マクロAは,前述のクロック乗り換え処理を行う処理部17と,処理部からの割り込み要因情報が書き込まれる割り込みレジスタIRRegと,割り込みレジスタのフラグR1〜R4のいずれかに「1」が書き込まれると割り込み信号IRaを出力するORゲート16とを有する。処理部17は,1フレーム分の画像データの処理が完了すると,割り込みレジスタIRRegの対応する領域にフラグ「1」を書き込む。その割り込みレジスタIRRegへのフラグ「1」の書き込みにより,ORゲート16が機能マクロAの割り込み信号IRaを出力する。また,機能マクロAは,何らかの異常が発生するとそれを異常割り込みフラグとして割り込みレジスタIRRegに格納する。それに応答して,割り込み信号IRaが出力される。   FIG. 2 shows a part of the internal configuration of the function macro A. In the function macro A, when “1” is written to any one of the processing unit 17 that performs the clock transfer process, the interrupt register IRReg in which the interrupt factor information from the processing unit is written, and flags R1 to R4 of the interrupt register. An OR gate 16 for outputting an interrupt signal IRa. When the processing of the image data for one frame is completed, the processing unit 17 writes the flag “1” in the corresponding area of the interrupt register IRReg. When the flag “1” is written to the interrupt register IRReg, the OR gate 16 outputs the interrupt signal IRa of the function macro A. Further, the function macro A stores any abnormality that occurs in the interrupt register IRReg as an abnormal interrupt flag. In response to this, an interrupt signal IRa is output.

機能マクロB,Cも同様の内部構成を有する。このように,機能マクロA,B,Cは,内部処理に応じて割り込みのイベントが発生すると,そのイベントに対応する割り込みレジスタ領域にフラグ「1」を書き込む。それにより自動的に割り込み信号IRaが出力される。また,何らかの異常発生時も異常割り込みフラグが割り込みレジスタに書き込まれ,割り込み信号が出力されてもよい。   The function macros B and C have the same internal configuration. As described above, when an interrupt event occurs according to internal processing, the function macros A, B, and C write the flag “1” in the interrupt register area corresponding to the event. As a result, the interrupt signal IRa is automatically output. Also, when any abnormality occurs, an abnormal interrupt flag may be written to the interrupt register and an interrupt signal may be output.

機能マクロAが1フレーム分の画像データの処理が完了すると,割り込み信号IRaを出力する。割り込みコントローラ11は,この割り込み信号IRaを受信する。割り込みコントローラ11は,機能マクロA内の割り込みレジスタIRRegをチェックして,正常割り込みか異常割り込みかを識別することができる。   When the function macro A completes processing of one frame of image data, it outputs an interrupt signal IRa. The interrupt controller 11 receives this interrupt signal IRa. The interrupt controller 11 can check the interrupt register IRReg in the function macro A to identify whether it is a normal interrupt or an abnormal interrupt.

機能マクロBは,機能マクロAからの処理済みの信号Saを同期信号SyncAと共に入力し,前述の画像縮小処理を行う。1フレーム分の画像縮小処理が完了すると,機能マクロAと同様に,機能マクロB内の割り込みレジスタに正常終了フラグ「1」が書き込まれ,割り込み信号IRbを出力する。割り込みコントローラ11は,割り込み信号IRbに応答して,機能マクロB内の割り込みレジスタをチェックし,正常割り込みか異常割り込みかを確認する。   The function macro B inputs the processed signal Sa from the function macro A together with the synchronization signal SyncA, and performs the above-described image reduction process. When the image reduction process for one frame is completed, as in the case of the function macro A, the normal end flag “1” is written to the interrupt register in the function macro B, and the interrupt signal IRb is output. In response to the interrupt signal IRb, the interrupt controller 11 checks the interrupt register in the function macro B to confirm whether it is a normal interrupt or an abnormal interrupt.

最後に,機能マクロCは,機能マクロBから処理済みの信号Sbを同期信号SyncBと共に入力し,前述のフォーマット変換処理を行う。そして,1フレーム分のフォーマット変換処理が完了すると,処理済み画像データScをメモリコントローラ13を介して外部メモリ14に格納する。外部メモリ14への転送が完了すると,機能マクロCは他のマクロと同様に割り込み信号IRcを出力する。   Finally, the function macro C receives the processed signal Sb from the function macro B together with the synchronization signal SyncB, and performs the above-described format conversion process. When the format conversion process for one frame is completed, the processed image data Sc is stored in the external memory 14 via the memory controller 13. When the transfer to the external memory 14 is completed, the function macro C outputs the interrupt signal IRc like the other macros.

図3は,本実施の形態における割り込みコントローラの構成図である。本実施の形態の割り込みコントローラ11は,割り込み信号IRa,IRb,IRcを受信して,割り込み信号IRxをCPU12に出力する割り込み判定部112と,割り込み順序設定レジスタ110と,割り込み要因レジスタ114とを有する。割り込み判定部112は,一種のステートマシンであり,機能マクロA,B,Cからの割り込み信号IRa,IRb,IRcにより,状態が遷移する。割り込み順序設定レジスタ110は,正常動作時の割り込み信号の順序を設定するレジスタであり,例えばCPU12を介して外部から設定することができる。   FIG. 3 is a configuration diagram of the interrupt controller in the present embodiment. The interrupt controller 11 according to the present embodiment includes an interrupt determination unit 112 that receives interrupt signals IRa, IRb, and IRc and outputs the interrupt signal IRx to the CPU 12, an interrupt order setting register 110, and an interrupt factor register 114. . The interrupt determination unit 112 is a kind of state machine, and the state is changed by interrupt signals IRa, IRb, and IRc from the function macros A, B, and C. The interrupt order setting register 110 is a register for setting the order of interrupt signals during normal operation, and can be set from the outside via the CPU 12, for example.

割り込み判定部112は,この割り込み順序設定レジスタ110に設定された順序で割り込み信号IRa,IRb,IRcを受信した場合は,CPU12に正常割り込みを発行するが,その順序以外の順序で受信した場合は,異常割り込みを発行する。割り込み要因レジスタ114は,割り込み信号IRxが出力されるときに,その割り込み要因に応じてフラグが格納されるレジスタである。例えば,割り込み信号が設定された正常な割り込み順序で受信された場合は,割り込み要因は正常終了である。一方,割り込み順序とは異なる順序で割り込み信号が受信された場合は,割り込み要因は異常発生である。割り込み判定部112は,割り込み要因レジスタ114に正常か異常かの割り込み要因フラグを書き込むと共に,CPU12に対して割り込み要求信号IRxを出力する。これに応答して,CPU12は,割り込み要因レジスタ114を信号20を介して読み出し,割り込み要求信号IRxが正常割り込みか異常割り込みかを判別する。特に,異常割り込み要因の場合は,どの機能マクロが異常かについての情報も割り込み要因レジスタ114に書き込まれる。よって,CPU12はどの機能マクロに異常が発生したかを識別することができる。   When the interrupt determination unit 112 receives the interrupt signals IRa, IRb, and IRc in the order set in the interrupt order setting register 110, the interrupt determination unit 112 issues a normal interrupt to the CPU 12, but when the interrupt signals are received in an order other than the order, , Issue an abnormal interrupt. The interrupt factor register 114 is a register that stores a flag according to the interrupt factor when the interrupt signal IRx is output. For example, when the interrupt signals are received in the normal interrupt order that has been set, the interrupt factor is a normal end. On the other hand, when the interrupt signals are received in an order different from the interrupt order, the interrupt factor is an abnormality. The interrupt determination unit 112 writes a normal or abnormal interrupt factor flag in the interrupt factor register 114 and outputs an interrupt request signal IRx to the CPU 12. In response to this, the CPU 12 reads the interrupt factor register 114 via the signal 20 and determines whether the interrupt request signal IRx is a normal interrupt or an abnormal interrupt. In particular, in the case of an abnormal interrupt factor, information about which function macro is abnormal is also written to the interrupt factor register 114. Therefore, the CPU 12 can identify which function macro has an abnormality.

図4は,割り込み判定部の状態遷移図である。状態C1〜C6がそれぞれの発生イベントに応じて図示する状態に移転する。開始状態C1は,無条件に機能マクロAからの割り込み待ち状態C2に遷移する。通常の動作では,機能マクロA,B,Cの順序で処理がなされるので,状態C2で機能マクロAからの割り込み信号IRaを受信すると,機能マクロBからの割り込み待ち状態C3に遷移する。その状態C3で,機能マクロBからの割り込み信号IRbを受信すると,機能マクロCからの割り込み待ち状態C4に遷移し,更にその状態C4で機能マクロCからの割り込み信号IRcを受信すると,CPUに正常割り込みを発行する状態C5に遷移する。割り込み判定部112は,割り込み要因レジスタに正常割り込みフラグを格納し,割り込み信号IRxを出力すると,状態C2に遷移する。CPU12は,信号20を介して割り込み要因レジスタ114をチェックすることで正常割り込みであることを識別する。   FIG. 4 is a state transition diagram of the interrupt determination unit. The states C1 to C6 are transferred to the illustrated state in accordance with each occurrence event. The start state C1 unconditionally transits to an interrupt wait state C2 from the function macro A. In normal operation, processing is performed in the order of the function macros A, B, and C. Therefore, when the interrupt signal IRa from the function macro A is received in the state C2, the state transits to the interrupt waiting state C3 from the function macro B. When the interrupt signal IRb from the function macro B is received in the state C3, the state transits to the interrupt wait state C4 from the function macro C, and when the interrupt signal IRc from the function macro C is further received in the state C4, the CPU is normal. Transition to state C5 for issuing an interrupt. When the interrupt determination unit 112 stores the normal interrupt flag in the interrupt factor register and outputs the interrupt signal IRx, the interrupt determination unit 112 transits to the state C2. The CPU 12 identifies a normal interrupt by checking the interrupt factor register 114 via the signal 20.

上記の通常処理の順序とは異なる順序で割り込み信号を受信すると,割り込み判定部112は,異常割り込みをCPU12に対して発行する。すなわち,状態C2で機能マクロBまたはCから割り込み信号IRb,IRcを受信すると異常割り込み発行状態C6に遷移する。同様に状態C3で割り込み信号IRc,IRaを受信した場合,状態C4で割り込み信号IRa,ORbを受信した場合,いずれも異常割り込み発行状態C6に遷移する。異常割り込み発行状態では,割り込み判定部112は,割り込み要因レジスタ114に異常割り込み要因のフラグを書き込み,割り込み要求信号IRxをCPU12に発行する。割り込み要因レジスタ114には,例えば,機能マクロ毎に異常フラグ領域を有し,異常な順序で割り込み信号を発生した機能マクロに対応する領域に異常フラグが格納される。CPU12は,割り込み要求信号IRxに応答して割り込み要因レジスタ114をチェックすることで,異常割り込みであることを認識する。また,どの領域の異常フラグかによって,どの機能マクロが異常状態になったかを識別する。   When interrupt signals are received in an order different from the order of the normal processing, the interrupt determination unit 112 issues an abnormal interrupt to the CPU 12. That is, when the interrupt signals IRb and IRc are received from the function macro B or C in the state C2, the state transits to the abnormal interrupt issue state C6. Similarly, when the interrupt signals IRc and IRa are received in the state C3 and when the interrupt signals IRa and ORb are received in the state C4, both transition to the abnormal interrupt issue state C6. In the abnormal interrupt issuance state, the interrupt determination unit 112 writes an abnormal interrupt factor flag in the interrupt factor register 114 and issues an interrupt request signal IRx to the CPU 12. The interrupt factor register 114 has, for example, an abnormality flag area for each function macro, and an abnormality flag is stored in an area corresponding to the function macro that has generated an interrupt signal in an abnormal order. The CPU 12 recognizes an abnormal interrupt by checking the interrupt factor register 114 in response to the interrupt request signal IRx. Also, which function macro is in an abnormal state is identified depending on which region has an abnormal flag.

CPU12は,正常割り込みを認識すると,内部バスBUSを介して機能マクロA,B,C内の割り込みレジスタIRRegをクリアする。それにより,各機能マクロA,B,Cの割り込み状態が解除される。また,機能マクロA,B,Cからなるカメラインターフェースがカメラモジュールからの1フレーム分の画像データVDを外部メモリ14に格納した状態であるので,CPU12は,その後外部メモリ14内の画像データに対して所定の画像処理を行う。例えば,画像処理には,JPEG符号化,MPEG符号化,モニタ表示装置への表示処理などが含まれる。   When the CPU 12 recognizes a normal interrupt, it clears the interrupt register IRReg in the function macros A, B, and C via the internal bus BUS. As a result, the interrupt states of the function macros A, B, and C are released. In addition, since the camera interface composed of the function macros A, B, and C is in a state in which the image data VD for one frame from the camera module is stored in the external memory 14, the CPU 12 thereafter processes the image data in the external memory 14. Predetermined image processing. For example, the image processing includes JPEG encoding, MPEG encoding, display processing on a monitor display device, and the like.

CPU12は,異常割り込みを認識すると,異常発生した機能マクロをリセットし初期状態に戻す。また,異常発生要因に応じた処理を実行する。例えば,各機能マクロの割り込みレジスタをクリアすると共に,割り込みコントローラ11の割り込み要因レジスタ114をクリアする。   When the CPU 12 recognizes the abnormal interrupt, it resets the function macro in which the abnormality has occurred and returns it to the initial state. Also, processing according to the cause of the abnormality is executed. For example, the interrupt register of each function macro is cleared and the interrupt factor register 114 of the interrupt controller 11 is cleared.

上記のように,割り込みコントローラ11を設けたことで,各機能マクロA,B,Cからの割り込み信号IRa,IRb,IRcによりその都度CPU12がディスターブされることはなく,割り込み信号の受信に伴ってCPUによる実行中のジョブ退避などの割り込み処理を減らすことができる。また,割り込みコントローラ11は,機能マクロからの割り込み信号が正常な順序で受信したか否かをチェックするので,正常な順序で受信した場合は正常割り込みを発行することができ,正常でない順序で受信した場合は異常割り込みを発行することができる。よって,ハードウエアのバグやソフトウエアのバグにより割り込み信号の順序が正常と異なる場合には,割り込みコントローラ11がそれを検出し,CPU12に異常割り込みを発行することができる。   As described above, since the interrupt controller 11 is provided, the CPU 12 is not disturbed each time by the interrupt signals IRa, IRb, IRc from the function macros A, B, C, and the interrupt signal is received. Interrupt processing such as job saving during execution by the CPU can be reduced. The interrupt controller 11 checks whether or not the interrupt signals from the function macro are received in a normal order. If the interrupt signals are received in the normal order, the interrupt controller 11 can issue a normal interrupt and receive it in an abnormal order. If this happens, an abnormal interrupt can be issued. Therefore, when the order of interrupt signals is different from normal due to a hardware bug or software bug, the interrupt controller 11 can detect it and issue an abnormal interrupt to the CPU 12.

図5は,第2の実施の形態におけるマイクロコンピュータの構成図である。このマイクロコンピュータMCONは,前述の実施の形態と同様にデジタルスチルカメラの制御コンピュータであり,周辺リソースとして3つの機能マクロA,B,Cを有する。また,マイクロコンピュータMCONは,外部デバイスであるカメラモジュール10と,外部メモリ14とに接続されている。この実施の形態では,機能マクロAは,図2の機能マクロA,B,Cからなるカメラインターフェースに対応し,カメラモジュール10からの画像データVDをモニタ表示装置15のサイズとフォーマットに対応した画像データに変換して外部メモリ14に転送する処理を行う。機能マクロBは,外部メモリ14内の画像データを読み出し,その画像を90度回転処理して,再度外部メモリ14に格納する。機能マクロCは,外部メモリ14に格納された画像データを読み出し,液晶表示装置からなるモニタ表示装置15に出力して表示させる。つまり,このマイクロコンピュータMCONは,カメラモジュール10で撮像された画像データを,フレーム毎に画像処理してモニタ表示装置15に表示し続ける。そして,カメラモジュール10でシャッターが押されるなどのイベントが起きると,その時のフレーム画像が,撮影データとして外部メモリ14に記録される。   FIG. 5 is a configuration diagram of the microcomputer according to the second embodiment. This microcomputer MCON is a digital still camera control computer as in the above-described embodiment, and has three function macros A, B, and C as peripheral resources. The microcomputer MCON is connected to the camera module 10 which is an external device and an external memory 14. In this embodiment, the function macro A corresponds to the camera interface composed of the function macros A, B, and C in FIG. A process of converting the data to the external memory 14 is performed. The function macro B reads the image data in the external memory 14, rotates the image by 90 degrees, and stores the image data in the external memory 14 again. The function macro C reads the image data stored in the external memory 14 and outputs it to the monitor display device 15 comprising a liquid crystal display device for display. In other words, the microcomputer MCON continues to display the image data captured by the camera module 10 on the monitor display device 15 by performing image processing for each frame. When an event occurs such as when the shutter is pressed in the camera module 10, the frame image at that time is recorded in the external memory 14 as shooting data.

この実施の形態においても,各機能マクロA,B,Cは,図2に示したように割り込みレジスタIRRegとOR回路16を有し,機能マクロ内で割り込みレジスタに割り込みフラグ「1」が書き込まれると,割り込み信号IRa,IRb,IRcが出力される。また,割り込みコントローラ11は,各機能マクロからの割り込み信号の正常な順序での受信と異常な順序での受信とを監視し,正常割り込みまたは異常割り込みをCPU12に発行する。そして,本実施の形態では,割り込みコントローラ11は,各機能マクロに対して正常な順序で割り込み信号を受信した場合に,次の処理を行う機能マクロを起動する起動信号INb,INcを出力する。つまり,割り込み信号IRaを受信すると,割り込みコントローラ11は起動信号INbを機能マクロBに出力して起動させる。同様に,割り込み信号IRbを受信すると,起動信号INcを機能マクロCに出力して起動させる。また,割り込み信号IRcを受信すると,割り込みコントローラ11は,CPU12に正常割り込みを発行する。CPU12はそれに応答して,機能マクロAに対して起動信号INaを出力する。さらに,割り込みコントローラ11は,異常な順序で割り込み信号を受信した時は,上記起動信号を出力することなく,CPU12に異常割り込みを発行する。   Also in this embodiment, each of the function macros A, B, and C has the interrupt register IRReg and the OR circuit 16 as shown in FIG. 2, and the interrupt flag “1” is written in the interrupt register within the function macro. Interrupt signals IRa, IRb, IRc are output. Further, the interrupt controller 11 monitors reception of interrupt signals from each function macro in a normal order and reception in an abnormal order, and issues a normal interrupt or an abnormal interrupt to the CPU 12. In this embodiment, when the interrupt controller 11 receives interrupt signals in the normal order for each function macro, the interrupt controller 11 outputs start signals INb and INc for starting the function macro for performing the next processing. That is, when the interrupt signal IRa is received, the interrupt controller 11 outputs the activation signal INb to the function macro B to activate it. Similarly, when the interrupt signal IRb is received, the activation signal INc is output to the function macro C to be activated. When receiving the interrupt signal IRc, the interrupt controller 11 issues a normal interrupt to the CPU 12. In response to this, the CPU 12 outputs an activation signal INa to the function macro A. Furthermore, when the interrupt controller 11 receives interrupt signals in an abnormal order, it issues an abnormal interrupt to the CPU 12 without outputting the start signal.

図6は,第2の実施の形態における割り込みコントローラの構成図である。図3と同様に,この割り込みコントローラ11も,割り込み信号IRa,IRb,IRcを受信して,割り込み信号IRxをCPU12に出力する割り込み判定部112と,割り込み順序設定レジスタ110と,割り込み要因レジスタ114とを有する。割り込み判定部112は,一種のステートマシンであり,機能マクロA,B,Cからの割り込み信号IRa,IRb,IRcにより内部状態が遷移する。また,割り込み順序設定レジスタ110は,正常動作時の割り込み信号の順序を設定するレジスタであり,例えばCPU12を介して外部から設定することができる。さらに,割り込みコントローラ11はマクロ起動制御部116を有し,マクロ起動制御部116は,割り込み信号IRa,IRbに応答して対応する起動信号INb,INcを出力する。   FIG. 6 is a configuration diagram of the interrupt controller according to the second embodiment. Similarly to FIG. 3, the interrupt controller 11 also receives the interrupt signals IRa, IRb, IRc and outputs the interrupt signal IRx to the CPU 12, an interrupt order setting register 110, an interrupt factor register 114, Have The interrupt determination unit 112 is a kind of state machine, and the internal state is changed by interrupt signals IRa, IRb, IRc from the function macros A, B, C. The interrupt order setting register 110 is a register for setting the order of interrupt signals during normal operation, and can be set from the outside via the CPU 12, for example. Further, the interrupt controller 11 has a macro activation control unit 116, and the macro activation control unit 116 outputs corresponding activation signals INb and INc in response to the interrupt signals IRa and IRb.

図3と同様に,割り込み判定部112は,この割り込み順序設定レジスタ110に設定された順序で割り込み信号IRa,IRb,IRcを受信した場合は,正常割り込みを発行するが,その順序以外の順序で受信した場合は,異常割り込みを発行する。割り込み要因レジスタ114は,割り込み信号IRxが出力されるときに,その割り込み要因に応じてフラグが格納されるレジスタであり,割り込み判定部112は,この割り込み要因レジスタ114に正常または異常の要因フラグを書き込むと共に,CPU12に対して割り込み要求信号IRxを出力する。これに応答して,CPU12は,割り込み要因レジスタ114を信号線20を介して読み出し,割り込み要求信号IRxが正常割り込みか異常割り込みかを判別する。   As in FIG. 3, when the interrupt determination unit 112 receives the interrupt signals IRa, IRb, IRc in the order set in the interrupt order setting register 110, it issues a normal interrupt, but in an order other than that order. If received, issue an abnormal interrupt. The interrupt factor register 114 is a register that stores a flag according to the interrupt factor when the interrupt signal IRx is output. The interrupt determination unit 112 sets a normal or abnormal factor flag in the interrupt factor register 114. In addition to writing, an interrupt request signal IRx is output to the CPU 12. In response to this, the CPU 12 reads the interrupt factor register 114 via the signal line 20 and determines whether the interrupt request signal IRx is a normal interrupt or an abnormal interrupt.

図7は,割り込み判定部の状態遷移図である。まず,スタート状態C10から機能マクロAからの割り込み待ち状態C11に遷移する。正常処理では,状態C11から状態C12,C13,C14,C15,C16と遷移する。異常処理では,割り込み待ち状態C11,C13,C15から予定していない割り込み信号を受信して,状態C17に遷移する。以下,順に説明する。   FIG. 7 is a state transition diagram of the interrupt determination unit. First, a transition is made from the start state C10 to the interrupt wait state C11 from the function macro A. In normal processing, the state C11 transitions to the states C12, C13, C14, C15, and C16. In the abnormal process, an unscheduled interrupt signal is received from the interrupt wait states C11, C13, C15, and the state transitions to state C17. Hereinafter, it demonstrates in order.

まず,機能マクロ割り込み待ち状態C11で,CPU12により起動された機能マクロAが,カメラモジュール10からの1フレーム分の画像データを外部メモリ14に転送完了すると,割り込み信号IRaを出力する。割り込み判定部112は,割り込み信号IRaの受信に応答して状態C11から機能マクロBを起動する状態C12に遷移する。この状態で,割り込み判定部112は,マクロ起動制御部116に起動信号INbを出力させる。そして,機能マクロBからの割り込み待ち状態C13に遷移する。   First, in the function macro interrupt waiting state C11, when the function macro A activated by the CPU 12 completes transferring one frame of image data from the camera module 10 to the external memory 14, the interrupt signal IRa is output. The interrupt determination unit 112 makes a transition from the state C11 to the state C12 that activates the function macro B in response to reception of the interrupt signal IRa. In this state, the interrupt determination unit 112 causes the macro activation control unit 116 to output an activation signal INb. Then, the state transits to the interrupt waiting state C13 from the function macro B.

次に,機能マクロBが起動して画像回転処理を完了して外部メモリ14に格納すると,割り込み信号IRbが出力される。割り込み判定部112は,この割り込み信号IRbに応答して機能マクロCを起動する状態C14に遷移する。そして,マクロ起動制御部116に起動信号INcを出力させ,状態C15に遷移する。状態C15で,機能マクロCが起動して1フレームの画像データを外部メモリ14から読み出してモニタ表示装置に表示するLCD制御を完了すると,割り込み信号IRcが出力され,割り込み判定部112は,正常割り込みを発行する状態C16に遷移する。状態C16で,割り込み判定部112は,正常割り込みフラグを割り込み要因レジスタ114に書き込み,割り込み要求信号IRxをCPU12に出力し,状態C11に遷移する。CPU12は,この割り込み要求信号IRxに応答して割り込み要因レジスタ114をチェックし,正常割り込みであることを認識すると,内部バスBUSを経由して全機能マクロA,B,C内の割り込みレジスタをクリアし,機能マクロAに起動信号INaを出力する。また,CPU12は,割り込みコントローラ11の割り込み要因レジスタ114を信号20を経由してクリアにする。   Next, when the function macro B is activated to complete the image rotation process and store it in the external memory 14, an interrupt signal IRb is output. The interrupt determination unit 112 transitions to a state C14 in which the function macro C is activated in response to the interrupt signal IRb. Then, the macro activation control unit 116 is caused to output the activation signal INc, and the state transitions to the state C15. In the state C15, when the function macro C is activated and the LCD control for reading one frame of image data from the external memory 14 and displaying it on the monitor display device is completed, the interrupt signal IRc is output, and the interrupt determination unit 112 Transition to state C16 to issue. In state C16, the interrupt determination unit 112 writes a normal interrupt flag to the interrupt factor register 114, outputs an interrupt request signal IRx to the CPU 12, and transitions to state C11. The CPU 12 checks the interrupt factor register 114 in response to the interrupt request signal IRx, and when it recognizes that it is a normal interrupt, it clears the interrupt registers in all function macros A, B, and C via the internal bus BUS. Then, the start signal INa is output to the function macro A. Further, the CPU 12 clears the interrupt factor register 114 of the interrupt controller 11 via the signal 20.

割り込み判定部112は,状態C11,C13,C15にて,正常な順序と異なる割り込み信号を受信すると,それぞれ異常割り込み発行状態C17に遷移する。そして,割り込み判定部112は,割り込み要因レジスタ114に異常フラグを格納すると共に,割り込み要求信号IRxをCPU12に出力する。CPU12は,この割り込み要求信号IRxに応答して割り込み要因レジスタ114の異常フラグを検出して,異常割り込みを認識する。そして,異常割り込みの時は,CPU12は,各機能マクロの割り込みレジスタをクリアし,異常な順序で割り込み信号を出力した機能マクロをリセットする。また,割り込み要因レジスタ114もクリアする。   When the interrupt determination unit 112 receives an interrupt signal different from the normal order in the states C11, C13, and C15, the interrupt determination unit 112 transitions to an abnormal interrupt issue state C17. Then, the interrupt determination unit 112 stores an abnormality flag in the interrupt factor register 114 and outputs an interrupt request signal IRx to the CPU 12. In response to the interrupt request signal IRx, the CPU 12 detects an abnormal flag in the interrupt factor register 114 and recognizes an abnormal interrupt. When an abnormal interrupt occurs, the CPU 12 clears the interrupt register of each function macro and resets the function macro that has output the interrupt signal in an abnormal order. Also, the interrupt factor register 114 is cleared.

割り込み要因レジスタ114には,機能マクロに対応して異常フラグ領域を有する。そして,割り込み判定部112は,異常な順序で割り込み信号を受信したとき,それに対応する機能マクロの異常フラグ領域に異常フラグを書き込む。CPU12は,どの機能マクロに異常が発生したかをこれにより識別可能である。   The interrupt factor register 114 has an abnormality flag area corresponding to the function macro. When the interrupt determination unit 112 receives interrupt signals in an abnormal order, the interrupt determination unit 112 writes an abnormality flag in the abnormality flag area of the corresponding function macro. The CPU 12 can identify which function macro has an abnormality.

上記第2の実施の形態では,割り込みコントローラ11が,正常な順序で割り込み信号を受信したときに正常割り込みをCPUに発行するので,CPUが高い頻度で割り込み信号を受信してディスターブされるのを低減できる。また,割り込みコントローラ11は,異常な順序で割り込み信号を受信した場合には,異常割り込みをCPUに発行することができる。さらに,割り込みコントローラ11は,各機能マクロから正常な順序で割り込み信号を受信した時に,次に処理を行うべき機能マクロを起動する。したがって,その分CPUの負担を軽減することができる。   In the second embodiment, since the interrupt controller 11 issues a normal interrupt to the CPU when receiving the interrupt signals in a normal order, the CPU receives the interrupt signal frequently and is disturbed. Can be reduced. Further, the interrupt controller 11 can issue an abnormal interrupt to the CPU when receiving the interrupt signals in an abnormal order. Further, when the interrupt controller 11 receives an interrupt signal from each function macro in a normal order, the interrupt controller 11 activates a function macro to be processed next. Therefore, the burden on the CPU can be reduced accordingly.

前述の2つの実施の形態において,割り込みコントローラ11は,3つの機能マクロからの割り込み信号が正常な順序か否かを監視して,異常な順序であれば異常割り込みをCPUに発行する。さらに,割り込みコントローラ11は,各機能マクロからの割り込み信号に応答して,各機能マクロ内の割り込みレジスタをチェックし,正常割り込みか異常割り込みかを確認してもよい。その場合,異常割り込みであることが検出されると,CPUに対して異常割り込みを発行する。この場合,割り込み判定部112は,対応する機能マクロからの異常割り込みであることを示すフラグを割り込み要因レジスタ114の対応する領域に格納し,CPU12に割り込み要求信号IRxを出力する。CPU12は,その割り込み要因レジスタ114をチェックして,異常割り込み対象の機能マクロを認識し,その機能マクロのリセットを実行する。   In the two embodiments described above, the interrupt controller 11 monitors whether or not the interrupt signals from the three function macros are in a normal order, and issues an abnormal interrupt to the CPU if the order is abnormal. Further, the interrupt controller 11 may check an interrupt register in each function macro in response to an interrupt signal from each function macro to confirm whether it is a normal interrupt or an abnormal interrupt. In that case, when it is detected that the interrupt is abnormal, an abnormal interrupt is issued to the CPU. In this case, the interrupt determination unit 112 stores a flag indicating an abnormal interrupt from the corresponding function macro in a corresponding area of the interrupt factor register 114, and outputs an interrupt request signal IRx to the CPU 12. The CPU 12 checks the interrupt factor register 114, recognizes the function macro subject to the abnormal interrupt, and resets the function macro.

以上の実施の形態をまとめると,次の付記のとおりである。   The above embodiment is summarized as follows.

(付記1)中央処理ユニットと,複数の機能マクロと,前記中央処理ユニット及び複数の機能マクロとを接続する内部バスとを有するマイクロコンピュータにおいて,
前記複数の機能マクロそれぞれから第1の割り込み信号を受信し,当該複数の第1の割り込み信号が所定の順序で発生した時に前記中央処理ユニットに第2の割り込み信号を出力する割り込みコントローラを有することを特徴とするマイクロコンピュータ。
(Supplementary note 1) In a microcomputer having a central processing unit, a plurality of function macros, and an internal bus connecting the central processing unit and the plurality of function macros,
An interrupt controller that receives a first interrupt signal from each of the plurality of function macros and outputs a second interrupt signal to the central processing unit when the plurality of first interrupt signals are generated in a predetermined order; A microcomputer characterized by.

(付記2)付記1において,
前記割り込みコントローラは,前記複数の第1の割り込み信号が前記所定の順序に発生した時に,正常割り込み要因を割り込み要因レジスタに格納して前記中央処理ユニットに前記第2の割り込み信号を出力し,前記複数の第1の割り込み信号が所定の順序で発生しない時に,異常割り込み要因を前記割り込み要因レジスタに格納して前記中央処理ユニットに前記第2の割り込み信号を出力することを特徴とするマイクロコンピュータ。
(Appendix 2) In Appendix 1,
When the plurality of first interrupt signals are generated in the predetermined order, the interrupt controller stores a normal interrupt factor in an interrupt factor register and outputs the second interrupt signal to the central processing unit. A microcomputer characterized in that when a plurality of first interrupt signals are not generated in a predetermined order, an abnormal interrupt factor is stored in the interrupt factor register and the second interrupt signal is output to the central processing unit.

(付記3)付記2において,
前記中央処理ユニットは,前記第2の割り込み信号に応答して,前記割り込み要因レジスタの情報を読み出し,当該情報が正常割り込み要因の時は対応する割り込み処理を行い,異常割り込み要因の時は対応する機能マクロをリセットすることを特徴とするマイクロコンピュータ。
(Appendix 3) In Appendix 2,
In response to the second interrupt signal, the central processing unit reads the information in the interrupt factor register, performs the corresponding interrupt processing when the information is a normal interrupt factor, and responds when the information is an abnormal interrupt factor. A microcomputer characterized by resetting a function macro.

(付記4)付記1において,
前記割り込みコントローラは,前記第1の割り込み信号の所定の順序が設定される割り込み順序設定レジスタを有し,当該順序設定レジスタの所定の順序が任意に設定可能であることを特徴とするマイクロコンピュータ。
(Appendix 4) In Appendix 1,
The microcomputer according to claim 1, wherein the interrupt controller includes an interrupt order setting register in which a predetermined order of the first interrupt signal is set, and the predetermined order of the order setting register can be arbitrarily set.

(付記5)付記1において,
前記割り込みコントローラは,前記第1の割り込み信号の受信に応答して,前記機能マクロのいずれかを起動することを特徴とするマイクロコンピュータ。
(Appendix 5) In Appendix 1,
The microcomputer, wherein the interrupt controller activates one of the function macros in response to reception of the first interrupt signal.

(付記6)付記1において,
前記割り込みコントローラは,前記機能マクロからの割り込み信号に応答して,当該機能マクロ内の割り込みレジスタを読み出し,異常割り込み場合は,異常割り込み要因を前記割り込み要因レジスタに格納して前記中央処理ユニットに第2の割り込み信号を出力することを特徴とするマイクロコンピュータ。
(Appendix 6) In Appendix 1,
In response to an interrupt signal from the function macro, the interrupt controller reads the interrupt register in the function macro, and in the case of an abnormal interrupt, stores the abnormal interrupt factor in the interrupt factor register and stores it in the central processing unit. A microcomputer which outputs an interrupt signal of 2.

(付記7)付記1において,
前記複数の機能マクロは,外部のカメラモジュールから供給される画像データについて内部クロックのタイミングで出力する第1の機能マクロと,前記第1の機能マクロからの画像データを縮小処理する第2の機能マクロと,前記第2の機能マクロからの画像データを表示装置のフォーマットに変換するフォーマット変換処理をする第3の機能マクロとを有し,
前記第1乃至第3の機能マクロは,それぞれ1フレーム分の画像データを処理した時に,それぞれの割り込み信号を前記割り込みコントローラに出力することを特徴とするマイクロコンピュータ。
(Appendix 7) In Appendix 1,
The plurality of function macros include a first function macro that outputs image data supplied from an external camera module at the timing of an internal clock, and a second function that reduces the image data from the first function macro. A macro, and a third function macro that performs format conversion processing for converting image data from the second function macro into a display device format,
The microcomputer according to any one of claims 1 to 3, wherein each of the first to third function macros outputs an interrupt signal to the interrupt controller when image data for one frame is processed.

(付記8)付記1において,
前記複数の機能マクロは,外部のカメラモジュールから供給される画像データを所定サイズに変換して外部メモリに格納する第1の機能マクロと,前記第1の機能マクロにより変換処理された外部メモリの画像データを画像回転処理して前記外部メモリに格納する第2の機能マクロと,前記第2の機能マクロにより画像回転処理された外部メモリの画像データを表示装置に出力する第3の機能マクロとを有し,
前記第1乃至第3の機能マクロは,それぞれ1フレーム分の画像データを処理した時に,それぞれの割り込み信号を前記割り込みコントローラに出力することを特徴とするマイクロコンピュータ。
(Appendix 8) In Appendix 1,
The plurality of function macros include a first function macro that converts image data supplied from an external camera module into a predetermined size and stores the image data in an external memory, and an external memory converted by the first function macro. A second function macro for performing image rotation processing on image data and storing the image data in the external memory; and a third function macro for outputting image data in the external memory subjected to image rotation processing by the second function macro to a display device; Have
The microcomputer according to any one of claims 1 to 3, wherein each of the first to third function macros outputs an interrupt signal to the interrupt controller when image data for one frame is processed.

従来のマイクロコンピュータの概略構成図である。It is a schematic block diagram of the conventional microcomputer. 本実施の形態におけるマイクロコンピュータの構成図である。It is a block diagram of the microcomputer in this Embodiment. 本実施の形態における割り込みコントローラの構成図である。It is a block diagram of the interrupt controller in this Embodiment. 割り込み判定部の状態遷移図である。It is a state transition diagram of an interrupt determination unit. 第2の実施の形態におけるマイクロコンピュータの構成図である。It is a block diagram of the microcomputer in 2nd Embodiment. 第2の実施の形態における割り込みコントローラの構成図である。It is a block diagram of the interrupt controller in 2nd Embodiment. 割り込み判定部の状態遷移図である。It is a state transition diagram of an interrupt determination unit.

符号の説明Explanation of symbols

MCON:マイクロコンピュータ BUS:内部バス
11:割り込みコントローラ 12:中央処理ユニット
13:メモリコントローラ 14:外部メモリ
MCON: microcomputer BUS: internal bus 11: interrupt controller 12: central processing unit 13: memory controller 14: external memory

Claims (4)

中央処理ユニットと,複数の機能マクロと,前記中央処理ユニット及び複数の機能マクロとを接続する内部バスとを有するマイクロコンピュータにおいて,
前記複数の機能マクロそれぞれから第1の割り込み信号を受信し,前記複数の第1の割り込み信号が所定の順序に発生した時に,正常割り込み要因を割り込み要因レジスタに格納して前記中央処理ユニットに第2の割り込み信号を出力し,前記複数の第1の割り込み信号が前記所定の順序で発生しない時に,異常割り込み要因を前記割り込み要因レジスタに格納して前記中央処理ユニットに前記第2の割り込み信号を出力し,さらに,前記所定の順序に発生する第1の割り込み信号の受信に応答して,次に処理を行うべき機能マクロを起動する割り込みコントローラを有することを特徴とするマイクロコンピュータ。
In a microcomputer having a central processing unit, a plurality of function macros, and an internal bus connecting the central processing unit and the plurality of function macros,
When a first interrupt signal is received from each of the plurality of function macros and the plurality of first interrupt signals are generated in a predetermined order, a normal interrupt factor is stored in an interrupt factor register and stored in the central processing unit. When the plurality of first interrupt signals are not generated in the predetermined order, an abnormal interrupt factor is stored in the interrupt factor register and the second interrupt signal is sent to the central processing unit. A microcomputer having an interrupt controller that outputs and activates a function macro to be processed next in response to reception of a first interrupt signal generated in the predetermined order .
請求項1において,
前記中央処理ユニットは,前記第2の割り込み信号に応答して,前記割り込み要因レジスタの情報を読み出し,当該情報が正常割り込み要因の時は対応する割り込み処理を行い,異常割り込み要因の時は対応する機能マクロをリセットすることを特徴とするマイクロコンピュータ。
In claim 1,
In response to the second interrupt signal, the central processing unit reads the information in the interrupt factor register, performs the corresponding interrupt processing when the information is a normal interrupt factor, and responds when the information is an abnormal interrupt factor. A microcomputer characterized by resetting a function macro.
請求項1において,
前記割り込みコントローラは,前記第1の割り込み信号の所定の順序が設定される割り込み順序設定レジスタを有し,当該順序設定レジスタの所定の順序が任意に設定可能であることを特徴とするマイクロコンピュータ。
In claim 1,
The microcomputer according to claim 1, wherein the interrupt controller includes an interrupt order setting register in which a predetermined order of the first interrupt signal is set, and the predetermined order of the order setting register can be arbitrarily set.
請求項1において,
前記割り込みコントローラは,前記所定の順序でない第1の割り込み信号の受信に応答して,前記機能マクロの起動を行うことなく前記中央処理ユニットに前記第2の割り込み信号を出力することを特徴とするマイクロコンピュータ。
In claim 1,
The interrupt controller outputs the second interrupt signal to the central processing unit without activating the function macro in response to receiving the first interrupt signal not in the predetermined order. Microcomputer.
JP2005068423A 2005-03-11 2005-03-11 Microcomputer with built-in interrupt controller Expired - Fee Related JP4554402B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005068423A JP4554402B2 (en) 2005-03-11 2005-03-11 Microcomputer with built-in interrupt controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005068423A JP4554402B2 (en) 2005-03-11 2005-03-11 Microcomputer with built-in interrupt controller

Publications (2)

Publication Number Publication Date
JP2006252217A JP2006252217A (en) 2006-09-21
JP4554402B2 true JP4554402B2 (en) 2010-09-29

Family

ID=37092643

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005068423A Expired - Fee Related JP4554402B2 (en) 2005-03-11 2005-03-11 Microcomputer with built-in interrupt controller

Country Status (1)

Country Link
JP (1) JP4554402B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6314237A (en) * 1986-07-04 1988-01-21 Nec Corp Information processor
JPH0814794B2 (en) * 1992-12-21 1996-02-14 日本電気株式会社 Interrupt handling method
US5953535A (en) * 1997-03-28 1999-09-14 International Business Machines Corporation Using intelligent bus bridges with pico-code to service interrupts and improve interrupt response

Also Published As

Publication number Publication date
JP2006252217A (en) 2006-09-21

Similar Documents

Publication Publication Date Title
JP4887150B2 (en) Method and apparatus for monitoring and resetting a coprocessor
CN107077186B (en) Low power computational imaging
US20110242115A1 (en) Method for performing image signal processing with aid of a graphics processing unit, and associated apparatus
JP4761487B2 (en) Bus architecture and information processing apparatus using the same
US11169760B1 (en) Multi-screen display control device
JP2006351013A (en) Method and system for storing/restoring procedure in electronic equipment
US7552362B2 (en) Bridge, error notification method therefor and system
JP6330873B2 (en) Imaging device
US20110173361A1 (en) Information processing apparatus and exception control circuit
JP4313833B2 (en) CPU degeneration system and degeneration method using service processor
JP4554402B2 (en) Microcomputer with built-in interrupt controller
US7890685B2 (en) Multi-core data processor
US8436915B2 (en) Image processing apparatus
EP2012535A2 (en) Direct interface of camera module to general purpose i/o port of digital baseband processor
JP2001255860A (en) Video data transfer device and video data transferring method
JP4658860B2 (en) Image data transfer circuit
WO2018058368A1 (en) System performance improvement method, system performance improvement device and display device
JP2006285872A (en) Multi-cpu system
CN114840460B (en) Hot plug processing method, storage medium, electronic equipment and processing system
TWI533197B (en) Method for outputting image and electronic device for using the same
JP4389797B2 (en) Processor and information processing method
JP4921582B2 (en) Image data transfer circuit
US9367315B2 (en) Image processing semiconductor device and image processing device
JP4641018B2 (en) Image capturing device and image display device having the same
JP2011180653A (en) Data transfer device and data transfer method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071120

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20080731

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090728

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090825

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091023

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091117

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100713

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100714

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130723

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees