[go: up one dir, main page]

JP2011232800A - Microcomputer and image display apparatus - Google Patents

Microcomputer and image display apparatus Download PDF

Info

Publication number
JP2011232800A
JP2011232800A JP2010099810A JP2010099810A JP2011232800A JP 2011232800 A JP2011232800 A JP 2011232800A JP 2010099810 A JP2010099810 A JP 2010099810A JP 2010099810 A JP2010099810 A JP 2010099810A JP 2011232800 A JP2011232800 A JP 2011232800A
Authority
JP
Japan
Prior art keywords
register
selector
logic
signal
dma
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.)
Withdrawn
Application number
JP2010099810A
Other languages
Japanese (ja)
Inventor
Kentaro Yamakawa
健太郎 山川
Kosuke Hasuda
幸介 蓮田
Koji Takeda
幸治 竹田
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.)
Renesas Electronics Corp
Original Assignee
Renesas Electronics Corp
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 Renesas Electronics Corp filed Critical Renesas Electronics Corp
Priority to JP2010099810A priority Critical patent/JP2011232800A/en
Publication of JP2011232800A publication Critical patent/JP2011232800A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Liquid Crystal (AREA)
  • Microcomputers (AREA)
  • Digital Computer Display Output (AREA)

Abstract

【課題】LCDダイレクトドライブのための制御にハードウェアを用いることで、ユーザプログラム作成の負担軽減を図る。
【解決手段】クロック信号を形成可能なタイマパルスユニット(103)と、表示用データを液晶ディスプレイへDMA転送可能なDMAコントローラ(110)と、上記DMA転送に用いられる第1クロック信号と、上記液晶ディスプレイへの表示に用いられる第2クロック信号とを選択的に上記液晶ディスプレイのクロック入力端子へ伝達可能なセレクタ(105)とを設ける。また上記セレクタの選択状態を設定可能なレジスタ(106)と、上記レジスタの設定情報に基づいて、上記セレクタの選択状態を上記DMA転送に同期して制御するための制御論理(107)とを設ける。ユーザプログラムにおいては、LCDダイレクトドライブのための制御に関して上記レジスタへの設定を行うだけで良いので、ユーザプログラム作成の負担を軽減できる。
【選択図】図1
The burden of creating a user program is reduced by using hardware for control for LCD direct drive.
A timer pulse unit (103) capable of forming a clock signal, a DMA controller (110) capable of performing DMA transfer of display data to a liquid crystal display, a first clock signal used for the DMA transfer, and the liquid crystal A selector (105) capable of selectively transmitting a second clock signal used for display on the display to a clock input terminal of the liquid crystal display is provided. Further, a register (106) capable of setting the selection state of the selector and a control logic (107) for controlling the selection state of the selector in synchronization with the DMA transfer based on the setting information of the register are provided. . In the user program, it is only necessary to set the register regarding the control for the LCD direct drive, so the burden of creating the user program can be reduced.
[Selection] Figure 1

Description

本発明は、マイクロコンピュータからLCD(Liquid Crystal Display;液晶ディスプレイ)へ表示用データをDMA(Direct Memory Access)転送して表示する技術に関する。   The present invention relates to a technique for transferring display data from a microcomputer to an LCD (Liquid Crystal Display) by DMA (Direct Memory Access) for display.

特許文献1には、データバスの使用に関する制御回路を内蔵した集積回路において入出力ピン数を削減するための技術が記載されている。それによれば、パラレル・シリアル変換部10はDMAデバイス4が出力するリクエスト信号DREQ0〜3を直列化リクエスト信号SREQに変換してLSI16に入力する。LSI16ではシリアル・パラレル変換部14がこの直列化リクエスト信号SREQより各DMAデバイス4に対応するリクエスト信号CREQ0〜3を生成しDMAコントローラ12に供給する。一方、DMAコントローラ12が出力するアクノリッジ信号CACK0〜3は、エンコード部24により2ビットデジタル信号EACKに変換されてLSI16より出力され、デコード部26はこのデジタル信号より各DMAデバイス4へのアクノリッジ信号DACK0〜3を生成する。   Patent Document 1 describes a technique for reducing the number of input / output pins in an integrated circuit incorporating a control circuit related to the use of a data bus. According to this, the parallel / serial converter 10 converts the request signals DREQ0 to DREQ3 output from the DMA device 4 into a serialized request signal SREQ and inputs it to the LSI 16. In the LSI 16, the serial / parallel converter 14 generates request signals CREQ 0 to 3 corresponding to the respective DMA devices 4 from the serialized request signal SREQ and supplies them to the DMA controller 12. On the other hand, the acknowledge signals CACK0-3 output from the DMA controller 12 are converted into a 2-bit digital signal EACK by the encoding unit 24 and output from the LSI 16, and the decoding unit 26 receives an acknowledge signal DACK0 to each DMA device 4 from the digital signal. Generate ~ 3.

特許文献2には、表示データの転送方式を改善し、低消費電力が少く大容量表示に適したマトリクス型表示制御装置を提供するための技術が記載されている。それによれば、モジュール・コントローラ100は、低周波発振回路110、その低周波クロックfLを基に走査スタート信号YD等を生成するタイミング信号発生回路120、ホストMPU10との通信とシステムバス14aを監視しVRAM12内の表示データ更新に対し間欠動作開始制御信号STを作成するスタンバイ回路130を有する。そして低周波クロックfL に位相同期する高周波クロックを作成する高周波発振回路140、VRAM12から専用バス14bを介して表示データをダイレクトメモリアクセスで読み出し、データバス17を介してXドライバ250−1〜250−Nのフレームメモリ252へ転送するDMA回路150を有する。   Patent Document 2 describes a technique for improving a display data transfer method and providing a matrix type display control device that has low power consumption and is suitable for large-capacity display. According to this, the module controller 100 monitors the low-frequency oscillation circuit 110, the timing signal generation circuit 120 that generates the scan start signal YD and the like based on the low-frequency clock fL, the communication with the host MPU 10, and the system bus 14a. A standby circuit 130 for creating an intermittent operation start control signal ST for updating display data in the VRAM 12 is provided. The display data is read out from the high-frequency oscillation circuit 140 and the VRAM 12 that are phase-synchronized with the low-frequency clock fL and the VRAM 12 through the dedicated bus 14b by direct memory access, and the X drivers 250-1 to 250- are connected through the data bus 17. It has a DMA circuit 150 for transferring to N frame memories 252.

特開平11−250002号公報Japanese Patent Laid-Open No. 11-250002 特開平06−130910号公報JP-A-06-130910

本願発明者は、LCDコントローラを使わずにマイクロコンピュータからLCDへデータをDMA転送して表示する技術(「LCDダイレクトドライブ」という)について検討した。LCDダイレクトドライブ機能を有するマイクロコンピュータは、内部データ転送用のDMACとは別に、LCDへの画像データ転送と同時にCPUによる制御/処理を可能にするDMAC(これを「EXDMAC」という)を搭載し、このEXDMACを使うことで、内部バスと外部バスをそれぞれ独立に動作させ、LCDコントローラを使わずにLCDを制御することが可能となる。このようなLCDダイレクトドライブ機能を有するマイクロコンピュータは、所定の端子を介してLCDへのデータ転送と、当該データのLCDへの表示との制御を行うようにしている。   The inventor of the present application has studied a technique (hereinafter referred to as “LCD direct drive”) that performs DMA transfer of data from a microcomputer to an LCD without using an LCD controller. A microcomputer having an LCD direct drive function is equipped with a DMAC (hereinafter referred to as “EXDMAC”) that enables control / processing by the CPU simultaneously with image data transfer to the LCD, in addition to the DMAC for internal data transfer. By using this EXDMAC, the internal bus and the external bus can be operated independently, and the LCD can be controlled without using the LCD controller. Such a microcomputer having an LCD direct drive function controls data transfer to the LCD and display of the data on the LCD via a predetermined terminal.

