JP2018029285A - Communication device, semiconductor device, communication system and initialization method - Google Patents

Communication device, semiconductor device, communication system and initialization method Download PDF

Info

Publication number
JP2018029285A
JP2018029285A JP2016160682A JP2016160682A JP2018029285A JP 2018029285 A JP2018029285 A JP 2018029285A JP 2016160682 A JP2016160682 A JP 2016160682A JP 2016160682 A JP2016160682 A JP 2016160682A JP 2018029285 A JP2018029285 A JP 2018029285A
Authority
JP
Japan
Prior art keywords
communication
communication data
predetermined
signal
communication device
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.)
Granted
Application number
JP2016160682A
Other languages
Japanese (ja)
Other versions
JP6927678B2 (en
Inventor
紀久 曽根
Norihisa Sone
紀久 曽根
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.)
Lapis Semiconductor Co Ltd
Original Assignee
Lapis Semiconductor Co 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 Lapis Semiconductor Co Ltd filed Critical Lapis Semiconductor Co Ltd
Priority to JP2016160682A priority Critical patent/JP6927678B2/en
Publication of JP2018029285A publication Critical patent/JP2018029285A/en
Application granted granted Critical
Publication of JP6927678B2 publication Critical patent/JP6927678B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)
  • Dc Digital Transmission (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a communication device capable of reducing the number of used terminals, and of performing initialization processing by limiting a target in a case where a predetermined event occurs in a system mounting itself, and to provide a semiconductor device, a communication system and an initialization method.SOLUTION: Provided is a communication device 12 including a communication interface unit RXD/TXD that can switch between a transmission mode of transmitting communication data and a reception mode of receiving communication data. The communication device 12 includes a monitoring unit 20 that monitors the communication data received in the reception mode, and issues an initialization signal for initializing the communication device 12 in a case where a predetermined condition is satisfied in the communication data to be received.SELECTED DRAWING: Figure 1

Description

本発明は、通信装置、半導体装置、通信システムおよび初期化方法、特に半導体装置としてのマイクロコントローラユニット(Micro Controller Unit、以下「MCU」)に搭載されるシリアル伝送方式の通信装置、通信システム、およびその初期化方法に関する。   The present invention relates to a communication device, a semiconductor device, a communication system, and an initialization method, in particular, a serial transmission communication device, a communication system, and a semiconductor device mounted on a microcontroller unit (hereinafter referred to as “MCU”) as a semiconductor device. It relates to the initialization method.

MCUとは、1つの集積回路にコンピュータシステムを集積化した、主として組み込み用のマイクロプロセッサをさす。近年、ゲーム装置、カーナビゲーションシステム、プリンタ、携帯情報端末などの電子機器の高度化、複雑化に伴い、各種電子機器にこのMCUが組み込まれる場合が多くなってきている。このような組み込み型のMCUは、通常、ターゲットシステムと呼ばれるユーザボードに実装される。そして、このターゲットシステムを動作させるソフトウェアの開発をいかに効率的に行うかが1つの課題となっている。   The MCU refers to an embedded microprocessor in which a computer system is integrated on one integrated circuit. In recent years, with the advancement and complexity of electronic devices such as game devices, car navigation systems, printers, and portable information terminals, the MCU is often incorporated into various electronic devices. Such an embedded MCU is usually mounted on a user board called a target system. One problem is how to efficiently develop software for operating the target system.

このようなソフトウェア開発支援ツールとしては、従来ICE(In Circuit Emulator)と呼ばれるデバッグツールが広く使用されてきたが、近年ではオンチップエミュレータが主流となってきている。オンチップエミュレータとはMCU等をプリント基板に実装した状態でプログラムのデバッグを実行する装置の総称である。   As such a software development support tool, a debugging tool called ICE (In Circuit Emulator) has been widely used, but in recent years, an on-chip emulator has become mainstream. The on-chip emulator is a general term for devices that execute program debugging in a state where an MCU or the like is mounted on a printed circuit board.

オンチップエミュレータはマイクロコンピュータ(PC)に接続され、このPCを介してオンチップエミュレータが制御される。一方、デバッグ対象であるMCU等の内部にデバッグ回路が搭載され、このデバッグ回路で収集したデバッグ情報を用いてデバッグ作業が行われる。デバッグ情報はデバッグ用のインタフェースを介してオンチップエミュレータに送られ、オンチップエミュレータからPCに転送される。つまり、オンチップエミュレータ(デバッグツール)とMCU(ターゲットシステム)との間では、何らかの通信手段を介した通信が行われることとなる。   The on-chip emulator is connected to a microcomputer (PC), and the on-chip emulator is controlled via this PC. On the other hand, a debug circuit is mounted inside an MCU or the like to be debugged, and debugging work is performed using debug information collected by the debug circuit. The debug information is sent to the on-chip emulator via the debugging interface, and is transferred from the on-chip emulator to the PC. That is, communication via some communication means is performed between the on-chip emulator (debug tool) and the MCU (target system).

従来、デバッグシステムにおけるデバッグツールとターゲットシステムとの間の通信に言及した文献として特許文献1が知られている。特許文献1に開示されたデバッグシステムでは、ターゲットシステムからデバッグツールに送信されるデバッグ用の送信データに対応したシリアルデータ信号と、CPU(Central Processing Unit)の状態を示すラン/ブレーク状態信号をマージして出力信号を生成する回路を備え、当該出力信号を1つのデバッグ端子を介して出力している。特許文献1では、このようなデバッグシステムによれば、CPUのラン/ブレーク状態信号の送信とデバッグ用のデータの送信とを1本の通信ラインで共用して行うことができるので、ラン/ブレーク状態信号を出力するためのデバッグ用端子を個別に設ける必要がないとしている。   Conventionally, Patent Document 1 is known as a document that refers to communication between a debug tool and a target system in a debug system. In the debug system disclosed in Patent Document 1, the serial data signal corresponding to the transmission data for debugging transmitted from the target system to the debug tool and the run / break state signal indicating the state of the CPU (Central Processing Unit) are merged. Thus, a circuit for generating an output signal is provided, and the output signal is output via one debug terminal. In Patent Document 1, according to such a debugging system, the transmission of a CPU run / break status signal and the transmission of debugging data can be performed in a single communication line. It is assumed that it is not necessary to provide a debugging terminal for outputting a status signal.

特開2007−172648号公報JP 2007-172648 A

ここで、図8を参照し、比較例に係るデバッグシステム2について、デバッグツールとターゲットシステムとの間の通信を中心に説明する。図8に示すように、デバッグシステム2は、デバッグツールとしてのオンチップエミュレータ100とターゲットシステムとしてのMCU50を含んで構成されている。なお、図8では、オンチップエミュレータ100に接続されるPCの図示を省略している。   Here, with reference to FIG. 8, the debug system 2 according to the comparative example will be described focusing on communication between the debug tool and the target system. As shown in FIG. 8, the debug system 2 includes an on-chip emulator 100 as a debug tool and an MCU 50 as a target system. In FIG. 8, illustration of a PC connected to the on-chip emulator 100 is omitted.

オンチップエミュレータ100には、通信装置102、クロック源(図8では、「OSC」と表記)104、およびCPU106が含まれている。通信装置102は、MCU50との通信を実行する部位であり、通信装置102に接続されたコネクタCN3にデータ信号送信用のTXD端子、受信用のRXD端子、クロック信号送信用のCLK端子、MCU50に対するリセット信号送信用のRESET端子、および電源用のVCC端子、VSS端子が配置されている。クロック源104は発振回路を含み、通信装置102に供給する周波数f1のクロック信号CLKeを発生する部位である。CPU106はオンチップエミュレータ100を統括制御する部位である。   The on-chip emulator 100 includes a communication device 102, a clock source (indicated as “OSC” in FIG. 8) 104, and a CPU 106. The communication device 102 is a part that performs communication with the MCU 50. The connector CN3 connected to the communication device 102 is connected to the TXD terminal for data signal transmission, the RXD terminal for reception, the CLK terminal for clock signal transmission, and the MCU 50. A RESET terminal for transmitting a reset signal, a VCC terminal for power supply, and a VSS terminal are arranged. The clock source 104 includes an oscillation circuit and is a part that generates a clock signal CLKe having a frequency f1 supplied to the communication apparatus 102. The CPU 106 is a part that performs overall control of the on-chip emulator 100.

一方、MCU50には、通信装置52、およびCPU54が含まれている。通信装置52は通信装置102と対向してオンチップエミュレータ100との通信を実行する部位であり、コネクタCN4にデータ信号受信用のRXD端子、送信用のTXD端子、クロック信号受信用のCLK端子、MCU50に対するリセット信号受信用のRESET端子、および電源用のVCC端子、VSS端子が配置されている。   On the other hand, the MCU 50 includes a communication device 52 and a CPU 54. The communication device 52 is a part that performs communication with the on-chip emulator 100 opposite to the communication device 102. The connector CN4 has an RXD terminal for receiving a data signal, a TXD terminal for transmitting, a CLK terminal for receiving a clock signal, A RESET terminal for receiving a reset signal for the MCU 50, a VCC terminal for power supply, and a VSS terminal are arranged.

デバッグシステム2におけるオンチップエミュレータ100とMCU50との間の通信は、クロック源104によるクロック信号CLKeを同期クロックとする同期式通信で行われる。そのため、オンチップエミュレータ100とMCU50との間には、データ信号を双方向で送信、受信するためのデータ信号線として2線、オンチップエミュレータ100からMCU50にクロック信号CLKeを供給するための信号線1本、さらにMCU50をリセットするリセット信号を送信するための信号線1本が必要になる。その結果、MCU50にもこれらの信号線に対応する端子が必要になる。しかしながら、これらの端子はデバッグ専用の端子であり、MCU50が組み込まれた電子機器等の実機では使用されない。   Communication between the on-chip emulator 100 and the MCU 50 in the debug system 2 is performed by synchronous communication using the clock signal CLKe from the clock source 104 as a synchronous clock. Therefore, between the on-chip emulator 100 and the MCU 50, there are two data signal lines for transmitting and receiving data signals bidirectionally, and a signal line for supplying the clock signal CLKe from the on-chip emulator 100 to the MCU 50. One signal line and one signal line for transmitting a reset signal for resetting the MCU 50 are required. As a result, the MCU 50 also needs terminals corresponding to these signal lines. However, these terminals are dedicated terminals for debugging and are not used in actual machines such as electronic devices in which the MCU 50 is incorporated.

一方、近年のMCUの高機能化等に伴い、電子機器等においてI/O端子など実際に使用する端子も増加する傾向にある。そのため、I/O端子の2次機能としてデバッグに用いることも考えられるが、この場合には兼用されたI/O端子のI/O端子としての機能についてデバッグすることができなくなってしまう。このように、実際に使用する端子が増加することによりデバッグに用いられる端子は少なくすることが求められる。従って、上記のようにMCUのソフトウェア開発、システム開発(デバッグ等)においてのみ使用される端子は、極力少なくすることが求められている。   On the other hand, with the recent increase in functionality of MCUs and the like, the number of terminals that are actually used such as I / O terminals in electronic devices and the like tends to increase. For this reason, it can be considered that the secondary function of the I / O terminal is used for debugging, but in this case, the function as the I / O terminal of the shared I / O terminal cannot be debugged. In this way, it is required to reduce the number of terminals used for debugging as the number of terminals actually used increases. Therefore, as described above, it is required to minimize the number of terminals used only in MCU software development and system development (debugging, etc.).

他方、オンチップエミュレータ100を用いたMCU50のシステム開発においては、効率的なデバッグ作業等の観点から、随時MCU50をリセット(初期化)させる処理が必要となる。さらに、この場合のリセット処理についてもMCU50の全体だけでなく、必要な回路ブロックだけ部分的にリセットさせたい場合もある。デバッグシステム2においても、CPU106の判断に従ってオンチップエミュレータ100からMCU50に向けてリセット信号RESETが発出可能なように構成されている。   On the other hand, in the system development of the MCU 50 using the on-chip emulator 100, a process for resetting (initializing) the MCU 50 is necessary from the viewpoint of efficient debugging work and the like. Further, with respect to the reset processing in this case, there is a case where not only the entire MCU 50 but also a necessary circuit block is partially reset. The debug system 2 is also configured so that a reset signal RESET can be issued from the on-chip emulator 100 to the MCU 50 according to the determination of the CPU 106.

しかしながら、比較例に係るデバッグシステム2におけるこのリセット信号RESETはMCU50の全体をリセットする信号である。従って、例えばMCU50のデバッグ回路に付随するメモリ等に記憶されたデータは保持しつつ通信装置12だけをリセットするようなことはできない。   However, the reset signal RESET in the debug system 2 according to the comparative example is a signal that resets the entire MCU 50. Therefore, for example, it is not possible to reset only the communication device 12 while retaining data stored in a memory or the like associated with the debug circuit of the MCU 50.

上記のような状況下、特許文献1に開示されたデバッグシステムでもデバッグで使用される端子の数を削減している。しかしながら、特許文献1では端子の数を削減した上での部分的なリセット処理については言及していない。   Under the circumstances as described above, the number of terminals used for debugging is also reduced in the debug system disclosed in Patent Document 1. However, Patent Document 1 does not mention partial reset processing after reducing the number of terminals.

本発明は、上述した課題を解決するためになされたものであり、使用される端子の数を削減しつつ、搭載されたシステムに所定の事象が発生した場合に対象を限定して初期化処理することが可能な通信装置、半導体装置、通信システムおよび初期化方法を提供することを目的とする。   The present invention has been made in order to solve the above-described problems, and reduces the number of terminals to be used and performs initialization processing by limiting a target when a predetermined event occurs in an installed system. An object of the present invention is to provide a communication device, a semiconductor device, a communication system, and an initialization method that can be performed.

本発明に係る通信装置は、通信データを送信する送信モードと通信データを受信する受信モードとが切り換え可能とされた通信インタフェース部を含む通信装置であって、前記受信モードにおいて受信する前記通信データを監視し受信する前記通信データにおいて予め定められた条件が充足された場合に自身を初期化する初期化信号を発出する監視部を含むものである。   The communication device according to the present invention is a communication device including a communication interface unit capable of switching between a transmission mode for transmitting communication data and a reception mode for receiving communication data, the communication data received in the reception mode. And a monitoring unit that issues an initialization signal to initialize itself when a predetermined condition is satisfied in the communication data to be monitored and received.

本発明に係る半導体装置は、上記の通信装置と、他の機器と接続するための機器接続インタフェース部と、接続される他の機器を制御する制御部と、を含むものである。   A semiconductor device according to the present invention includes the communication device described above, a device connection interface unit for connecting to another device, and a control unit for controlling the other device to be connected.

本発明に係る通信システムは、上記の半導体装置、および通信線を介して前記通信インタフェース部に接続された対向通信装置を備えた対向装置を含む通信システムであって、前記対向装置は、前記通信システムにおいて予め定められた事象を検出した場合に前記対向通信装置から前記通信線を介し前記予め定められた条件の通信データを前記通信装置に送信するものである。   A communication system according to the present invention is a communication system including the above-described semiconductor device and a counter device including a counter communication device connected to the communication interface unit via a communication line, wherein the counter device includes the communication device. When a predetermined event is detected in the system, communication data of the predetermined condition is transmitted from the opposite communication device to the communication device via the communication line.

本発明に係る初期化方法は、通信線を介し対向する対向装置に通信データを送信する送信モード、および前記対向装置からの通信データを受信する受信モードが切り換え可能とされた通信インタフェース部を含む通信装置であって、前記受信モードにおいて前記対向装置から受信する前記通信データを監視し受信する前記通信データにおいて予め定められた条件が充足された場合に初期化信号を発出する監視部を含む通信装置を用いた初期化方法であって、前記対向装置が予め定められた事象を検出した場合に、前記対向装置が前記通信線を介して予め定められた極性の通信データを前記通信装置に送信し、前記通信装置が前記予め定められた極性の通信データを予め定められた期間連続して受信した場合に、前記通信装置が前記初期化信号により自身を初期化するとともに前記初期化信号を前記対向装置に向け送信するものである。   The initialization method according to the present invention includes a communication interface unit capable of switching between a transmission mode for transmitting communication data to an opposing device via a communication line and a reception mode for receiving communication data from the opposite device. A communication device including a monitoring unit that issues an initialization signal when a predetermined condition is satisfied in the communication data that monitors and receives the communication data received from the opposite device in the reception mode An initialization method using a device, wherein when the opposite device detects a predetermined event, the opposite device transmits communication data having a predetermined polarity to the communication device via the communication line. And the communication device receives the initialization signal when the communication data of the predetermined polarity is received continuously for a predetermined period. Is to send toward said initialization signal to the counter device is initialized more itself.

本発明によれば、使用される端子の数を削減しつつ、搭載されたシステムに所定の事象が発生した場合に対象を限定して初期化処理することが可能な通信装置、半導体装置、通信システムおよび初期化方法を提供することが可能となる。   According to the present invention, a communication device, a semiconductor device, and a communication device capable of performing initialization processing by limiting a target when a predetermined event occurs in an installed system while reducing the number of terminals used. A system and initialization method can be provided.

第1の実施の形態に係るデバッグシステムを示すブロック図である。1 is a block diagram showing a debugging system according to a first embodiment. 実施の形態に係る調歩同期式通信におけるフレーム構成の一例を示す図である。It is a figure which shows an example of the frame structure in the asynchronous communication which concerns on embodiment. 第1の実施の形態に係る監視回路の一例を示す回路図である。It is a circuit diagram showing an example of a monitoring circuit concerning a 1st embodiment. 第1の実施の形態に係る監視回路の各節点の波形を示すタイミングチャートである。It is a timing chart which shows the waveform of each node of the monitoring circuit concerning a 1st embodiment. 実施の形態に係るRXD/TXD端子のプルアップ回路およびプルダウン回路の一例を示す回路図である。It is a circuit diagram which shows an example of the pull-up circuit and pull-down circuit of the RXD / TXD terminal which concern on embodiment. 第2の実施の形態に係る監視回路の一例を示す回路図である。It is a circuit diagram which shows an example of the monitoring circuit which concerns on 2nd Embodiment. 第2の実施の形態に係る監視回路の各節点の波形を示すタイミングチャートである。It is a timing chart which shows the waveform of each node of the monitoring circuit concerning a 2nd embodiment. 比較例に係るデバッグシステムを示すブロック図である。It is a block diagram which shows the debugging system which concerns on a comparative example.

以下、図面を参照して、本発明を実施するための形態について詳細に説明する。   DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the drawings.

[第1の実施の形態]
図1ないし図5を参照して、本実施の形態に係る通信装置、半導体装置、通信システムおよび初期化方法について説明する。図1は、本実施の形態に係る通信システムとしてのデバッグシステム1を示しており、本実施の形態に係る半導体装置としてのMCU10をオンチップエミュレータ100とともに図示したものである。本実施の形態に係るデバッグシステム1(通信システム)では、オンチップエミュレータ100とMCU10との間の通信に調歩同期式通信(Universal Asynchronous Receiver Transmitter:UART、非同期式通信)を採用し、該通信におけるデータ信号線を利用し、ハードウェアリセットによる通信装置の初期化に加え、ソフトウェアリセットによる初期化を実現している。
[First Embodiment]
A communication device, a semiconductor device, a communication system, and an initialization method according to the present embodiment will be described with reference to FIGS. FIG. 1 shows a debugging system 1 as a communication system according to the present embodiment, and shows an MCU 10 as a semiconductor device according to the present embodiment together with an on-chip emulator 100. In the debug system 1 (communication system) according to the present embodiment, asynchronous communication (UART, asynchronous communication) is adopted for communication between the on-chip emulator 100 and the MCU 10. Using data signal lines, in addition to initialization of communication devices by hardware reset, initialization by software reset is realized.

オンチップエミュレータ100は、通信装置102、周波数f1(通信周波数)のクロック源104(図1では「OSC」と表記)、およびCPU106を含んで構成されている。   The on-chip emulator 100 includes a communication device 102, a clock source 104 (denoted as “OSC” in FIG. 1) having a frequency f1 (communication frequency), and a CPU.

通信装置102は、調歩同期式通信に対応可能な通信装置であり、コネクタCN1に配置された通信データを送信するTXD端子、受信するRXD端子、クロック信号を送信するCLK端子、リセット信号を送信するRESET端子、および電源を供給するVCC端子、VSS端子を有している。調歩同期式通信では1本のデータ信号線を送信、受信で共用するため、データ送信用のTXD端子とデータ受信用のRXD端子とは、コネクタCN1で短絡されている。通信装置102では、さらにクロック信号送信用のCLK端子とリセット信号送信用のRESET端子とがコネクタCN1で短絡され、共用化が図られている。   The communication device 102 is a communication device capable of asynchronous communication, and transmits a TXD terminal that transmits communication data arranged in the connector CN1, a RXD terminal that receives the data, a CLK terminal that transmits a clock signal, and a reset signal. It has a RESET terminal, a VCC terminal for supplying power, and a VSS terminal. In asynchronous communication, since one data signal line is shared for transmission and reception, the TXD terminal for data transmission and the RXD terminal for data reception are short-circuited by the connector CN1. In the communication device 102, the CLK terminal for transmitting the clock signal and the RESET terminal for transmitting the reset signal are further short-circuited by the connector CN1 so as to be shared.

本実施の形態に係るクロック源104で発生されたクロック信号CLKeは、通信装置102における調歩同期式通信に使用されるクロック信号(通信クロック信号)であり、CLK端子からMCU10に送られるわけではない。また、CPU106は、オンチップエミュレータ100の全体を統括管理する。   The clock signal CLKe generated by the clock source 104 according to the present embodiment is a clock signal (communication clock signal) used for asynchronous communication in the communication apparatus 102 and is not sent from the CLK terminal to the MCU 10. . The CPU 106 manages and manages the entire on-chip emulator 100.

一方、本実施の形態に係るMCU10は、通信装置12、周波数f2のクロック信号CLKiを発生させるクロック源14(図1では「OSC」と表記)、CPU16、および監視回路20を含んで構成されている。   On the other hand, the MCU 10 according to the present embodiment includes a communication device 12, a clock source 14 (denoted as “OSC” in FIG. 1) that generates a clock signal CLKi having a frequency f2, a CPU 16, and a monitoring circuit 20. Yes.

通信装置12はMCU10に内蔵された調歩同期方式の通信装置であり、通信データの送信線と受信線とが共用化され、MCU10におけるデバッグ専用端子の削減が図られている。そのため、通信装置12は、送信モードと受信モードとを切り換えてオンチップエミュレータ100との通信を行う。通信装置12は、コネクタCN2に配置されたデータ送受信用のRXD/TXD端子、クロック信号およびリセット信号を受信するCLK/RESET端子(本実施の形態では常態において使用しない)、およびオンチップエミュレータ100から電源の供給を受けるVCC端子、VSS端子を有している。本実施の形態では、一例として、MCU10の電源VCCは正電源であり、電源VSSはグランド(GND)である。なお、本実施の形態では、電源VCC、VSSの各々はオンチップエミュレータ100から供給される構成としているが、MCU10の電源は必ずしもオンチップエミュレータ100から供給される必要はなく、外部からMCU10に直接供給されるようにしてもよい。   The communication device 12 is an asynchronous communication device built in the MCU 10, and the communication data transmission line and the reception line are shared, and the debugging dedicated terminals in the MCU 10 are reduced. Therefore, the communication device 12 performs communication with the on-chip emulator 100 by switching between the transmission mode and the reception mode. The communication device 12 includes an RXD / TXD terminal for data transmission / reception arranged at the connector CN2, a CLK / RESET terminal for receiving a clock signal and a reset signal (not normally used in the present embodiment), and an on-chip emulator 100. It has a VCC terminal and a VSS terminal for receiving power supply. In the present embodiment, as an example, the power supply VCC of the MCU 10 is a positive power supply, and the power supply VSS is a ground (GND). In this embodiment, each of the power supplies VCC and VSS is supplied from the on-chip emulator 100, but the power supply of the MCU 10 does not necessarily need to be supplied from the on-chip emulator 100, and directly to the MCU 10 from the outside. It may be supplied.

本実施の形態に係るクロック源14で発生されたクロック信号CLKiは、通信装置12における調歩同期式通信に使用される通信クロック信号である。従って、本実施の形態では、クロック源14の周波数f2(通信周波数)を、オンチップエミュレータ100のクロック源104の周波数f1(通信周波数)と同じ周波数としている(f1≒f2)。
むろん、これに限られず、MCU10の通信周波数f2をクロック源104の通信周波数f1と異なる周波数としてもよい。また、CPU16は、オンチップエミュレータ100の全体を統括管理する。
The clock signal CLKi generated by the clock source 14 according to the present embodiment is a communication clock signal used for asynchronous communication in the communication device 12. Therefore, in this embodiment, the frequency f2 (communication frequency) of the clock source 14 is the same as the frequency f1 (communication frequency) of the clock source 104 of the on-chip emulator 100 (f1≈f2).
Of course, the present invention is not limited to this, and the communication frequency f2 of the MCU 10 may be different from the communication frequency f1 of the clock source 104. Further, the CPU 16 manages and manages the entire on-chip emulator 100.

監視回路20は、通信装置12から受信データ信号RDを受け、クロック源14からクロック信号CLKiを受け、これらの信号に基づいて受信データ信号RDを監視し、所定の条件が充足された場合に通信装置12をリセット(初期化)するためのリセット信号RSTを発生させる。図1では便宜的に通信装置12と監視回路20とを分離して図示しているが、両者は実質的に一体として動作する回路であり、監視回路20を通信装置12に内蔵させてもよい。監視回路20の詳細については後述する。   The monitoring circuit 20 receives the reception data signal RD from the communication device 12, receives the clock signal CLKi from the clock source 14, monitors the reception data signal RD based on these signals, and performs communication when a predetermined condition is satisfied. A reset signal RST for resetting (initializing) the device 12 is generated. In FIG. 1, for convenience, the communication device 12 and the monitoring circuit 20 are illustrated separately, but both are circuits that operate substantially integrally, and the monitoring circuit 20 may be built in the communication device 12. . Details of the monitoring circuit 20 will be described later.

次に、MCU10における通信装置12のインタフェースについて、より詳細に説明する。本実施の形態に係る通信装置12では、上述のように調歩同期式通信を採用して送信データ信号線と受信データ信号線とを共有化(双方向化)し、データ信号線を1本とすることによりMCU10におけるデバッグ専用の端子数の削減を図っている。以下、この1本のデータ信号線をUART IF(Interface)という場合がある。本実施の形態に係る監視回路20は、このUART IFを利用して、オンチップエミュレータ100からMCU10をソフトウェア的にリセットすることを可能としている。   Next, the interface of the communication device 12 in the MCU 10 will be described in more detail. In the communication device 12 according to the present embodiment, asynchronous transmission is adopted as described above to share (bidirectional) the transmission data signal line and the reception data signal line, and one data signal line is used. By doing so, the number of terminals dedicated for debugging in the MCU 10 is reduced. Hereinafter, this one data signal line may be referred to as a UART IF (Interface). The monitoring circuit 20 according to the present embodiment can reset the MCU 10 from the on-chip emulator 100 by software using the UART IF.

本実施の形態では、さらにCLK端子とRESET端子とを共用化して、MCU10のデバッグ専用端子数の節約を図り、MCU10が搭載された実機で用いられるI/O(Input/Output)の端子数を増やしている。しかしながら、さらなる端子の節約という理由と、以下に述べる理由とにより、オンチップエミュレータ100とMCU10との間の信号線を2本(RXD/TXD(UART IF)線、CLK/RESET線)からさらにUART IFの1本だけにしている。   In the present embodiment, the CLK terminal and the RESET terminal are further shared to save the number of debug dedicated terminals of the MCU 10 and the number of I / O (Input / Output) terminals used in the actual machine in which the MCU 10 is mounted is reduced. Increasing. However, for further reasons of saving terminals and the reasons described below, the signal lines between the on-chip emulator 100 and the MCU 10 are increased from two (RXD / TXD (UART IF) line, CLK / RESET line) to UART. Only one IF is used.

すなわち、一般にRESET端子にはノイズの除去やパワーオンリセットを目的としたフィルタが挿入されることが多く、そのためRESET端子に印加する信号の速度が制限される。その結果、CLK端子とRESET端子とを共用化するとCLK端子から送るクロック信号の高速化が図れず、同期通信を用いる意義が薄れるからである。そのため、本実施の形態では、通信線としてクロック信号の伝送が不要なUART IFの1本のみを用い、かつオンチップエミュレータ100からMCU10へのリセット要求をこのUART IFを用いて行うように構成している。リセット要求を認識したMCU10は自身をリセットする。自身のリセットとともに、リセット要求を認識したことをオンチップエミュレータ100に返送するようにしてもよい。   That is, in general, a filter for noise removal or power-on reset is often inserted into the RESET terminal, and thus the speed of a signal applied to the RESET terminal is limited. As a result, if the CLK terminal and the RESET terminal are shared, the clock signal sent from the CLK terminal cannot be increased in speed, and the significance of using synchronous communication is diminished. Therefore, in this embodiment, only one UART IF that does not require transmission of a clock signal is used as a communication line, and a reset request from the on-chip emulator 100 to the MCU 10 is performed using this UART IF. ing. The MCU 10 that has recognized the reset request resets itself. Along with its own reset, the fact that the reset request has been recognized may be returned to the on-chip emulator 100.

次に、図2を参照し調歩同期式通信で使用するフレーム構成について説明する。図2は、調歩同期式通信で採用されている1フレームの構成(図2では「シリアルデータ」と表記)を内部クロック(通信クロック)とともに示した図である。図2に示すように、調歩同期式通信では1回に送るデータを7ビットあるいは8ビットとし(図2では、D0ないしD8の8ビットとしている)、このデータの前後にスタートビットとストップビットを挟みこむことで、1回の送受信が行われる。このスタートビットからストップビットまでの1組の配列が「1フレーム」(または、「1キャラクタ」)と呼ばれている。   Next, a frame configuration used in asynchronous communication will be described with reference to FIG. FIG. 2 is a diagram showing the configuration of one frame (denoted as “serial data” in FIG. 2) adopted in asynchronous communication together with an internal clock (communication clock). As shown in FIG. 2, in asynchronous communication, the data sent at one time is 7 bits or 8 bits (in FIG. 2, it is 8 bits from D0 to D8), and the start bit and stop bit are set before and after this data. By being sandwiched, one transmission / reception is performed. A set of arrays from the start bit to the stop bit is called “1 frame” (or “1 character”).

スタートビットは1ビット固定であるのに対し、ストップビットは1ビットまたは2ビットとされ(図2に示す例では2ビット)、かつスタートビットとは別の極性の信号とされる。つまり、スタートビットがロウレベル(以下、「L」)ならばストップビットはハイレベル(以下、「H」)であり、スタートビットがHならばストップビットはLである。データビット(D0〜D8)の後にパリティビットが付加される場合もある。なお、以下ではスタートビットをL、ストップビットをHとして説明している。   The start bit is fixed at 1 bit, whereas the stop bit is 1 bit or 2 bits (2 bits in the example shown in FIG. 2), and the signal has a polarity different from that of the start bit. That is, if the start bit is low level (hereinafter “L”), the stop bit is high level (hereinafter “H”), and if the start bit is H, the stop bit is L. A parity bit may be added after the data bits (D0 to D8). In the following description, the start bit is L and the stop bit is H.

図2における内部クロックは、図1のクロック信号CLKiを示している。本実施の形態では、上述したように、オンチップエミュレータ100とMCU10との間でクロック信号のやり取りを行わない。そのため、図1に示すように、オンチップエミュレータ100とMCU10とは個別にクロック源(クロック源104とクロック源14)を備えている。   The internal clock in FIG. 2 represents the clock signal CLKi in FIG. In this embodiment, as described above, no clock signal is exchanged between the on-chip emulator 100 and the MCU 10. Therefore, as shown in FIG. 1, the on-chip emulator 100 and the MCU 10 are individually provided with clock sources (clock source 104 and clock source 14).

調歩同期式通信では、まず送信側がスタートビットを送出すると、受信側は内部クロックの周期で受信したデータ(受信データ信号RD)の極性を判別し、HからLに変化したことを検出すると送受信動作を開始する。受信データ信号RDの1ビットの幅は内部クロックのサイクル数で予め設定しておく。このサイクル数が送受信のスピード、すなわちボーレートになる。送信側と受信側でこのボーレートを一致させておくことが必要である。   In asynchronous communication, first, when the transmitting side sends a start bit, the receiving side discriminates the polarity of the received data (received data signal RD) at the cycle of the internal clock, and when it detects that it has changed from H to L, it performs a transmission / reception operation To start. The width of 1 bit of the reception data signal RD is set in advance by the number of cycles of the internal clock. The number of cycles is the transmission / reception speed, that is, the baud rate. It is necessary to match this baud rate between the transmission side and the reception side.

次に、通信装置12においてリセット(初期化)処理が必要となる場合について説明する。調歩同期式通信ではクロック信号の伝送がないため、通信を行う両端の装置の双方がクロック源(発振回路)を備えている必要がある。正常な通信が行われるためには双方の発振回路の周波数が一致している必要があるため、双方の発振回路には高い精度、例えば周波数変動で5%以内という精度が要求される。しかしながら、発振回路の周波数精度が5%の精度であっても、図2に示すように、調歩同期式通信の1フレームは約10ビットであるので、5%のずれが蓄積すると1フレームの終端付近では50%を越えてしまう。
周波数のずれが50%を越えると、受信側において受信データを取りこぼす可能性が発生する。従って、クロック信号のずれを監視し、クロック信号のずれが許容範囲外となるつどボーレートの補正を行う必要が生ずる。
Next, a case where a reset (initialization) process is required in the communication device 12 will be described. In asynchronous communication, there is no transmission of a clock signal. Therefore, both devices that perform communication must have clock sources (oscillation circuits). In order for normal communication to be performed, the frequencies of both oscillation circuits need to match, so both oscillation circuits are required to have high accuracy, for example, accuracy within 5% in terms of frequency fluctuations. However, even if the accuracy of the frequency of the oscillation circuit is 5%, as shown in FIG. 2, one frame of asynchronous communication is about 10 bits. In the vicinity, it exceeds 50%.
If the frequency deviation exceeds 50%, there is a possibility that the reception side may miss the received data. Therefore, it is necessary to monitor the deviation of the clock signal and correct the baud rate whenever the deviation of the clock signal is outside the allowable range.

また、上記のボーレートの補正は比較的微小な範囲の調整ですむが、ボーレート自体の再設定が必要になる場合も考えられる。例えば、ボーレート設定用レジスタにノイズが混入し、ボーレート設定用レジスタのレジスタ値が変化してしまうような場合である。このような場合には、オンチップエミュレータ100とMCU10との間でボーレートが大きくずれ、もはやオンチップエミュレータ100とMCU10との間の通信が不可能になってしまうことも想定される。   Further, although the above baud rate correction may be performed in a relatively small range, there is a case where the baud rate itself needs to be reset. For example, there is a case where noise is mixed in the baud rate setting register and the register value of the baud rate setting register changes. In such a case, it is assumed that the baud rate is greatly deviated between the on-chip emulator 100 and the MCU 10 and communication between the on-chip emulator 100 and the MCU 10 is no longer possible.

さらに、調歩同期式通信では送信線、受信線が共用化されているため、どちらが受信中でどちらが送信中であるかを示すステート(状態)、処理中であることを示すBUSY(ビジー)ステート、応答待ちを示すREADY(レディ)ステートなどのステートを持つ。しかしながら、このステートを管理するステートマシンの状態にずれが生じたり、あるいは何らかの原因でステートマシンにおけるステートが不明となった場合には、UART IFの両端の装置がお互いを認識できない状態に陥ることも想定される。   Furthermore, since the transmission line and the reception line are shared in asynchronous communication, a state (state) indicating which is being received and which is being transmitted, a BUSY (busy) state indicating that processing is being performed, It has a state such as a READY (ready) state indicating response waiting. However, if the state machine that manages this state is shifted or if the state in the state machine is unknown for some reason, the devices at both ends of the UART IF may be unable to recognize each other. is assumed.

しかしながら、本実施の形態に係るデバッグシステム1では、オンチップエミュレータ100とMCU10との間の接続がUART IFの1本であるため、上記のような状況が発生した場合にオンチップエミュレータ100とMCU10との間の通信を回復する手段がない。   However, in the debug system 1 according to the present embodiment, since the connection between the on-chip emulator 100 and the MCU 10 is one UART IF, when the above situation occurs, the on-chip emulator 100 and the MCU 10 There is no means to recover communication between.

上記のような場合に対応する手段のひとつとして、通信状態監視の一手段であるウォッチドッグタイマを用いることも考えられる。ウォッチドッグタイマを用いた監視では、通信状態の正常動作を監視するためにオンチップエミュレータ100からMCU10に一定周期の信号を送信し、MCU10に内蔵したウォッチドッグタイマをリセットする。通信状態が異常となりMCU10が一定時間以内に信号を送れなくなると、ウォッチドッグタイマがタイムアップするので、このタイムアップを契機としオンチップエミュレータ100がMCU10に向けリセットの指示を発出して初期化させる。   As one of the means corresponding to the above case, it is also conceivable to use a watchdog timer which is one means for monitoring the communication state. In the monitoring using the watchdog timer, a signal having a constant cycle is transmitted from the on-chip emulator 100 to the MCU 10 in order to monitor the normal operation of the communication state, and the watchdog timer built in the MCU 10 is reset. When the communication status becomes abnormal and the MCU 10 can no longer send a signal within a certain time, the watchdog timer will time up, and when this time is up, the on-chip emulator 100 issues a reset instruction to the MCU 10 to initialize it. .

しかしながら、上記のウォッチドッグタイマによる監視では定期的な通信により解除処理を行なわなければならないが、そもそも通信手段が確立していない状態では解除処理ができない。また、どこでリセットがかかったかオンチップエミュレータ100が判断できないという問題がある。さらに、一般にウォッチドッグタイマによる監視では監視時間が長く、またMCU10の全体がリセットされるのみで、通信装置12のみをリセットするという処理ができないという問題もある。   However, in the monitoring by the watchdog timer described above, the release process must be performed by regular communication. However, the release process cannot be performed in a state where the communication means is not established. There is also a problem that the on-chip emulator 100 cannot determine where the reset is applied. Furthermore, in general, monitoring by a watchdog timer has a problem that the monitoring time is long, and only the entire MCU 10 is reset, and the process of resetting only the communication device 12 cannot be performed.

単にリセットするだけならば、MCU10に備えられたハードウェアリセットであるCLK/RESET端子(図1参照)を使用することも考えられる。しかしながら、このハードウェアリセットもMCU10全体のリセットである。例えば、UART IFを介した通信をともなうデバッグ過程において、MCU10が有するRAM(Random Access Memory)等に重要なパラメータが記憶されているような場合には、MCU10全体のリセットを行うことはデバッグの効率を大きく損ねる。   If simply resetting, it is possible to use the CLK / RESET terminal (see FIG. 1), which is a hardware reset provided in the MCU 10. However, this hardware reset is also a reset of the entire MCU 10. For example, when an important parameter is stored in a RAM (Random Access Memory) or the like included in the MCU 10 in a debugging process involving communication via the UART IF, resetting the entire MCU 10 is effective in debugging. Is greatly impaired.

これに対し、本実施の形態に係るMCU10では、通信装置12のみをリセットすることが可能となっているので、デバッグの効率を向上させることができる。また、UART IFを使用してリセット処理を行うため、オンチップエミュレータ100のリセット端子の接続を省略することも可能となっている。なお、本実施の形態では、MCU10のリセット処理においては通信装置12のみをリセットする形態を例示して説明するが、これに限られず、MCU10内の他の回路をリセットすることとしてもよいし、またリセット信号をオンチップエミュレータ100に送信するようにしてもよい。   On the other hand, in the MCU 10 according to the present embodiment, it is possible to reset only the communication device 12, so that the debugging efficiency can be improved. Further, since reset processing is performed using the UART IF, it is possible to omit connection of the reset terminal of the on-chip emulator 100. In the present embodiment, an example in which only the communication device 12 is reset in the reset process of the MCU 10 will be described. However, the present invention is not limited to this, and other circuits in the MCU 10 may be reset. A reset signal may be transmitted to the on-chip emulator 100.

次に、図3および図4を参照し、本実施の形態に係る監視回路20についてより詳細に説明する。図3は監視回路20の一例を示す回路図であり、図4は監視回路20の各節点の動作波形を示すタイミングチャートである。MCU10に搭載された監視回路20は、UART IFの受信データ信号RDを監視し、所定の条件を充足する場合にオンチップエミュレータ100から初期化(リセット)の指示(リセット指示信号)が発出されたと判断し、主として通信装置12を初期化する機能を有している。   Next, the monitoring circuit 20 according to the present embodiment will be described in more detail with reference to FIGS. 3 and 4. FIG. 3 is a circuit diagram showing an example of the monitoring circuit 20, and FIG. 4 is a timing chart showing operation waveforms at each node of the monitoring circuit 20. As shown in FIG. The monitoring circuit 20 mounted on the MCU 10 monitors the reception data signal RD of the UART IF, and when an initialization (reset) instruction (reset instruction signal) is issued from the on-chip emulator 100 when a predetermined condition is satisfied. It has a function of determining and mainly initializing the communication device 12.

図3に示すように、監視回路20は、カウンタ22、フリップフロップ24、比較器26、AND回路28、インバータ30、OR回路32、34、36を含んで構成されている。図1に示すRXD/TXD端子を介して受信された受信データ信号RDは、AND回路28の反転入力と、OR回路32、34に入力される。また、上述したクロック信号CLKiがカウンタ22、フリップフロップ24に入力される。受信データ信号RDの監視において所定の条件が充足された場合には、インバータ30から通信装置12をリセットさせるリセット信号RSTが出力される。本実施の形態では、リセット信号RSTはLで有効とされている(アクティブL)。   As shown in FIG. 3, the monitoring circuit 20 includes a counter 22, a flip-flop 24, a comparator 26, an AND circuit 28, an inverter 30, and OR circuits 32, 34, and 36. The reception data signal RD received via the RXD / TXD terminal shown in FIG. 1 is input to the inverting input of the AND circuit 28 and the OR circuits 32 and 34. The clock signal CLKi described above is input to the counter 22 and the flip-flop 24. When a predetermined condition is satisfied in monitoring the received data signal RD, the inverter 30 outputs a reset signal RST that resets the communication device 12. In the present embodiment, the reset signal RST is valid at L (active L).

カウンタ22は、受信データ信号RDにおける予め定められた極性(本実施の形態ではこの極性をLとしている)の連続期間を監視するカウンタであり、本実施の形態では一例として12ビットカウンタとしている。本実施の形態では、この連続期間の監視をカウンタ22のクロック入力に入力されたクロック信号CLKiのパルス数によって行っている。カウンタ22のUP入力には監視対象である受信データ信号RDが入力され、R(同期)入力にはカウンタ22のカウント値のクリア信号が入力される。   The counter 22 is a counter that monitors a continuous period of a predetermined polarity (this polarity is L in the present embodiment) in the reception data signal RD, and is a 12-bit counter as an example in the present embodiment. In the present embodiment, this continuous period is monitored by the number of pulses of the clock signal CLKi input to the clock input of the counter 22. A reception data signal RD to be monitored is input to the UP input of the counter 22, and a clear signal for the count value of the counter 22 is input to the R (synchronization) input.

比較器26は、カウンタ22によるカウント信号(カウント値を示す信号)と予め定められた設定値とを比較し、カウント値が設定値に達した場合にカウント終了信号を発出する。図3では、カウンタのカウント信号を符号CVで示し、カウント値の予め定められた設定値を符号OFrefで示し、カウント終了信号を符号CEで示している。なお、本実施の形態では、カウント終了信号CEの極性をHで有効としている(アクティブH)。また、設定値OFrefの値を例えば4096としている。すなわち、本実施の形態では、受信データ信号RDのLがクロック信号CLKiの4096周期以上継続した場合に、リセット信号RSTが発出される。   The comparator 26 compares the count signal (a signal indicating the count value) from the counter 22 with a predetermined set value, and issues a count end signal when the count value reaches the set value. In FIG. 3, the count signal of the counter is indicated by a symbol CV, a preset set value of the count value is indicated by a symbol OFref, and the count end signal is indicated by a symbol CE. In the present embodiment, the polarity of the count end signal CE is set to H (active H). The set value OFref is set to 4096, for example. That is, in the present embodiment, the reset signal RST is issued when the L of the reception data signal RD continues for 4096 periods or more of the clock signal CLKi.

フリップフロップ24は、比較器26による比較結果を格納する。カウンタ22のリセット入力Rとフリップフロップ24のリセット入力Rに入力されているリセット信号ICE RSTは、監視回路20をリセットさせるための信号である。   The flip-flop 24 stores the comparison result by the comparator 26. A reset signal ICE RST input to the reset input R of the counter 22 and the reset input R of the flip-flop 24 is a signal for resetting the monitoring circuit 20.

AND回路28は、受信データ信号RDがLでありかつカウント終了信号CEがHの場合にフリップフロップ24のQ出力をHとする。このフリップフロップ24のQ出力からリセット信号RSTの補信号(RST_BAR)が出力される。フリップフロップ24のQ出力はインバータ30により反転され、リセット信号RSTとして通信装置12に入力される(図1参照)。OR回路36は、フリップフロップ24のQ出力を帰還させてカウント終了信号CEとの論理和をとることによりHを維持させる。   The AND circuit 28 sets the Q output of the flip-flop 24 to H when the reception data signal RD is L and the count end signal CE is H. A complementary signal (RST_BAR) of the reset signal RST is output from the Q output of the flip-flop 24. The Q output of the flip-flop 24 is inverted by the inverter 30 and input to the communication device 12 as the reset signal RST (see FIG. 1). The OR circuit 36 maintains H by feeding back the Q output of the flip-flop 24 and taking a logical sum with the count end signal CE.

OR回路34は、受信データ信号RDとフリップフロップ24のQ出力との論理和をとることにより、カウント終了信号CEが有効になった場合のカウンタ22のUP入力の入力値をLに固定する。OR回路32は、受信データ信号RDとフリップフロップ24のQ出力との論理和をとることにより、カウント終了信号CEが有効になった場合にカウンタ22のR(同期)入力にカウンタ22のクリア信号を入力する。   The OR circuit 34 calculates the logical sum of the received data signal RD and the Q output of the flip-flop 24, thereby fixing the input value of the UP input of the counter 22 when the count end signal CE becomes valid. The OR circuit 32 calculates the logical sum of the received data signal RD and the Q output of the flip-flop 24, so that when the count end signal CE becomes valid, the counter 22 clear signal is supplied to the R (synchronous) input of the counter 22. Enter.

次に、図4に示すタイミングチャートを参照し、監視回路20の動作についてより詳細に説明する。上述したように、通信装置12では、UART IFのRXD/TXD端子に入力される信号(受信データ信号RD)においてHからLへの遷移が検出されるとスタートビットが受信されたものと認識し、ストップビットのHが検出されるまで受信処理を行う。   Next, the operation of the monitoring circuit 20 will be described in more detail with reference to the timing chart shown in FIG. As described above, the communication device 12 recognizes that the start bit is received when a transition from H to L is detected in the signal (received data signal RD) input to the RXD / TXD terminal of the UART IF. Reception processing is performed until stop bit H is detected.

監視回路20は、受信データ信号RDを受信しつつ、オンチップエミュレータ100からリセットの指示を示す信号(リセット指示信号)の監視を行う。すなわち、受信データ信号RDがLになったことを検出すると、カウンタ22のカウント値が1だけカウントアップする。上述したように、このカウンタ22によるカウントは、クロック信号CLKiのパルス数を計数することによって行う。本実施の形態では、クロック信号CLKiを通信装置12の通信に用いるクロック(ボーレートカウンタ用クロック、あるいはサンプリングクロック等の通信クロック)としている。しかしながら、これに限られず、通信クロックとは独立した周波数の異なるクロック源によるクロックを用いてもよい。通信装置自身のクロックが停止すると自動的に本回路も停止に陥るため、別系統のクロックの方がより好ましい。   The monitoring circuit 20 monitors a signal (reset instruction signal) indicating a reset instruction from the on-chip emulator 100 while receiving the reception data signal RD. That is, when it is detected that the reception data signal RD has become L, the count value of the counter 22 is incremented by one. As described above, the counting by the counter 22 is performed by counting the number of pulses of the clock signal CLKi. In the present embodiment, the clock signal CLKi is used as a clock (communication clock such as a baud rate counter clock or a sampling clock) used for communication of the communication device 12. However, the present invention is not limited to this, and a clock by a clock source having a different frequency independent of the communication clock may be used. Since this circuit automatically stops when the clock of the communication device itself stops, a clock of another system is more preferable.

図4に示す動作例では、時刻t1において受信データ信号RDのHからLへの遷移が検出されたためカウンタ22がカウントを開始し、カウント値CVがカウントアップされている。受信データ信号RDがLであるかぎりこのカウントアップが継続される。しかしながら、カウントの途中の時刻t2において受信データ信号RDがLからHに遷移したため、カウンタ22がリセット(クリア)され、時刻t3においてカウント値が破棄され0に戻っている。UART IFで通常のデータ信号を受信している場合には、常時このカウンタ22のクリアが行われている。   In the operation example shown in FIG. 4, since the transition of the reception data signal RD from H to L is detected at time t1, the counter 22 starts counting and the count value CV is counted up. As long as the reception data signal RD is L, this count-up is continued. However, since the reception data signal RD transits from L to H at the time t2 during the counting, the counter 22 is reset (cleared), the count value is discarded and returned to 0 at the time t3. When a normal data signal is received by the UART IF, the counter 22 is always cleared.

時刻t4で受信データ信号RDが再びHからLに遷移したので、カウンタ22によるカウントが再開されている。そして、時刻t5においてカウント値が設定値OFref=4096に達したのでカウント終了信号CEがLからHに変化する(活性化する)。次のクロックサイクルでフリップフロップ24のQ出力がHにセットされ、リセット信号RSTがLに変化し、リセット信号RSTが有効になる(活性化する)。その後、時刻t6でカウンタが0にクリアされ、時刻t7で受信データ信号RDがHになったので、これを受けリセット信号RSTがHとされる(非活性化される)。   Since the reception data signal RD again changes from H to L at time t4, the counting by the counter 22 is resumed. Since the count value reaches the set value OFref = 4096 at time t5, the count end signal CE changes from L to H (is activated). In the next clock cycle, the Q output of the flip-flop 24 is set to H, the reset signal RST changes to L, and the reset signal RST becomes valid (activated). Thereafter, the counter is cleared to 0 at time t6, and the reception data signal RD becomes H at time t7. Accordingly, the reset signal RST is set to H (deactivated).

なお、本実施の形態では、受信データ信号RDにおいて、クロック信号CLKiの4096周期分のLが継続された場合(図4では、検出時間Tpとして示している)にリセット信号RSTを発出するようにしている。しかしながら、検出時間Tpの設定はこれに限られるものではなく、設計条件等に応じて4096周期より多くしても少なくしてもよい。ただし、検出時間Tpは、少なくともUART IFの1フレームの時間よりも長くし、通常のデータ信号と区別が可能なようにしておく必要がある。   In the present embodiment, in the received data signal RD, the reset signal RST is issued when L for 4096 periods of the clock signal CLKi is continued (indicated as the detection time Tp in FIG. 4). ing. However, the setting of the detection time Tp is not limited to this, and may be more or less than 4096 periods depending on design conditions and the like. However, the detection time Tp must be at least longer than the time of one frame of the UART IF so that it can be distinguished from a normal data signal.

例えば、一例としてクロック信号CLKiの周波数を時計などと同じ32768Hzとした場合、検出時間Tpは125ms(millisecond:ミリ秒)以上とする必要がある(4096/32768=125ms)。ちなみに、検出時間Tpを1フレーム分とすると1フレームが125msとなり、1フレームが図2に示すように12ビットであるとすると、UART IFにおけるボーレートは96(=12/0.125)bps(bit per second)となる。   For example, when the frequency of the clock signal CLKi is set to 32768 Hz, which is the same as that of a clock or the like, for example, the detection time Tp needs to be 125 ms (millisecond) or more (4096/32768 = 125 ms). Incidentally, if the detection time Tp is one frame, one frame is 125 ms, and if one frame is 12 bits as shown in FIG. 2, the baud rate in the UART IF is 96 (= 12 / 0.125) bps (bit per second).

以上詳述したように、本実施の形態に係るデバッグシステム1では、オンチップエミュレータ100が所定の事象(例えば、MCU10の認識ができなくなる事象等)を検出し、リセット(初期化)が必要と判断した場合には、通信装置102によりUART IFの送信データ信号SDを強制的にLに固定してリセット指示信号を発出することにより、通信装置12がどのような状況下にあっても、MCU10をリセット(初期化)させることが可能となる。なお、本実施の形態でいう初期化にはボーレートの設定も含まれる。   As described above in detail, in the debug system 1 according to the present embodiment, the on-chip emulator 100 detects a predetermined event (for example, an event in which the MCU 10 cannot be recognized) and needs to be reset (initialized). If the determination is made, the communication device 102 forcibly fixes the transmission data signal SD of the UART IF to L and issues a reset instruction signal, so that the MCU 10 Can be reset (initialized). The initialization referred to in the present embodiment includes setting of the baud rate.

以下、オンチップエミュレータ100からUART IFを介して送信されるリセット指示信号と、MCU10における処理との関係について補足する。まず、MCU10が受信待ち状態の場合、オンチップエミュレータ100からL固定のリセット指示信号を受け取ると、MCU10は受信データ信号RDの到来と認識するが、Hのストップビット(図2参照)が受信されないのでフレーミングエラーとして処理する。従って、リセット指示信号がデータ信号と誤認されることはない。   Hereinafter, the relationship between the reset instruction signal transmitted from the on-chip emulator 100 via the UART IF and the processing in the MCU 10 will be supplemented. First, when the MCU 10 is in a reception waiting state, when receiving an L-fixed reset instruction signal from the on-chip emulator 100, the MCU 10 recognizes that the reception data signal RD has arrived, but does not receive the H stop bit (see FIG. 2). So treat it as a framing error. Therefore, the reset instruction signal is not mistaken for a data signal.

一方、MCU10が送信状態となっている場合においてリセット指示信号を受け取った場合、送信データがLであれば問題ないが、送信データがHの場合リセット指示信号のLと衝突する。この場合の対策として図5(a)に示すように、RXD/TXD端子をプルアップ抵抗Ruで高電位側(本実施の形態ではVDD側)にプルアップしておくことが考えられる。プルアップによるHは駆動能力が比較的低いのでオンチップエミュレータ100からのL入力が勝り、リセット指示信号の受信に支障はない。   On the other hand, when the reset instruction signal is received when the MCU 10 is in the transmission state, there is no problem if the transmission data is L, but when the transmission data is H, it collides with the reset instruction signal L. As a countermeasure in this case, as shown in FIG. 5A, it is conceivable that the RXD / TXD terminal is pulled up to a high potential side (VDD side in the present embodiment) by a pull-up resistor Ru. Since the driving capability of H by pull-up is relatively low, the L input from the on-chip emulator 100 is superior, and there is no problem in receiving the reset instruction signal.

MCU10のRXD/TXD端子の処理としては上記プルアップに限られず、図5(b)に示すように、プルダウン抵抗Rdで低電位側(本実施の形態ではVSS側)にプルダウンする処理としてもよい。この場合、RXD/TXD端子をプルダウン処理することで、オンチップエミュレータ100とMCU10との接続が外れたこと(断線したこと)を検出することも可能となる。すなわち、UART IFにおける通信がアイドル状態では、MCU10は常時Hを受信しているが、オンチップエミュレータ100とMCU10との間の通信線が断線するとRXD/TXD端子がLに張り付き、検出時間Tpの経過の後MCU10は強制的にリセット(初期化)される。この意図しないリセットによって、オンチップエミュレータ100は通信線における断線の可能性を認識することができる。   The processing of the RXD / TXD terminal of the MCU 10 is not limited to the above pull-up, and as shown in FIG. 5 (b), the pull-down resistance Rd may be used to pull down to the low potential side (VSS side in this embodiment). . In this case, it is possible to detect that the connection between the on-chip emulator 100 and the MCU 10 has been disconnected (disconnected) by performing pull-down processing on the RXD / TXD terminal. That is, when communication in the UART IF is in an idle state, the MCU 10 always receives H, but if the communication line between the on-chip emulator 100 and the MCU 10 is disconnected, the RXD / TXD terminal sticks to L, and the detection time Tp After the elapse, the MCU 10 is forcibly reset (initialized). By this unintended reset, the on-chip emulator 100 can recognize the possibility of disconnection in the communication line.

[第2の実施の形態]
図6および図7を参照して、本実施の形態に係る監視回路20aについて説明する。図6は監視回路20aを示す回路図であり、図7は監視回路20aの各節点の動作波形を示すタイミングチャートである。監視回路20aは、上記の監視回路20において外乱(ノイズ)に対する耐性を向上させるために、フリップフロップ38およびAND回路40を含むノイズキャンセラ(外乱キャンセル回路)を追加したものである。従って、監視回路20と同様の構成には同じ符号を付し、詳細な説明を省略する。
[Second Embodiment]
The monitoring circuit 20a according to the present embodiment will be described with reference to FIGS. FIG. 6 is a circuit diagram showing the monitoring circuit 20a, and FIG. 7 is a timing chart showing operation waveforms at each node of the monitoring circuit 20a. The monitoring circuit 20a is obtained by adding a noise canceller (disturbance canceling circuit) including a flip-flop 38 and an AND circuit 40 in order to improve resistance to disturbance (noise) in the monitoring circuit 20 described above. Accordingly, the same components as those of the monitoring circuit 20 are denoted by the same reference numerals, and detailed description thereof is omitted.

図6に示すように、追加されたフリップフロップ38のD入力には受信データ信号RDが入力され、クロック入力にはインバータ42を介してクロック信号CLKiが入力される。従って、フリップフロップ38はクロック信号CLKiの立下りで動作する。また、フリップフロップ38のQ出力は、追加されたAND回路40に入力される。追加されたAND回路40は上記Q出力と受信データ信号RDの論理積をとり、その結果をOR回路32および34に入力する。換言すれば、図3に示す監視回路20では、受信データ信号RDが直接OR回路32、34に入力されるのに対し、監視回路20aでは、フリップフロップ38およびAND回路40で処理された受信データ信号RDがOR回路32、34に入力される。   As shown in FIG. 6, the received data signal RD is input to the D input of the added flip-flop 38, and the clock signal CLKi is input to the clock input via the inverter 42. Therefore, the flip-flop 38 operates at the falling edge of the clock signal CLKi. Further, the Q output of the flip-flop 38 is input to the added AND circuit 40. The added AND circuit 40 takes the logical product of the Q output and the received data signal RD and inputs the result to the OR circuits 32 and 34. In other words, in the monitoring circuit 20 shown in FIG. 3, the reception data signal RD is directly input to the OR circuits 32 and 34, whereas in the monitoring circuit 20a, the reception data processed by the flip-flop 38 and the AND circuit 40 is displayed. The signal RD is input to the OR circuits 32 and 34.

次に、図7を参照して監視回路20aの動作について、より詳細に説明する。まず、図7(a)を参照して、外乱に対する対策を備えていない監視回路20の動作について説明する。図7(a)に示す例では、時刻t8において受信データ信号RDがHからLに遷移したことにより、カウンタ22がカウントを開始する。しかしながら、サンプリングのタイミングである時刻t10で外乱N(ヒゲ)が発生し、受信データ信号RDが瞬間的にHに戻ったためにカウンタ22がリセットされ、再びLになることにより0からカウントを再開している。その後時刻t11でカウント値が設定値OFrefに達し、カウント終了信号CEが発生している。以降の動作は図4と同様である。すなわち、外乱に対する対策が施されていない場合には、時刻t8からt10の間のカウンタ22によるカウントが無駄になり、リセット信号RSTの発出までに余計な時間がかかることになる。   Next, the operation of the monitoring circuit 20a will be described in more detail with reference to FIG. First, with reference to FIG. 7A, the operation of the monitoring circuit 20 that does not have a measure against disturbance will be described. In the example shown in FIG. 7A, the counter 22 starts counting when the reception data signal RD transitions from H to L at time t8. However, a disturbance N (beard) occurs at time t10, which is the sampling timing, and the counter 22 is reset because the reception data signal RD has instantaneously returned to H, and the count is restarted from 0 when it becomes L again. ing. Thereafter, at time t11, the count value reaches the set value OFref, and the count end signal CE is generated. Subsequent operations are the same as those in FIG. That is, when no countermeasure is taken against disturbance, the counting by the counter 22 between times t8 and t10 is wasted, and extra time is required until the reset signal RST is issued.

それに対し、フリップフロップ38、AND回路40による外乱キャンセル回路(ノイズキャンセラ)を含む本実施の形態に係る監視回路20aでは、外乱Nの影響を抑制することができる。すなわち、フリップフロップ38は、時刻t9におけるクロック信号CLKiの立下り時に受信データ信号RDを取り込む。次の半サイクル後の時刻t10におけるクロック信号CLKiの立ち上がり時に、AND回路40によってフリップフロップ38のQ出力と受信データ信号RDとの論理積が演算される。このような動作により、AND回路40の入力がどちらもHの場合にかぎりAND回路40の出力がHになり、カウンタ22がクリアされる。つまり、図6に示す例では、時刻t9で受信データ信号RDのLが取り込まれるので、時刻t10で受信データ信号RDとの論理積をとるとAND回路40はLを出力し、その結果カウンタ22はクリアされない。   On the other hand, the influence of the disturbance N can be suppressed in the monitoring circuit 20a according to the present embodiment including the disturbance cancel circuit (noise canceller) including the flip-flop 38 and the AND circuit 40. That is, the flip-flop 38 takes in the received data signal RD when the clock signal CLKi falls at time t9. When the clock signal CLKi rises at time t10 after the next half cycle, the AND circuit 40 calculates the logical product of the Q output of the flip-flop 38 and the received data signal RD. With this operation, the output of the AND circuit 40 becomes H only when both inputs of the AND circuit 40 are H, and the counter 22 is cleared. That is, in the example shown in FIG. 6, L of the received data signal RD is taken in at time t9. Therefore, when the logical product with the received data signal RD is obtained at time t10, the AND circuit 40 outputs L, and as a result the counter 22 Is not cleared.

なお、本実施の形態では、リセットが有効になるまでの間のノイズ対策を例示して説明したが、同様の対策回路を用いることによりリセットが有効となった後、ノイズによりリセットが解除されるのを抑止するようなノイズ対策にも適用可能である。   In this embodiment, the noise countermeasure until the reset becomes effective has been described as an example. However, after the reset becomes effective by using a similar countermeasure circuit, the reset is canceled by noise. It can also be applied to noise countermeasures that suppress this.

また、上記各実施の形態では各種信号の極性(例えば、リセット信号RSTはアクティブL等)を指定して説明しているが、これらの極性はあくまで一例であり逆の極性としてもよい。   In the above embodiments, the polarities of various signals (for example, the reset signal RST is active L) are described. However, these polarities are merely examples and may be reversed.

1、2 デバッグシステム
10 MCU
12 通信装置
14 クロック源
16 CPU
20、20a 監視回路
22 カウンタ
24 フリップフロップ
26 比較器
28 AND回路
30 インバータ
32、34、36 OR回路
38 フリップフロップ
40 AND回路
42 インバータ
50 MCU
52 通信装置
54 CPU
100 オンチップエミュレータ
102 通信装置
104 クロック源
106 CPU
CLKe、CLKi クロック信号
CN1、CN2、CN3、CN4 コネクタ
RD 受信データ信号
Ru プルアップ抵抗
Rd プルダウン抵抗
1, 2 Debug system 10 MCU
12 Communication device 14 Clock source 16 CPU
20, 20a Monitoring circuit 22 Counter 24 Flip-flop 26 Comparator 28 AND circuit 30 Inverter 32, 34, 36 OR circuit 38 Flip-flop 40 AND circuit 42 Inverter 50 MCU
52 Communication Device 54 CPU
100 On-chip emulator 102 Communication device 104 Clock source 106 CPU
CLKe, CLKi Clock signal CN1, CN2, CN3, CN4 Connector RD Receive data signal Ru Pull-up resistor Rd Pull-down resistor

Claims (12)

通信データを送信する送信モードと通信データを受信する受信モードとが切り換え可能とされた通信インタフェース部を含む通信装置であって、
前記受信モードにおいて受信する前記通信データを監視し受信する前記通信データにおいて予め定められた条件が充足された場合に自身を初期化する初期化信号を発出する監視部を含む通信装置。
A communication device including a communication interface unit capable of switching between a transmission mode for transmitting communication data and a reception mode for receiving communication data,
A communication apparatus including a monitoring unit that monitors the communication data received in the reception mode and issues an initialization signal that initializes itself when a predetermined condition is satisfied in the received communication data.
前記予め定められた条件が前記通信インタフェース部で受信される前記通信データにおいて予め定められた極性の通信データが予め定められた期間連続したことである
請求項1に記載の通信装置。
The communication apparatus according to claim 1, wherein the predetermined condition is that communication data having a predetermined polarity is continuous for a predetermined period in the communication data received by the communication interface unit.
第1の周波数の第1のクロック信号を発生する第1のクロック源をさらに含み、
前記監視部は、前記受信モードにおいて前記第1のクロック信号に基づき前記予め定められた極性の前記通信データの個数を計数するカウンタ、および計数された前記予め定められた極性の前記通信データの個数と予め定められた設定値とを比較する比較器を備え、計数された前記予め定められた極性の前記通信データの個数が前記予め定められた設定値を越えた場合に前記初期化信号を発出する
請求項2に記載の通信装置。
A first clock source for generating a first clock signal of a first frequency;
The monitoring unit includes a counter for counting the number of the communication data having the predetermined polarity based on the first clock signal in the reception mode, and the number of the communication data having the predetermined polarity counted. And a comparator that compares the predetermined set value with each other, and issues the initialization signal when the counted number of the communication data of the predetermined polarity exceeds the predetermined set value. The communication device according to claim 2.
前記監視部は、前記カウンタで前記予め定められた極性の前記通信データの個数を計数している途中で前記予め定められた極性と逆の極性の前記通信データを受信した場合に前記カウンタをクリアする
請求項3に記載の通信装置。
The monitoring unit clears the counter when receiving the communication data having a polarity opposite to the predetermined polarity while counting the number of the communication data having the predetermined polarity by the counter. The communication device according to claim 3.
前記監視部は、前記カウンタで前記予め定められた極性の前記通信データの個数を計数している途中で前記予め定められた極性と逆の極性の前記通信データとは無関係の外乱が入力された場合に前記カウンタによる前記クリアの動作を停止させる外乱キャンセル回路を備える
請求項4に記載の通信装置。
The monitoring unit receives a disturbance unrelated to the communication data having a polarity opposite to the predetermined polarity while the counter is counting the number of the communication data having the predetermined polarity. The communication apparatus according to claim 4, further comprising a disturbance cancel circuit that stops the clearing operation by the counter.
前記通信装置の通信方式が調歩同期式通信であり、
前記予め定められた条件が前記通信インタフェース部で受信される前記通信データにおいて予め定められた極性の通信データが予め定められた期間連続したことである
請求項1〜請求項5のいずれか1項に記載の通信装置。
The communication method of the communication device is asynchronous communication,
The predetermined condition is that the communication data having a predetermined polarity in the communication data received by the communication interface unit is continuous for a predetermined period. The communication apparatus as described in.
前記予め定められた期間が前記調歩同期式通信で用いるフレームの1単位に相当する期間より長い
請求項6に記載の通信装置。
The communication apparatus according to claim 6, wherein the predetermined period is longer than a period corresponding to one unit of a frame used in the asynchronous communication.
前記調歩同期式通信で用いる、第2の周波数の第2のクロック信号を発生する第2のクロック源をさらに含む
請求項6または請求項7に記載の通信装置。
The communication apparatus according to claim 6, further comprising a second clock source that generates a second clock signal having a second frequency used in the asynchronous communication.
前記予め定められた極性が負極性であり、
前記通信インタフェース部にはプルダウン処理がなされており、
監視部は、前記通信インタフェース部から前記通信装置と対向する対向通信装置に接続される通信線に断線が発生した場合にも前記初期化信号を発出する
請求項1〜請求項8のいずれか1項に記載の通信装置。
The predetermined polarity is negative polarity;
The communication interface unit has been subjected to pull-down processing,
The monitoring unit issues the initialization signal even when a disconnection occurs in a communication line connected from the communication interface unit to an opposite communication device facing the communication device. The communication device according to item.
請求項1〜請求項9のいずれか1項に記載の通信装置と、
他の機器と接続するための機器接続インタフェース部と、
接続される前記他の機器を制御する制御部と、
を含む半導体装置。
The communication device according to any one of claims 1 to 9,
A device connection interface for connecting to other devices;
A control unit for controlling the other device to be connected;
A semiconductor device including:
請求項10に記載の半導体装置、および通信線を介して前記通信インタフェース部に接続された対向通信装置を備えた対向装置を含む通信システムであって、
前記対向装置は、前記通信システムにおいて予め定められた事象を検出した場合に前記対向通信装置から前記通信線を介し前記予め定められた条件の通信データを前記通信装置に送信する
通信システム。
A communication system including the semiconductor device according to claim 10 and a counter device including a counter communication device connected to the communication interface unit via a communication line,
The said opposing apparatus transmits the communication data of the said predetermined condition to the said communication apparatus via the said communication line from the said opposing communication apparatus, when a predetermined event is detected in the said communication system.
通信線を介し対向する対向装置に通信データを送信する送信モード、および前記対向装置からの通信データを受信する受信モードが切り換え可能とされた通信インタフェース部を含む通信装置であって、前記受信モードにおいて前記対向装置から受信する前記通信データを監視し受信する前記通信データにおいて予め定められた条件が充足された場合に初期化信号を発出する監視部を含む通信装置を用いた初期化方法であって、
前記対向装置が予め定められた事象を検出した場合に、前記対向装置が前記通信線を介して予め定められた極性の通信データを前記通信装置に送信し、
前記通信装置が前記予め定められた極性の通信データを予め定められた期間連続して受信した場合に、前記通信装置が前記初期化信号により自身を初期化するとともに前記初期化信号を前記対向装置に向け送信する
初期化方法。
A communication device including a communication interface unit capable of switching between a transmission mode for transmitting communication data to an opposite device via a communication line and a reception mode for receiving communication data from the opposite device, wherein the reception mode In the initialization method using the communication device including a monitoring unit that monitors the communication data received from the opposite device and issues an initialization signal when a predetermined condition is satisfied in the received communication data. And
When the opposite device detects a predetermined event, the opposite device transmits communication data of a predetermined polarity to the communication device via the communication line,
When the communication device continuously receives the communication data of the predetermined polarity for a predetermined period, the communication device initializes itself with the initialization signal and sends the initialization signal to the counter device. Send to the initialization method.
JP2016160682A 2016-08-18 2016-08-18 Semiconductor devices, communication systems and initialization methods Active JP6927678B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016160682A JP6927678B2 (en) 2016-08-18 2016-08-18 Semiconductor devices, communication systems and initialization methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016160682A JP6927678B2 (en) 2016-08-18 2016-08-18 Semiconductor devices, communication systems and initialization methods

Publications (2)

Publication Number Publication Date
JP2018029285A true JP2018029285A (en) 2018-02-22
JP6927678B2 JP6927678B2 (en) 2021-09-01

Family

ID=61247885

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016160682A Active JP6927678B2 (en) 2016-08-18 2016-08-18 Semiconductor devices, communication systems and initialization methods

Country Status (1)

Country Link
JP (1) JP6927678B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021245975A1 (en) * 2020-06-01 2021-12-09 日立Astemo株式会社 Semiconductor device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06338919A (en) * 1993-05-27 1994-12-06 Fuji Electric Co Ltd Information processor
JP2001092686A (en) * 1999-09-22 2001-04-06 Hitachi Ltd Semiconductor device
JP2002357601A (en) * 1997-12-04 2002-12-13 Roche Diagnostics Corp Instrument
JP2006172173A (en) * 2004-12-16 2006-06-29 Canon Inc Serial communication device, data communication device, copying machine and multifunction machine
JP2011159126A (en) * 2010-02-01 2011-08-18 Renesas Electronics Corp Integrated circuit device and method for controlling the same, and debug system and method for controlling the same
JP2013206149A (en) * 2012-03-28 2013-10-07 Renesas Electronics Corp Semiconductor integrated circuit device and system using the same
JP2016133877A (en) * 2015-01-16 2016-07-25 ファナック株式会社 Numerical control system with internal-register self-reset function by serial communication signal monitoring

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06338919A (en) * 1993-05-27 1994-12-06 Fuji Electric Co Ltd Information processor
JP2002357601A (en) * 1997-12-04 2002-12-13 Roche Diagnostics Corp Instrument
JP2001092686A (en) * 1999-09-22 2001-04-06 Hitachi Ltd Semiconductor device
JP2006172173A (en) * 2004-12-16 2006-06-29 Canon Inc Serial communication device, data communication device, copying machine and multifunction machine
JP2011159126A (en) * 2010-02-01 2011-08-18 Renesas Electronics Corp Integrated circuit device and method for controlling the same, and debug system and method for controlling the same
JP2013206149A (en) * 2012-03-28 2013-10-07 Renesas Electronics Corp Semiconductor integrated circuit device and system using the same
JP2016133877A (en) * 2015-01-16 2016-07-25 ファナック株式会社 Numerical control system with internal-register self-reset function by serial communication signal monitoring

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021245975A1 (en) * 2020-06-01 2021-12-09 日立Astemo株式会社 Semiconductor device
JP7394220B2 (en) 2020-06-01 2023-12-07 日立Astemo株式会社 semiconductor equipment

Also Published As

Publication number Publication date
JP6927678B2 (en) 2021-09-01

Similar Documents

Publication Publication Date Title
EP3324269B1 (en) Single-chip microcomputer system, and reset method for single-chip microcomputer system
CN110908841B (en) I2C communication abnormity recovery method and device
JP6538715B2 (en) Hybrid virtual GPIO
JP2007164765A (en) Iic bus communication system, slave device, and iic bus communication control method
KR20030075202A (en) Data processing system having an on-chip background debug system and method therefor
JP2016004388A (en) Communication system and electronic circuit
US11809348B2 (en) Digital bus activity monitor
JP6696511B2 (en) Communication device, communication method, program, and communication system
EP1619573B1 (en) Reset circuit and digital communication device
JP6927678B2 (en) Semiconductor devices, communication systems and initialization methods
CN111045505A (en) Time delay reset device and method of system on chip
US7549009B2 (en) High-speed PCI interface system and a reset method thereof
JP2018514873A (en) Communication between integrated circuits
CN110750374A (en) Watchdog circuit and control method thereof
US10055193B2 (en) Data transfer between clock domains
JP2013197789A (en) Electronic apparatus and power control method therefor
JP2009265739A (en) Data transmission/reception circuit
US20050169318A1 (en) Microcomputer that does not cause destruction of peripherals
WO2014203501A1 (en) Electronic control device
TWM598968U (en) Out-of-band external control equipment and system
TWI605338B (en) Monitoring and management system and method using the same
JP6906369B2 (en) Computer systems, their control methods, and programs
TWI390398B (en) Method and system for monitoring and processing running status of a computer
JP2017162407A (en) Semiconductor device
JP6100551B2 (en) Electronics

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190614

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200305

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200428

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200625

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201201

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210129

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: 20210713

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210805

R150 Certificate of patent or registration of utility model

Ref document number: 6927678

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150