LCDダイレクトドライブのための制御においては、表示用データをLCDにDMA転送する場合のクロック信号と、転送された表示用データを表示するためのクロック信号とを、マイクロコンピュータ側で切り替える必要がある。マイクロコンピュータからLCDに供給されるクロック信号の周波数は、マイクロコンピュータに結合されるLCDの仕様によって異なるため、LCDに供給されるクロック信号の切り替えは、マイクロコンピュータで実行されるソフトウェア(ユーザプログラム)によって行われる。このため、ユーザプログラムの作成において、LCDダイレクトドライブのための制御を考慮しなければならず、ユーザプログラム作成に手間がかかった。尚、このような課題は、特許文献1,2記載の技術では解決することはできない。   In the control for the LCD direct drive, it is necessary to switch on the microcomputer side between a clock signal when the display data is DMA-transferred to the LCD and a clock signal for displaying the transferred display data. Since the frequency of the clock signal supplied from the microcomputer to the LCD varies depending on the specifications of the LCD coupled to the microcomputer, the clock signal supplied to the LCD is switched by software (user program) executed by the microcomputer. Done. For this reason, in creating the user program, it is necessary to consider the control for the LCD direct drive, and it takes time and effort to create the user program. Such a problem cannot be solved by the techniques described in Patent Documents 1 and 2.

本発明の目的は、LCDダイレクトドライブのための制御にハードウェアを用いることで、ユーザプログラム作成の負担軽減を図ることにある。   An object of the present invention is to reduce the burden of creating a user program by using hardware for control for an LCD direct drive.

本発明の前記並びにその他の目的と新規な特徴は本明細書の記述及び添付図面から明らかになるであろう。   The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.

本願において開示される発明のうち代表的なものの概要を簡単に説明すれば下記の通りである。   The following is a brief description of an outline of typical inventions disclosed in the present application.

すなわち、マイクロコンピュータには、クロック信号を形成可能なタイマパルスユニットと、上記タイマパルスユニットからの割り込み要求に応じて起動され、表示用データを液晶ディスプレイへDMA転送可能なDMAコントローラと、上記DMA転送に用いられる第1クロック信号と、上記液晶ディスプレイへの表示に用いられる第2クロック信号とを選択的に上記液晶ディスプレイのクロック入力端子へ伝達可能なセレクタとを設ける。また上記マイクロコンピュータは、上記セレクタの選択状態を設定可能なレジスタと、上記レジスタの設定情報に基づいて、上記セレクタの選択状態を上記DMA転送に同期して制御するための制御論理とを設ける。   That is, the microcomputer has a timer pulse unit capable of forming a clock signal, a DMA controller that is activated in response to an interrupt request from the timer pulse unit, and capable of DMA transfer of display data to the liquid crystal display, and the DMA transfer. A selector capable of selectively transmitting a first clock signal used for the display and a second clock signal used for display on the liquid crystal display to a clock input terminal of the liquid crystal display. The microcomputer includes a register capable of setting the selection state of the selector, and control logic for controlling the selection state of the selector in synchronization with the DMA transfer based on setting information of the register.

本願において開示される発明のうち代表的なものによって得られる効果を簡単に説明すれば下記のとおりである。   The effects obtained by the representative ones of the inventions disclosed in the present application will be briefly described as follows.

すなわち、LCDダイレクトドライブのための制御にハードウェアを用いることで、ユーザプログラム作成の負担軽減を図ることができる。   That is, by using hardware for the control for the LCD direct drive, it is possible to reduce the burden of creating a user program.

本発明にかかるマイクロコンピュータの構成例を示すブロック図である。It is a block diagram which shows the structural example of the microcomputer concerning this invention. 上記マイクロコンピュータを含む画像表示装置の構成例ブロック図である。It is a block diagram of a configuration example of an image display device including the microcomputer. 上記マイクロコンピュータに含まれるPFCRレジスタの設定例の説明図である。It is explanatory drawing of the example of a setting of the PFCR register contained in the said microcomputer. 上記マイクロコンピュータに含まれるEXDMACの構成例ブロック図である。It is a block diagram of a configuration example of EXDMAC included in the microcomputer. 上記マイクロコンピュータに含まれるTPUの構成例ブロック図である。It is a block diagram of a configuration example of a TPU included in the microcomputer. 上記TPUの設定例を示すフローチャートである。It is a flowchart which shows the example of a setting of the said TPU. 上記TPUにおけるコンペアマッチによる信号出力例の説明図である。It is explanatory drawing of the signal output example by the compare match in the said TPU. 上記画像表示装置におけるLCD表示のタイミング図である。It is a timing diagram of the LCD display in the said image display apparatus.

1.実施の形態の概要
先ず、本願において開示される発明の代表的な実施の形態について概要を説明する。代表的な実施の形態についての概要説明で括弧を付して参照する図面中の参照符号はそれが付された構成要素の概念に含まれるものを例示するに過ぎない。
1. First, an outline of a typical embodiment of the invention disclosed in the present application will be described. Reference numerals in the drawings referred to in parentheses in the outline description of the representative embodiments merely exemplify what are included in the concept of the components to which the reference numerals are attached.

〔1〕本発明の代表的な実施の形態に係るマイクロコンピュータ(10)は、クロック信号を形成可能なタイマパルスユニット(103)と、上記タイマパルスユニットからの割り込み要求に応じて起動され、表示用データを液晶ディスプレイへDMA転送可能なDMAコントローラ(110)とを含む。また上記マイクロコンピュータは、上記DMA転送に用いられる第1クロック信号と、上記液晶ディスプレイへの表示に用いられる第2クロック信号とを選択的に上記液晶ディスプレイのクロック入力端子へ伝達可能なセレクタ(105)とを含む。さらに上記マイクロコンピュータは、上記セレクタの選択状態を設定可能なレジスタ(106)と、上記レジスタの設定情報に基づいて、上記セレクタの選択状態を上記DMA転送に同期して制御するための制御論理(107)とを含む。   [1] A microcomputer (10) according to a typical embodiment of the present invention is activated and displayed in response to an interrupt request from the timer pulse unit (103) capable of forming a clock signal and the timer pulse unit. And a DMA controller (110) capable of DMA transferring data to the liquid crystal display. The microcomputer can selectively transmit a first clock signal used for the DMA transfer and a second clock signal used for display on the liquid crystal display to a clock input terminal of the liquid crystal display. ). Further, the microcomputer has a register (106) capable of setting the selection state of the selector, and a control logic for controlling the selection state of the selector in synchronization with the DMA transfer based on the setting information of the register. 107).

上記の構成によれば、上記レジスタの設定により、LCDのクロック入力端子に供給されるクロック信号の周波数を、当該LCDの仕様に対応させることができるので、ユーザプログラムにおいては、LCDダイレクトドライブのための制御に関して上記レジスタへの設定を行うだけで良いので、ユーザプログラム作成の負担が軽減される。   According to the above configuration, the frequency of the clock signal supplied to the clock input terminal of the LCD can be made to correspond to the specification of the LCD by setting the register. Since it is only necessary to set the register regarding the control, the burden of creating the user program is reduced.

〔2〕上記〔1〕において、上記制御論理(107)は、上記レジスタの設定情報に基づいて、DMA転送開始時とDMA転送終了時に上記セレクタ(105)の選択状態を切り替えるように構成することができる。これにより、上記DMA転送に用いられる第1クロック信号と、上記液晶ディスプレイへの表示に用いられる第2クロック信号とを適切に切り替えることができる。   [2] In the above [1], the control logic (107) is configured to switch the selection state of the selector (105) at the start of DMA transfer and at the end of DMA transfer based on the setting information of the register. Can do. Thereby, it is possible to appropriately switch between the first clock signal used for the DMA transfer and the second clock signal used for display on the liquid crystal display.

〔3〕上記〔2〕において、上記DMAコントローラ(110)から出力された信号の論理を反転してから上記セレクタに伝達可能な論理反転回路(104)を設けることができる。これにより、上記DMAコントローラ(110)から出力された信号の論理をLCDの仕様に対応させることができる。   [3] In the above [2], a logic inverting circuit (104) capable of inverting the logic of the signal output from the DMA controller (110) and then transmitting it to the selector can be provided. Thereby, the logic of the signal output from the DMA controller (110) can be made to correspond to the specification of the LCD.

〔4〕上記〔3〕において、上記レジスタ(106)は、上記DMAコントローラから出力された信号の論理反転を指示するためのビットを含み、上記論理反転回路は、上記ビットの論理状態に従って、上記DMAコントローラから出力された信号の論理を反転するように構成することができる。このようにすることで、上記DMAコントローラ(110)から出力された信号の論理を上記レジスタ(106)の設定により容易に行うことができる。   [4] In the above [3], the register (106) includes a bit for instructing the logical inversion of the signal output from the DMA controller, and the logical inversion circuit performs the logical inversion according to the logical state of the bit. The logic of the signal output from the DMA controller can be inverted. In this way, the logic of the signal output from the DMA controller (110) can be easily performed by setting the register (106).

〔5〕本発明の代表的な実施の形態に係る画像表示装置(200)は、液晶ディスプレイ(11)と、表示用データを格納可能なメモリ(12)と、上記メモリ内の表示用データを上記液晶ディスプレイにDMA転送して表示させる機能を有するマイクロコンピュータ(10)とを含む。このとき、上記マイクロコンピュータ(10)には、クロック信号を形成可能なタイマパルスユニット(103)と、上記タイマパルスユニットからの割り込み要求に応じて起動され、上記表示用データを液晶ディスプレイへDMA転送可能なDMAコントローラ(110)とを含む。また、上記マイクロコンピュータには、上記DMA転送に用いられる第1クロック信号と、上記液晶ディスプレイへの表示に用いられる第2クロック信号とを選択的に上記液晶ディスプレイのクロック入力端子へ伝達可能なセレクタ(105)とを設けることができる。さらに上記マイクロコンピュータ(10)には、上記セレクタの選択状態を設定可能なレジスタ(106)と、上記レジスタの設定情報に基づいて、上記セレクタの選択状態を上記DMA転送に同期して制御するための制御論理(107)とを設けることができる。   [5] An image display device (200) according to a typical embodiment of the present invention includes a liquid crystal display (11), a memory (12) capable of storing display data, and display data in the memory. And a microcomputer (10) having a function of performing DMA transfer and displaying on the liquid crystal display. At this time, the microcomputer (10) is activated in response to an interrupt request from the timer pulse unit (103) capable of forming a clock signal and the timer pulse unit, and the display data is DMA transferred to the liquid crystal display. Possible DMA controller (110). Further, the microcomputer has a selector capable of selectively transmitting a first clock signal used for the DMA transfer and a second clock signal used for display on the liquid crystal display to a clock input terminal of the liquid crystal display. (105) can be provided. Further, the microcomputer (10) controls the selection state of the selector in synchronization with the DMA transfer based on the register (106) capable of setting the selection state of the selector and the setting information of the register. Control logic (107).

上記の構成によれば、上記レジスタの設定により、LCDのクロック入力端子に供給されるクロック信号の周波数を、当該LCDの仕様に対応させることができるので、ユーザプログラムにおいては、LCDダイレクトドライブのための制御に関して上記レジスタへの設定を行うだけで良いので、ユーザプログラム作成の負担が軽減される。   According to the above configuration, the frequency of the clock signal supplied to the clock input terminal of the LCD can be made to correspond to the specification of the LCD by setting the register. Since it is only necessary to set the register regarding the control, the burden of creating the user program is reduced.

〔6〕上記〔5〕において、上記制御論理(107)は、上記レジスタの設定情報に基づいて、DMA転送開始時とDMA転送終了時に上記セレクタの選択状態を切り替えるように構成することができる。これにより、上記DMA転送に用いられる第1クロック信号と、上記液晶ディスプレイへの表示に用いられる第2クロック信号とを適切に切り替えることができる。   [6] In the above [5], the control logic (107) can be configured to switch the selection state of the selector at the start of DMA transfer and at the end of DMA transfer based on the setting information of the register. Thereby, it is possible to appropriately switch between the first clock signal used for the DMA transfer and the second clock signal used for display on the liquid crystal display.

〔7〕上記〔6〕において、上記DMAコントローラ(110)から出力された信号の論理を反転してから上記セレクタに伝達可能な論理反転回路(104)を設けることができる。これにより、上記DMAコントローラ(110)から出力された信号の論理をLCDの仕様に対応させることができる。   [7] In the above [6], a logic inverting circuit (104) capable of inverting the logic of the signal output from the DMA controller (110) and then transmitting it to the selector can be provided. Thereby, the logic of the signal output from the DMA controller (110) can be made to correspond to the specification of the LCD.

〔8〕上記〔7〕において、上記レジスタ(106)は、上記DMAコントローラから出力された信号の論理反転を指示するためのビットを含み、上記論理反転回路(104)は、上記ビットの論理状態に従って、上記DMAコントローラ(110)から出力された信号の論理を反転するように構成することができる。このようにすることで、上記DMAコントローラ(110)から出力された信号の論理を上記レジスタ(106)の設定により容易に行うことができる。   [8] In the above [7], the register (106) includes a bit for instructing logical inversion of a signal output from the DMA controller, and the logical inversion circuit (104) Accordingly, the logic of the signal output from the DMA controller (110) can be inverted. In this way, the logic of the signal output from the DMA controller (110) can be easily performed by setting the register (106).

2.実施の形態の詳細
実施の形態について更に詳述する。
2. Details of Embodiments Embodiments will be further described in detail.

《実施の形態1》
図2には、本発明にかかる画像表示装置の構成例が示される。図2に示される画像表示装置200は、特に制限されないが、プリンターや冷蔵庫などの各種家電製品に搭載することができ、マイクロコンピュータ10、LCD(Liquid Crystal Display;液晶ディスプレイ)11、SRAM(Static Random Access Memory)12、タッチパネル13、及び入力回路14を含んで成る。
Embodiment 1
FIG. 2 shows a configuration example of an image display device according to the present invention. The image display device 200 shown in FIG. 2 is not particularly limited, but can be mounted on various home appliances such as a printer and a refrigerator, and includes a microcomputer 10, an LCD (Liquid Crystal Display) 11, an SRAM (Static Random). Access Memory) 12, touch panel 13, and input circuit 14.

マイクロコンピュータ10は、特に制限されないが、公知の半導体集積回路製造技術により、単結晶シリコン基板などのひとつの半導体基板に形成され、SRAM12内の表示用データをLCD11にDMA(Direct Memory Access)転送して表示させる機能(LCDダイレクトドライブ機能)を有する。SRAM12内の表示用データは、マイクロコンピュータ10によって更新される。マイクロコンピュータ10は、表示用データD〔15:0〕の出力端子、アドレス信号ADDRESSの出力端子、ライトイネーブル信号WEの出力端子、チップセレクト信号CSの出力端子、LCDダイレクトドライブ信号LDDの出力端子、イネーブル信号ENABLEの出力端子、クロック信号TIOCB3の出力端子、垂直同期信号Vsyncの出力端子、アナログ信号AN0〜AN3の入力端子を含む。表示用データD〔15:0〕は、RGBに対応するデータ群D15−D11,D10−D5, D4−D0を含む。データ群D15−D11,D10−D5, D4−D0は、LCD11における表示用入力データ群R5−R1,G5−G0,B5−B1に対応する。LCD11のピクセルデータは、R(5bit)、G(6bit)、B(5bit)であり、上記表示用入力データ群R5−R1,G5−G0,B5−B1に対応する。アドレス信号ADDRESSは、SRAM12へのデータ書き込みや、SRAM12からのデータ読み出しの際に、SRAM12に伝達される。マイクロコンピュータ10によってチップセレクト信号CSがアサートされることにより、SRAM12が選択される。マイクロコンピュータ10によってライトイネーブル信号WEがアサートされることで、SRAM12への表示用データの書き込みが指示される。マイクロコンピュータ10によってライトイネーブル信号WEがネゲートされた状態では、SRAM12からのデータ読み出しが可能とされる。LCDダイレクトドライブ信号LDDは、LCD11におけるクロック信号CLKの入力端子に伝達される。LCDダイレクトドライブ信号LDDは、上記DMA転送に用いられるクロック信号と、上記LCD11への画像表示に用いられるクロック信号とを含む。上記DMA転送に用いられるクロック信号は、上記DMA転送に適切な周波数に設定される。上記LCD11への表示に用いられるクロック信号は、LCD11での画像表示に適切な周波数に設定される。イネーブル信号ENABLEは、LCD11におけるイネーブル信号ENABLEの入力端子に伝達される。このイネーブル信号ENABLEがマイクロコンピュータ10によってイネーブル状態にされることで、LCD11への表示用データの転送や当該データの表示が可能とされる。クロック信号TIOCB3は、水平同期信号Hsyncとして、LCD11における水平同期信号Hsyncの入力端子に伝達され、垂直同期信号Vsyncは、LCD11における垂直同期信号Vsyncの入力端子に伝達される。また、LCD11には、グランドGNDを基準とする電源電圧Vccが供給される。   The microcomputer 10 is not particularly limited, but is formed on a single semiconductor substrate such as a single crystal silicon substrate by a known semiconductor integrated circuit manufacturing technique, and transfers display data in the SRAM 12 to the LCD 11 by DMA (Direct Memory Access). Display function (LCD direct drive function). The display data in the SRAM 12 is updated by the microcomputer 10. The microcomputer 10 includes an output terminal for display data D [15: 0], an output terminal for an address signal ADDRESS, an output terminal for a write enable signal WE, an output terminal for a chip select signal CS, an output terminal for an LCD direct drive signal LDD, It includes an output terminal for the enable signal ENABLE, an output terminal for the clock signal TIOCB3, an output terminal for the vertical synchronization signal Vsync, and input terminals for the analog signals AN0 to AN3. The display data D [15: 0] includes data groups D15-D11, D10-D5, D4-D0 corresponding to RGB. Data groups D15-D11, D10-D5, and D4-D0 correspond to display input data groups R5-R1, G5-G0, and B5-B1 in LCD 11. The pixel data of the LCD 11 is R (5 bits), G (6 bits), and B (5 bits), and corresponds to the display input data groups R5-R1, G5-G0, and B5-B1. The address signal ADDRESS is transmitted to the SRAM 12 when writing data to the SRAM 12 or reading data from the SRAM 12. The SRAM 12 is selected when the microcomputer 10 asserts the chip select signal CS. When the microcomputer 10 asserts the write enable signal WE, the writing of display data to the SRAM 12 is instructed. In a state where the write enable signal WE is negated by the microcomputer 10, data can be read from the SRAM 12. The LCD direct drive signal LDD is transmitted to the input terminal of the clock signal CLK in the LCD 11. The LCD direct drive signal LDD includes a clock signal used for the DMA transfer and a clock signal used for image display on the LCD 11. The clock signal used for the DMA transfer is set to a frequency suitable for the DMA transfer. The clock signal used for display on the LCD 11 is set to a frequency suitable for image display on the LCD 11. The enable signal ENABLE is transmitted to the input terminal of the enable signal ENABLE in the LCD 11. When the enable signal ENABLE is enabled by the microcomputer 10, display data can be transferred to the LCD 11 and displayed. The clock signal TIOCB3 is transmitted as the horizontal synchronization signal Hsync to the input terminal of the horizontal synchronization signal Hsync in the LCD 11, and the vertical synchronization signal Vsync is transmitted to the input terminal of the vertical synchronization signal Vsync in the LCD 11. The LCD 11 is supplied with a power supply voltage Vcc with respect to the ground GND.

タッチパネル13は、特に制限されないが、LCD11の表示画面に重ねて配置され、操作者の指のタッチにより、マイクロコンピュータ12に対する情報入力が可能とされる。このマイクロコンピュータ12に対する情報入力は、アナログ信号AN0〜AN3の形式で行われる。入力回路14は、タッチパネル13からのアナログ信号AN0〜AN3の入力を可能にするための直流電圧を印加する回路や、アナログ信号AN0〜AN3へのノイズ混入を阻止するためのノイズフィルタが含まれる。   The touch panel 13 is not particularly limited, but is placed on the display screen of the LCD 11 so that information can be input to the microcomputer 12 by touching the operator's finger. Information input to the microcomputer 12 is performed in the form of analog signals AN0 to AN3. Input circuit 14 includes a circuit for applying a DC voltage for enabling input of analog signals AN0 to AN3 from touch panel 13, and a noise filter for preventing noise from being mixed into analog signals AN0 to AN3.

図1には、マイクロコンピュータ10の構成例が示される。   FIG. 1 shows a configuration example of the microcomputer 10.

マイクロコンピュータ10は、DMAC101、割り込みコントローラ102、TPU(タイマパルスユニット)103、論理反転回路104、セレクタ105、PFCRレジスタ106、制御論理107、スイッチ108、バスコントローラ109、EXDMAC110、CPU(中央処理装置)111、ADC(アナログデジタル変換器)112を含む。マイクロコンピュータ10は、更にROM(リードオンリーメモリ)113、RAM(ランダムアクセスメモリ)114を含む。DMAC101、CPU111、ADC112、ROM113、RAM114は、マイクロコンピュータ10の内部に設けられたデータバス(「内部データバス」という)115によって互いに結合されている。CPU111は、ユーザプログラムを実行する。ADC112は、入力されたアナログ信号をデジタル信号に変換する。タッチパネル13からのアナログ信号は、ADC112によってデジタル信号に変換される。ROM113は、上記CPU111で実行されるユーザプログラムを格納するために設けられる。特に制限されないが、このROM113には、フラッシュメモリを適用することができる。RAM114は、CPU111でユーザプログラムが実行される際の作業領域などに利用される。   The microcomputer 10 includes a DMAC 101, an interrupt controller 102, a TPU (timer pulse unit) 103, a logic inversion circuit 104, a selector 105, a PFCR register 106, a control logic 107, a switch 108, a bus controller 109, an EXDMAC 110, and a CPU (central processing unit). 111 and ADC (analog-digital converter) 112. The microcomputer 10 further includes a ROM (read only memory) 113 and a RAM (random access memory) 114. The DMAC 101, the CPU 111, the ADC 112, the ROM 113, and the RAM 114 are coupled to each other by a data bus (referred to as “internal data bus”) 115 provided in the microcomputer 10. The CPU 111 executes a user program. The ADC 112 converts the input analog signal into a digital signal. An analog signal from the touch panel 13 is converted into a digital signal by the ADC 112. The ROM 113 is provided for storing a user program executed by the CPU 111. Although not particularly limited, a flash memory can be applied to the ROM 113. The RAM 114 is used as a work area when the CPU 111 executes a user program.

TPU103は、それぞれ所定の条件でタイマパルスを形成可能な複数のタイマチャネルを有する。TPU103は、所定の条件が成立したとき、EXDMAC110の起動割り込み要求を発生させる。また、TPU103における複数チャネルのうちの特定チャネル、例えばチャネル3,4,5によって形成されたクロック信号TIOCB3,TIOCB4,TIOCB5が出力されるようになっている。クロック信号TIOCB3は、LCD11の水平同期信号Vsyncとして、LCD11に伝達される。クロック信号TIOCB4,TIOCB5は、セレクタ105に伝達される。   The TPU 103 has a plurality of timer channels each capable of forming a timer pulse under a predetermined condition. The TPU 103 generates an EXDMAC 110 activation interrupt request when a predetermined condition is satisfied. Further, clock signals TIOCB3, TIOCB4, TIOCB5 formed by specific channels, for example, channels 3, 4, 5 among the plurality of channels in the TPU 103 are output. The clock signal TIOCB3 is transmitted to the LCD 11 as the horizontal synchronization signal Vsync of the LCD 11. Clock signals TIOCB4 and TIOCB5 are transmitted to selector 105.

DMAC101は、マイクロコンピュータ10内で、内部データバス115を介して行われるDMA転送を制御する。割り込みコントローラ102は、各種デバイスからの割り込み要求を所定の優先順位に従って調整してからCPU111に通知する。EXDMAC110は、マイクロコンピュータ10の外部に配置されたバス(「外部バス」という)を用いて行われるデータ転送専用のDMACであり、内部データバス115に結合されたDMAC101とは別に設けられている。このEXDMAC110は、EDACK(DMA転送通知)付き外部デバイスと外部メモリとの間の転送をCPU111に代わって高速に行うことができる。本例において、LCD11は、上記EDACK(DMA転送通知)付き外部デバイスの一例とされる。また本例において、SRAM12は、上記外部メモリの一例とされる。EXDMAC110は、転送モードとして、デュアルアドレスモードとシングルアドレスモードとを有する。EXDMAC110は、シングルアドレスモードにおいて、シングルアドレス転送アクノリッジ信号EDACK3を出力する。このシングルアドレス転送アクノリッジ信号EDACK3は、EXDMAC110から出力された状態ではローアクティブの信号であるが、後段の論理反転回路104で信号の論理が反転されることにより、ハイアクティブの信号に変更することができる。論理反転回路104は、EXDMAC110から出力されたシングルアドレス転送アクノリッジ信号EDACK3の論理を反転して出力するインバータ104Aと、このインバータ104Aの入出力信号を選択するためのセレクタ104Bとを含んで成る。論理反転回路104から出力されるシングルアドレス転送アクノリッジ信号EDACK3は、セレクタ104Bによってインバータ104Aの入力信号が選択された場合にはローアクティブの信号になり、セレクタ104Bによってインバータ104Aの出力信号が選択された場合にはハイアクティブの信号となる。セレクタ104Bの選択状態は、PFCRレジスタ106における所定ビット設定に基づく制御信号EDACKRSよって決定される。   The DMAC 101 controls DMA transfer performed via the internal data bus 115 in the microcomputer 10. The interrupt controller 102 adjusts interrupt requests from various devices according to a predetermined priority order, and notifies the CPU 111 of them. The EXDMAC 110 is a DMAC dedicated to data transfer performed using a bus (referred to as “external bus”) arranged outside the microcomputer 10, and is provided separately from the DMAC 101 coupled to the internal data bus 115. The EXDMAC 110 can perform transfer between an external device with EDACK (DMA transfer notification) and an external memory at high speed instead of the CPU 111. In this example, the LCD 11 is an example of an external device with EDACK (DMA transfer notification). In this example, the SRAM 12 is an example of the external memory. The EXDMAC 110 has a dual address mode and a single address mode as transfer modes. The EXDMAC 110 outputs a single address transfer acknowledge signal EDACK3 in the single address mode. The single address transfer acknowledge signal EDACK3 is a low-active signal when it is output from the EXDMAC 110, but can be changed to a high-active signal by inverting the logic of the signal in the logic inverting circuit 104 in the subsequent stage. it can. The logic inversion circuit 104 includes an inverter 104A that inverts and outputs the logic of the single address transfer acknowledge signal EDACK3 output from the EXDMAC 110, and a selector 104B for selecting an input / output signal of the inverter 104A. The single address transfer acknowledge signal EDACK3 output from the logic inversion circuit 104 becomes a low active signal when the input signal of the inverter 104A is selected by the selector 104B, and the output signal of the inverter 104A is selected by the selector 104B. In this case, it becomes a high active signal. The selection state of the selector 104B is determined by a control signal EDACKRS based on a predetermined bit setting in the PFCR register 106.

セレクタ105は、制御論理107の出力に基づいて、TPU103からのクロック信号TIOCB4,TIOCB5と、論理反転回路104からのシングルアドレス転送アクノリッジ信号EDACK3の中からひとつの信号を選択し、それをLCDダイレクトドライブ信号LDDとして、LCD11におけるクロック信号CLKの入力端子に伝達する。セレクタ105の選択状態は、制御論理107からの制御信号によって決定される。制御論理107は、EXDMAC110から出力されるシングルアドレス転送アクノリッジ信号EDACK3の出力開始タイミングを示す選択制御信号EDACK_selと、EXDMA転送終了を示す信号ETENDと、PFCRレジスタ106における特定ビットに基づいて形成されたLCDダイレクト制御信号LCDDIRECT〔1:0〕とに基づいて上記セレクタ105の選択動作を制御する。   Based on the output of the control logic 107, the selector 105 selects one signal from the clock signals TIOCB4 and TIOCB5 from the TPU 103 and the single address transfer acknowledge signal EDACK3 from the logic inversion circuit 104, and outputs it to the LCD direct drive. The signal LDD is transmitted to the input terminal of the clock signal CLK in the LCD 11. The selection state of the selector 105 is determined by a control signal from the control logic 107. The control logic 107 is an LCD formed based on a selection control signal EDACK_sel indicating the output start timing of the single address transfer acknowledge signal EDACK3 output from the EXDMAC 110, a signal ETEND indicating the end of EXDMA transfer, and a specific bit in the PFCR register 106. Based on the direct control signal LCDDIRECT [1: 0], the selection operation of the selector 105 is controlled.

バスコントローラ109は、マイクロコンピュータ10の外部に配置されたバス(「外部バス」という)を管理する。バスコントローラ109は、EXDMAC110からのバス権要求に応じて外部バスの使用をEXDMAC110に許可する。外部バスには、データD〔15:0〕を伝達するためのデータバス、アドレス信号ADDRESSを伝達するためのアドレスバス、チップセレクト信号CSやライトイネーブル信号WEを伝達するためのコントロールバスが含まれる。上記外部バスは、LCD11やSRAM12に結合される。上記チップセレクト信号CSは、スイッチ108によって切り替えられる。SRAM12への表示用データの書き込みにおいては、バスコントローラ109から出力されたチップセレクト信号CSがスイッチ108によって選択されてSRAM12に伝達される。また、LCDダイレクトモードにおいては、LCDダイレクトドライブ信号LDDに同期してSRAM12を選択する必要があるため、セレクタ105の選択出力がスイッチ108によって選択され、それがチップセレクト信号CSとしてSAM12に伝達される。   The bus controller 109 manages a bus (referred to as “external bus”) arranged outside the microcomputer 10. The bus controller 109 permits the EXDMAC 110 to use the external bus in response to a bus right request from the EXDMAC 110. The external bus includes a data bus for transmitting data D [15: 0], an address bus for transmitting address signal ADDRESS, and a control bus for transmitting chip select signal CS and write enable signal WE. . The external bus is coupled to the LCD 11 and the SRAM 12. The chip select signal CS is switched by the switch 108. In writing display data to the SRAM 12, the chip select signal CS output from the bus controller 109 is selected by the switch 108 and transmitted to the SRAM 12. In the LCD direct mode, since it is necessary to select the SRAM 12 in synchronization with the LCD direct drive signal LDD, the selection output of the selector 105 is selected by the switch 108 and is transmitted to the SAM 12 as the chip select signal CS. .

尚、LCD11に供給される垂直同期信号Vsyncやイネーブル信号ENABLEは、CPU111の制御下で形成される。   The vertical synchronization signal Vsync and the enable signal ENABLE supplied to the LCD 11 are formed under the control of the CPU 111.

図3には、PFCRレジスタ106の構成例が示される。   FIG. 3 shows a configuration example of the PFCR register 106.

PFCRレジスタ106は、8ビット構成とされる。PFCRレジスタ106のビット5は、EDACKRS信号の論理設定に割り当てられる。ビット5が論理値“0”の場合、シングルアドレス転送アクノリッジ信号EDACK3はローアクティブとされ、ビット5が論理値“1”の場合、シングルアドレス転送アクノリッジ信号EDACK3はハイアクティブとされる。PFCRレジスタ106のビット5の初期値は論理値“0”とされる。   The PFCR register 106 has an 8-bit configuration. Bit 5 of the PFCR register 106 is assigned to the logical setting of the EDACKRS signal. When bit 5 is a logical value “0”, the single address transfer acknowledge signal EDACK3 is low active, and when bit 5 is a logical value “1”, the single address transfer acknowledge signal EDACK3 is high active. The initial value of bit 5 of the PFCR register 106 is set to a logical value “0”.

PFCRレジスタ106のビット6とビット7は、LCDダイレクト制御信号LCDDIRECT〔1:0〕の論理設定に割り当てられる。PFCRレジスタ106のビット6とビット7が論理値“0” “0”の場合、セレクタ105による切り替えは行われない。PFCRレジスタ106のビット6とビット7が論理値“0” “1”に設定された場合、制御論理107の制御により、セレクタ105による選択状態は、EXDMAC転送開始時にTIOCB4からEDACK3に切り替えられ、EXDMAC転送終了時にEDACK3からTIOCB4に戻される。PFCRレジスタ106のビット6とビット7が論理値“1” “0”に設定された場合、制御論理107の制御により、セレクタ105による選択状態は、EXDMAC転送開始時にTIOCB4からTIOCB5に切り替えられ、EXDMAC転送終了時にTIOCB5からTIOCB4に戻される。尚、本例において、PFCRレジスタ106のビット0からビット4はリザーブビットとされる。   Bits 6 and 7 of the PFCR register 106 are assigned to the logical setting of the LCD direct control signal LCDDIRECT [1: 0]. When bits 6 and 7 of the PFCR register 106 are logical values “0” and “0”, switching by the selector 105 is not performed. When bits 6 and 7 of the PFCR register 106 are set to logical values “0” and “1”, the selection state by the selector 105 is switched from TIOCB 4 to EDACK 3 at the start of EXDMAC transfer under the control of the control logic 107, EXDMAC Returned from EDACK 3 to TIOCB 4 at the end of transfer. When bits 6 and 7 of the PFCR register 106 are set to logical values “1” and “0”, the selection state by the selector 105 is switched from TIOCB4 to TIOCB5 at the start of EXDMAC transfer under the control of the control logic 107, and EXDMAC When the transfer is completed, it is returned from TIOCB5 to TIOCB4. In this example, bits 0 to 4 of the PFCR register 106 are reserved bits.

図4には、EXDMAC110の構成例が示される。   FIG. 4 shows a configuration example of the EXDMAC 110.

EXDMAC110は、データバッファ1101、アドレスバッファ1102、演算器1103、コントロールロジック1105、及び各種レジスタEDSAR,EDDAR,EDTCRを含み、複数の転送チャネルを有する。アドレスバッファ1102、演算器1103、及び各種レジスタEDSAR,EDDAR,EDTCRは、モジュールデータバス1104によって互いに結合される。データバッファ1101及びアドレスバッファ1102は、バスコントローラ109に結合される。EDSARは転送元のアドレスを指定するためのXDMAソースアドレスレジスタ、EDDARは転送先のアドレスを指定するためのEXDMAデスティネーションアドレスレジスタ、EDTCRは転送回数を設定するためのEXDMA転送カウントレジスタである。コントロールロジック1105は、レジスタEDMDR、EDACRを含む。EDMDRは、EXDMAC110の動作を制御するEXDMAモードコントロールレジスタである。EDACRは、アドレスレジスタの増減、リピートエリア機能を指定するEXDMAアドレスコントロールレジスタである。コントロールロジック1105には、外部デバイスからのリクエスト信号EDREQが伝達される。コントロールロジック1105は、転送要求を受け付けたことを確認する信号EDARK、EXDMA転送終了を示す信号ETEND、シングルアドレス転送アクノレッジ信号EDACK、及びEXDMAC110から出力されるシングルアドレス転送アクノリッジ信号EDACK3の出力開始タイミングを示す選択制御信号EDACK_selが出力される。また、コントロールロジック1105からは、チャネル毎にCPU111への割り込み要求信号が出力される。   The EXDMAC 110 includes a data buffer 1101, an address buffer 1102, an arithmetic unit 1103, a control logic 1105, and various registers EDSAR, EDDAR, EDTCR, and has a plurality of transfer channels. The address buffer 1102, the arithmetic unit 1103, and various registers EDSAR, EDDAR, and EDTCR are coupled to each other by a module data bus 1104. Data buffer 1101 and address buffer 1102 are coupled to bus controller 109. EDSAR is an XDMA source address register for designating a transfer source address, EDDAR is an EXDMA destination address register for designating a transfer destination address, and EDTCR is an EXDMA transfer count register for setting the number of transfers. The control logic 1105 includes registers EDMDR and EDACR. The EDMDR is an EXDMA mode control register that controls the operation of the EXDMAC 110. EDACR is an EXDMA address control register for designating increase / decrease of address register and repeat area function. A request signal EDREQ from an external device is transmitted to the control logic 1105. The control logic 1105 indicates the output start timing of the signal EDARK for confirming acceptance of the transfer request, the signal ETEND indicating the end of EXDMA transfer, the single address transfer acknowledge signal EDACK, and the single address transfer acknowledge signal EDACK3 output from the EXDMAC 110. A selection control signal EDACK_sel is output. The control logic 1105 outputs an interrupt request signal to the CPU 111 for each channel.

図5には、TPU103の構成例が示される。   FIG. 5 shows a configuration example of the TPU 103.

TPU103は、チャネル0〜5に対応する6チャネルの16ビットタイマユニット50〜55と、そのコントロールロジック54,55と、共通回路56とを含む。コントロールロジック54は、16ビットタイマユニット50〜52の動作を制御し、コントロールロジック55は、16ビットタイマユニット53〜55の動作を制御する。16ビットタイマユニット50は、タイマコントローラレジスタTCR、タイマI/OコントロールレジスタTIORH、タイマインタラプトイネーブルレジスタTIER、タイマモードレジスタTMDR、タイマI/OコントロールレジスタTIORL、タイマステータスレジスタTSR、タイマカウンタTCNT、タイマジェネラルレジスタTGRA, TGRB, TGRC, TGRDを含む。16ビットタイマユニット51は、タイマコントローラレジスタTCR、タイマI/OコントロールレジスタTIOR、タイマインタラプトイネーブルレジスタTIER、タイマモードレジスタTMDR、タイマステータスレジスタTSR、タイマカウンタTCNT、タイマジェネラルレジスタTGRA, TGRBを含む。16ビットタイマユニット53は、16ビットタイマユニット50と同一構成とされる。16ビットタイマユニット52,54,55は、16ビットタイマユニット51と同一構成とされる。共通回路56は、コントロールロジック561、タイマスタートレジスタTSTR、タイマシンクロレジスタTSYR、及びバスインタフェース562を含む。上記16ビットタイマユニット50〜55や共通回路56は、モジュールデータバス57を介して互いに結合されている。共通回路56には、内部クロック信号φ/1,φ/4,φ/16,φ/64,φ/256,φ/1024,φ/4096や、外部クロックTCLKA,TCLKB,TCLKC,TCLKDが入力される。バスインタフェース562は、内部データバス115に結合される。共通回路56は、A/D変換開始要求信号やPPG出力トリガ信号を出力する。また、チャネル毎に信号を取り込むための複数の入力端子、及び割り込み要求信号を出力するための複数の出力端子が設けられる。本例では、特に制限されないが、16ビットタイマユニット53,54,55が使用される。16ビットタイマユニット53の出力信号TIOCB3によってLCD11における水平同期信号Hsyncが形成される。16ビットタイマユニット54,55は、クロック信号生成に用いられ、それらの出力信号TIOCB4,TIOCB5がセレクタ105に伝達される。   The TPU 103 includes six-channel 16-bit timer units 50 to 55 corresponding to the channels 0 to 5, control logic 54 and 55, and a common circuit 56. The control logic 54 controls the operation of the 16-bit timer units 50 to 52, and the control logic 55 controls the operation of the 16-bit timer units 53 to 55. The 16-bit timer unit 50 includes a timer controller register TCR, a timer I / O control register TIORH, a timer interrupt enable register TIER, a timer mode register TMDR, a timer I / O control register TIORL, a timer status register TSR, a timer counter TCNT, a timer general Includes registers TGRA, TGRB, TGRC, TGRD. The 16-bit timer unit 51 includes a timer controller register TCR, a timer I / O control register TIOR, a timer interrupt enable register TIER, a timer mode register TMDR, a timer status register TSR, a timer counter TCNT, and timer general registers TGRA and TGRB. The 16-bit timer unit 53 has the same configuration as the 16-bit timer unit 50. The 16-bit timer units 52, 54 and 55 have the same configuration as the 16-bit timer unit 51. The common circuit 56 includes a control logic 561, a timer start register TSTR, a timer machine black register TSYR, and a bus interface 562. The 16-bit timer units 50 to 55 and the common circuit 56 are coupled to each other via a module data bus 57. The common circuit 56 receives internal clock signals φ / 1, φ / 4, φ / 16, φ / 64, φ / 256, φ / 1024, φ / 4096, and external clocks TCLKA, TCLKB, TCLKC, and TCLKD. The Bus interface 562 is coupled to internal data bus 115. The common circuit 56 outputs an A / D conversion start request signal and a PPG output trigger signal. Also, a plurality of input terminals for capturing signals for each channel and a plurality of output terminals for outputting interrupt request signals are provided. In this example, although not particularly limited, 16-bit timer units 53, 54, and 55 are used. The horizontal synchronization signal Hsync in the LCD 11 is formed by the output signal TIOCB3 of the 16-bit timer unit 53. The 16-bit timer units 54 and 55 are used for clock signal generation, and their output signals TIOCB4 and TIOCB5 are transmitted to the selector 105.

図6には、TPU103の設定例が示される。   FIG. 6 shows a setting example of the TPU 103.

TPU103への各種設定は、ユーザプログラムの記述に基づいてCPU111が実行する。   Various settings in the TPU 103 are executed by the CPU 111 based on the description of the user program.

先ず、TIERに割り込み要求(TGIEB)許可が設定される(601)。TIORにより初期値の論理値“0”出力又は論理値“1”出力又はトグル出力が選択される(602)。最初のコンペアマッチが発生するまでの期間、TIOC端子には、設定された初期値が出力される。TGRBにコンペアマッチを発生させるタイミングが設定される(603)。そしてTSTRのCSTビットを論理値“1”にセットしてカウント動作が開始される(604)。   First, an interrupt request (TGIEB) permission is set in TIER (601). The initial logical value “0” output, logical value “1” output, or toggle output is selected by TIOR (602). During the period until the first compare match occurs, the set initial value is output to the TIOC terminal. Timing for generating a compare match in TGRB is set (603). Then, the CST bit of TSTR is set to a logical value “1”, and the count operation is started (604).

図7にはTPU103におけるコンペアマッチによる信号出力例が示される。   FIG. 7 shows an example of signal output by the compare match in the TPU 103.

TGRBにコンペアマッチを発生させるタイミングが設定され(603)、TSTRのCSTビットが論理値“1”にセットされてカウント動作が開始されると(604)、TGRBのコンペアマッチでカウンタクリアが行われ、TIOCBのトグル出力(クロック信号出力)が行われる。このようにして、16ビットタイマユニット53,54,55によって、TIOCB3,TIOCB4,TIOCB5(クロック信号)が得られる。TIOCB3,TIOCB4,TIOCB5の周波数は、対応するTGRBの設定値によって決定される。つまり、接続されるLCD11の仕様に応じて、TGRBを設定することで、TIOCB3,TIOCB4,TIOCB5の周波数をLCD11の仕様に容易に合わせることができる。   When the timing for generating a compare match in TGRB is set (603) and the CST bit in TSTR is set to a logical value “1” and the count operation is started (604), the counter is cleared by the TGRB compare match. , TIOCB toggle output (clock signal output) is performed. In this way, TIOCB3, TIOCB4, and TIOCB5 (clock signal) are obtained by the 16-bit timer units 53, 54, and 55. The frequency of TIOCB3, TIOCB4, and TIOCB5 is determined by the setting value of the corresponding TGRB. That is, by setting TGRB according to the specifications of the LCD 11 to be connected, the frequencies of TIOCB3, TIOCB4, and TIOCB5 can be easily matched to the specifications of the LCD11.

図8には、LCD表示タイミングが示される。   FIG. 8 shows the LCD display timing.

LCD11における1フレーム表示動作は、垂直同期信号Vsyncと、水平同期信号Hsyncとに同期して行われる。バックポーチとフロントポーチとの間に1フレームデータ転送期間が設けられる。この1フレームデータ転送は、SRAM12からLCD11へのEXDMA転送によって行われる。つまり、SRAM12から表示用データが外部データバスD〔15:0〕に出力されるのと同じバスサイクルでそのデータがLCDに取り込まれる。1フレームデータ転送期間において、複数回の1ラインデータ転送が行われる。1ラインデータ転送期間においては、図8において拡大して示されるように、LCD11のクロック信号CLK入力端子に伝達されるクロック信号の切り替え(マイクロコンピュータ10におけるポート切り替え)が行われる。この切り替えは、次のように行われる。   The one-frame display operation in the LCD 11 is performed in synchronization with the vertical synchronization signal Vsync and the horizontal synchronization signal Hsync. One frame data transfer period is provided between the back porch and the front porch. This one-frame data transfer is performed by EXDMA transfer from the SRAM 12 to the LCD 11. That is, the display data is taken into the LCD in the same bus cycle as the display data is output from the SRAM 12 to the external data bus D [15: 0]. One line data transfer is performed a plurality of times during one frame data transfer period. In the one-line data transfer period, as shown in an enlarged manner in FIG. 8, the clock signal transmitted to the clock signal CLK input terminal of the LCD 11 is switched (port switching in the microcomputer 10). This switching is performed as follows.

TPU103におけるタイマユニット53(チャネル3)でのTGRBコンペアマッチにより、EXDMAC110の起動割り込み要求が発生される。このEXDMAC110の起動割り込み要求に基づくCPU111での割り込み処理により、EXDMAC110が起動されて、表示用データ1ライン分のEXDMA転送が開始される。EXDMAC110が起動され、EXDMAC110からEDACK3が出力されるタイミングに同期して、制御論理107によりセレクタ105の選択状態の切り替えが行われる。   Due to a TGRB compare match in the timer unit 53 (channel 3) in the TPU 103, a startup interrupt request for the EXDMAC 110 is generated. The EXDMAC 110 is activated by an interrupt process in the CPU 111 based on the activation interrupt request of the EXDMAC 110, and EXDMA transfer for one line of display data is started. The EXDMAC 110 is activated and the selection state of the selector 105 is switched by the control logic 107 in synchronization with the timing at which EDACK 3 is output from the EXDMAC 110.

例えばPFCRレジスタ106のビット6とビット7が論理値“0” “1”に設定されている場合、制御論理107の制御により、セレクタ105による選択状態は、EXDMAC転送開始時(801のタイミング)にTIOCB4からEDACK3に切り替えられ、EXDMAC転送終了時(802のタイミング)にEDACK3からTIOCB4に戻される。この場合、表示用データ1ライン分のEXDMA転送は、EDACK3に基づいて行われる。このとき、EDACK3の論理は、PFCRレジスタ106におけるビット5の設定により決定される。   For example, when bits 6 and 7 of the PFCR register 106 are set to logical values “0” and “1”, the control logic 107 controls the selection state by the selector 105 at the start of EXDMAC transfer (timing 801). It is switched from TIOCB4 to EDACK3, and is returned from EDACK3 to TIOCB4 at the end of EXDMAC transfer (timing 802). In this case, EXDMA transfer for one line of display data is performed based on EDACK3. At this time, the logic of EDACK 3 is determined by the setting of bit 5 in the PFCR register 106.

また、PFCRレジスタ106のビット6とビット7が論理値“1” “0”に設定されている場合、制御論理107の制御により、セレクタ105による選択状態は、EXDMAC転送開始時(801のタイミング)にTIOCB4からTIOCB5に切り替えられ、EXDMAC転送終了時(802のタイミング)にTIOCB5からTIOCB4に戻される。この場合、表示用データ1ライン分のEXDMA転送は、TIOCB5に基づいて行われる。   When bits 6 and 7 of the PFCR register 106 are set to logical values “1” and “0”, the selection state by the selector 105 is controlled by the control logic 107 when the EXDMAC transfer starts (timing 801). The TIOCB4 is switched to the TIOCB5 at the end, and is returned from the TIOCB5 to the TIOCB4 at the end of EXDMAC transfer (timing 802). In this case, EXDMA transfer for one line of display data is performed based on TIOCB5.

このようにPFCRレジスタ106の設定により、LCD11のクロック信号CLKの入力端子に供給されるクロック信号の周波数を、LCD11の仕様に対応させることができるので、ユーザプログラムにおいては、LCDダイレクトドライブのための制御に関してPFCRレジスタ106への設定を行うだけで良いので、ユーザプログラム作成の負担が軽減される。   Thus, by setting the PFCR register 106, the frequency of the clock signal supplied to the input terminal of the clock signal CLK of the LCD 11 can be made to correspond to the specifications of the LCD 11. Therefore, in the user program, for the LCD direct drive, Since it is only necessary to set the PFCR register 106 for control, the burden of creating a user program is reduced.

以上本発明者によってなされた発明を実施形態に基づいて具体的に説明したが、本発明はそれに限定されるものではなく、その要旨を逸脱しない範囲において種々変更可能であることは言うまでもない。   Although the invention made by the present inventor has been specifically described based on the embodiments, it is needless to say that the present invention is not limited thereto and can be variously modified without departing from the gist thereof.

10 マイクロコンピュータ
11 LCD
12 SRAM
13 タッチパネル
14 入力回路
101 DMAC
102 割り込みコントローラ
103 TPU
104 論理反転回路
104A インバータ
104B セレクタ
105 セレクタ
106 PFCRレジスタ
107 制御論理
108 スイッチ
109 バスコントローラ
110 EXDMAC
111 CPU
112 ADC
113 ROM
114 RAM
115 内部データバス
200 画像表示装置
10 Microcomputer 11 LCD
12 SRAM
13 Touch Panel 14 Input Circuit 101 DMAC
102 Interrupt controller 103 TPU
104 logic inversion circuit 104A inverter 104B selector 105 selector 106 PFCR register 107 control logic 108 switch 109 bus controller 110 EXDMAC
111 CPU
112 ADC
113 ROM
114 RAM
115 Internal data bus 200 Image display device

Claims (8)

クロック信号を形成可能なタイマパルスユニットと、
上記タイマパルスユニットからの割り込み要求に応じて起動され、表示用データを液晶ディスプレイへDMA転送可能なDMAコントローラと、
上記DMA転送に用いられる第1クロック信号と、上記液晶ディスプレイへの表示に用いられる第2クロック信号とを選択的に上記液晶ディスプレイのクロック入力端子へ伝達可能なセレクタと、
上記セレクタの選択状態を設定可能なレジスタと、
上記レジスタの設定情報に基づいて、上記セレクタの選択状態を上記DMA転送に同期して制御するための制御論理と、を含むことを特徴とするマイクロコンピュータ。
A timer pulse unit capable of forming a clock signal;
A DMA controller that is activated in response to an interrupt request from the timer pulse unit and capable of DMA-transferring display data to the liquid crystal display;
A selector capable of selectively transmitting a first clock signal used for the DMA transfer and a second clock signal used for display on the liquid crystal display to a clock input terminal of the liquid crystal display;
A register capable of setting the selection state of the selector;
And a control logic for controlling a selection state of the selector in synchronization with the DMA transfer based on setting information of the register.
上記制御論理は、上記レジスタの設定情報に基づいて、DMA転送開始時とDMA転送終了時に上記セレクタの選択状態を切り替える請求項1記載のマイクロコンピュータ。   2. The microcomputer according to claim 1, wherein the control logic switches the selection state of the selector at the start of DMA transfer and at the end of DMA transfer based on the setting information of the register. 上記DMAコントローラから出力された信号の論理を反転してから上記セレクタに伝達可能な論理反転回路を含む請求項2記載のマイクロコンピュータ。   3. The microcomputer according to claim 2, further comprising a logic inverting circuit capable of inverting the logic of the signal output from the DMA controller and then transmitting the signal to the selector. 上記レジスタは、上記DMAコントローラから出力された信号の論理反転を指示するためのビットを含み、上記論理反転回路は、上記ビットの論理状態に従って、上記DMAコントローラから出力された信号の論理を反転する請求項3記載のマイクロコンピュータ。   The register includes a bit for instructing the logic inversion of the signal output from the DMA controller, and the logic inversion circuit inverts the logic of the signal output from the DMA controller according to the logic state of the bit. The microcomputer according to claim 3. 液晶ディスプレイと、
表示用データを格納可能なメモリと、
上記メモリ内の表示用データを上記液晶ディスプレイにDMA転送して表示させる機能を有するマイクロコンピュータと、を含む画像表示装置であって、
上記マイクロコンピュータは、
クロック信号を形成可能なタイマパルスユニットと、
上記タイマパルスユニットからの割り込み要求に応じて起動され、上記表示用データを液晶ディスプレイへDMA転送可能なDMAコントローラと、
上記DMA転送に用いられる第1クロック信号と、上記液晶ディスプレイへの表示に用いられる第2クロック信号とを選択的に上記液晶ディスプレイのクロック入力端子へ伝達可能なセレクタと、
上記セレクタの選択状態を設定可能なレジスタと、
上記レジスタの設定情報に基づいて、上記セレクタの選択状態を上記DMA転送に同期して制御するための制御論理と、を含むことを特徴とする画像表示装置。
A liquid crystal display,
Memory that can store display data;
A microcomputer having a function of displaying the data for display in the memory by DMA transfer to the liquid crystal display;
The microcomputer is
A timer pulse unit capable of forming a clock signal;
A DMA controller that is activated in response to an interrupt request from the timer pulse unit and capable of DMA-transferring the display data to a liquid crystal display;
A selector capable of selectively transmitting a first clock signal used for the DMA transfer and a second clock signal used for display on the liquid crystal display to a clock input terminal of the liquid crystal display;
A register capable of setting the selection state of the selector;
And a control logic for controlling the selection state of the selector in synchronization with the DMA transfer based on setting information of the register.
上記制御論理は、上記レジスタの設定情報に基づいて、DMA転送開始時とDMA転送終了時に上記セレクタの選択状態を切り替える請求項5記載の画像表示装置。   6. The image display device according to claim 5, wherein the control logic switches the selection state of the selector at the start of DMA transfer and at the end of DMA transfer based on the setting information of the register. 上記DMAコントローラから出力された信号の論理を反転してから上記セレクタに伝達可能な論理反転回路を含む請求項6記載の画像表示装置。   The image display apparatus according to claim 6, further comprising a logic inversion circuit capable of inverting the logic of a signal output from the DMA controller and then transmitting the signal to the selector. 上記レジスタは、上記DMAコントローラから出力された信号の論理反転を指示するためのビットを含み、上記論理反転回路は、上記ビットの論理状態に従って、上記DMAコントローラから出力された信号の論理を反転する請求項7記載の画像表示装置。   The register includes a bit for instructing the logic inversion of the signal output from the DMA controller, and the logic inversion circuit inverts the logic of the signal output from the DMA controller according to the logic state of the bit. The image display device according to claim 7.
JP2010099810A 2010-04-23 2010-04-23 Microcomputer and image display apparatus Withdrawn JP2011232800A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010099810A JP2011232800A (en) 2010-04-23 2010-04-23 Microcomputer and image display apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010099810A JP2011232800A (en) 2010-04-23 2010-04-23 Microcomputer and image display apparatus

Publications (1)

Publication Number Publication Date
JP2011232800A true JP2011232800A (en) 2011-11-17

Family

ID=45322079

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010099810A Withdrawn JP2011232800A (en) 2010-04-23 2010-04-23 Microcomputer and image display apparatus

Country Status (1)

Country Link
JP (1) JP2011232800A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014170170A (en) * 2013-03-05 2014-09-18 Renesas Sp Drivers Inc Driver ic

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014170170A (en) * 2013-03-05 2014-09-18 Renesas Sp Drivers Inc Driver ic

Similar Documents

Publication Publication Date Title
JP7034423B2 (en) Drive control devices and electronic devices
JP5754782B2 (en) Semiconductor device and display device
CN101656056B (en) Timing controller and display apparatus having the same
TWI547784B (en) Method of dynamically adjusting bus clock and device thereof
JP4992140B2 (en) Display device driving method, display device driving system, and machine-readable storage medium
TW201019264A (en) Microcontroller with integrated graphical processing unit
JP2014146093A (en) Touch display control device and information terminal device
CN103472748A (en) Verification system and method of sequential control circuit
JP6645738B2 (en) Display driver, display system, and display panel driving method
JP6034135B2 (en) Display control apparatus and data processing system
CN102057361B (en) programmable cycle state machine interface
JP6612021B2 (en) Display driving device and display device
US9542721B2 (en) Display control device and data processing system
US11797421B2 (en) Semiconductor apparatus and debug system
JP2011232800A (en) Microcomputer and image display apparatus
JP6188647B2 (en) Semiconductor device
TW201432508A (en) Touch-control display driving circuit that is capable of reacting to CPU instruction
JP6345049B2 (en) Integrated circuit device and display device
US7454589B2 (en) Data buffer circuit, interface circuit and control method therefor
CN104239257A (en) Interface device and information processing device
TWI467433B (en) Drive system for matrix scanning devices
WO2024061318A1 (en) Method and apparatus for transmitting signals to rgb interface of display device
CN105738791A (en) Semiconductor device
TW201724074A (en) Electronic paper display apparatus and driving method thereof
JP6722537B2 (en) Display device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20130702