JP4012832B2 - Receiver circuit having serial communication function - Google Patents

Receiver circuit having serial communication function Download PDF

Info

Publication number
JP4012832B2
JP4012832B2 JP2003028400A JP2003028400A JP4012832B2 JP 4012832 B2 JP4012832 B2 JP 4012832B2 JP 2003028400 A JP2003028400 A JP 2003028400A JP 2003028400 A JP2003028400 A JP 2003028400A JP 4012832 B2 JP4012832 B2 JP 4012832B2
Authority
JP
Japan
Prior art keywords
output
circuit
signal
data
frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2003028400A
Other languages
Japanese (ja)
Other versions
JP2004240653A (en
Inventor
浩史 勝永
弘 宮城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyota Industries Corp
NSC Co Ltd
Original Assignee
Toyota Industries Corp
Nigata Semitsu 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 Toyota Industries Corp, Nigata Semitsu Co Ltd filed Critical Toyota Industries Corp
Priority to JP2003028400A priority Critical patent/JP4012832B2/en
Publication of JP2004240653A publication Critical patent/JP2004240653A/en
Application granted granted Critical
Publication of JP4012832B2 publication Critical patent/JP4012832B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、シリアル通信機能を有する受信回路に関する。
【0002】
【従来の技術】
調歩同期式のシリアルデータの伝送では、受信側でシリアルデータの転送速度に応じた周波数のクロック信号を生成する必要がある。
受信側のクロック信号の周波数を決める分周回路の分周値は、データの転送途中で転送速度が変化した場合でも変化しないので、シリアルデータのサンプリングタイミングがずれてデータを正確に取り込むことができなくなることがある。
【0003】
そのような問題を解決するために、例えば、特開2001−168853号公報の発明では、スタートビットのビット幅を測定することでシリアルデータの転送速度を認識し、認識したデータ転送速度に応じた分周値で受信クロックを分周する。そして、分周により得られたクロック信号のp個ごとにデータをサンプリングすることでデータを正確に取り込めるようにしている。
【0004】
【特許文献1】
特開2001ー168853号公報(要約書「解決手段」)
【0005】
【発明が解決しようとする課題】
ところで、通信用ICなどから送信されてくるシリアルデータをCPUが受信する場合に、CPUの処理速度が遅いと、シリアルデータの受信タイミングを合わせるために処理時間がとられ、他の処理が実行できなくなる。そのため、処理速度の速いCPUを使用する必要があるが、処理速度の速いCPUはコストが高いという問題点があった。また、通信用IC側からCPUにシリアルデータを送信するためには、CPUがデータを受け取ることができるか否かを検出する回路が必要となりその分回路が複雑になる。
【0006】
本発明の課題は、プロセッサの処理速度に応じて受信回路から信号を取り込めるようにすることである。また、他の課題は、受信回路の出力ポートの数を少なくすることである。
【0007】
【課題を解決するための手段】
本発明の調歩同期式シリアル通信機能を有する受信回路は、受信電界強度が所定値以上か否かを判定する受信電界強度判定回路と、中間周波信号の周波数が基準周波数より高いか、低いかを判定する中間周波判定回路と、外部のプロセッサから出力されるシリアルデータを受信してパラレルデータに変換する変換回路と、前記変換回路において変換されたパラレルデータを保持するデータ保持回路と、前記データ保持回路に保持された前記パラレルデータをデコードし、デコード結果が、前記受信電界強度判定回路の判定結果の出力を要求するデータであったときには、前記受信電界強度判定回路の判定結果の1ビットの信号を選択して、前記プロセッサに要求されたタイミングで1つの出力ポートから外部に出力させ、前記デコード結果が、前記中間周波判定回路の判定結果の出力を要求するデータであったときには、前記中間周波判定回路の判定結果の1ビットの信号を選択して、前記出力ポートから外部に出力させるデータ出力回路とを備える。
【0008】
この発明によれば、受信回路の出力ポートから出力させる信号を複数の信号の中から任意に指定し、また信号を出力させるタイミングをプロセッサが決めることができるので、プロセッサの処理速度に応じて所望の信号を取り込むことができる。これにより、データを受信するための処理負担が軽減されるので、例えば、処理速度の比較的遅いプロセッサを使用することができる。また、1つの出力ポートから複数の信号の内の任意の信号を指定して出力させることができるので、受信回路の出力ポートの数を減らすことができる。これは、受信回路を半導体集積回路上に形成する場合に効果が大きい。
【0009】
また、受信回路からプロセッサへのデータの送信は出力ポートを利用して行われるので、プロセッサがデータを受信可能な状態か否かを検出するための受信回路側の回路が不要となる。
上記の発明において、前記データ出力回路は、前記プロセッサから出力されたシリアルデータを変換して得られたパラレルデータが、受信電界強度が所定値以上か否か、前記中間周波信号の周波数が所定の周波数と一致するか否か、所定の周波数より高いか、低いかの判定結果の出力を要求するデータのいずれであるかにより、前記判定結果の内の1つを選択して前記出力ポートから前記プロセッサに出力させるようにしても良い。
【0010】
このように構成することで、プロセッサは、受信電界強度が所定値以上か否か、中間周波信号の周波数が所定の周波数と一致するか否か、所定の周波数より高いか、低いかの判定結果の出力を要求するシリアルデータを出力し、そのシリアルデータに対応して半導体集積回路の出力ポートから出力される信号を読み取ることで、それらの判定結果を取得することができる。これにより、プロセッサがデータを受信するための処理負担が軽減されるので、処理速度の遅いプロセッサを使用できる。
【0011】
上記の発明の受信回路において、ステレオ受信、モノラル受信の何れであるか判定するステレオ判定回路を有し、前記データ出力回路は、前記デコード結果が、前記ステレオ判定回路の判定結果、前記電界強度判定回路の判定結果、前記中間周波判定回路の判定結果の内の何れの判定結果の出力を要求するデータであるかにより、該当する判定結果の1ビットの信号を選択して前記出力ポートから外部に出力させる。
【0012】
前記複数の判定回路は、受信電界強度が所定値以上か否かを判定する受信電界強度判定回路と、中間周波信号の周波数が所定の周波数より高いか低いかを判定する中間周波判定回路からなり、前記データ出力回路は、前記パラレルデータが前記受信電界強度判定回路の判定結果の出力を要求するデータであったときには、前記受信電界強度判定回路から出力される1ビットのデータを前記出力ポートから前記プロセッサに出力させ、前記パラレルデータが前記中間周波判定回路の判定結果の出力を要求するデータであったときには、前記中間周波判定回路から出力される1ビットのデータを前記出力ポートから前記プロセッサに出力させる。
【0013】
上記のように構成することで、プロセッサは、受信回路の出力ポートから出力される1ビットのデータを読み込むことで判定回路の判定結果を取得できる。これにより処理速度の遅いプロセッサを使用することができる。
前記複数の判定回路は、受信電界強度が所定値以上か否かを判定する受信電界強度判定回路と、受信信号と局部発振信号とを混合して得られる中間周波信号の周波数が所定の周波数と一致するか否か、所定の周波数より高いか否か、所定の周波数より低いか否かを判定する中間周波判定回路とからなり、前記データ出力回路は、前記データ保持回路に保持されたパラレルデータをデコードするデコーダと、該デコーダのデコード結果に基づいて、前記受信電界強度判定回路及び前記中間周波判定回路から出力される複数の信号の内の1つの信号を選択して前記出力ポートから前記プロセッサに出力させるセレクタとからなる。
【0014】
例えば、プロセッサが受信電界強度判定回路の判定結果を知りたい場合には、受信電界強度の判定結果の出力を要求するシリアルデータを出力する。データ出力回路は、変換されたパラレルデータをデコードし、デコード結果に基づいて受信電界強度判定回路から出力される判定結果の信号を選択し、その信号を出力ポートからプロセッサに出力させる。
【0015】
また、プロセッサが中間周波信号の周波数が所定の周波数と一致するか否か知りたい場合には、その判定結果の出力を要求するシリアルデータを出力する。データ出力回路は、パラレルデータをデコードし、デコード結果に基づいて、中間周波判定回路から出力される中間周波信号の周波数が所定の周波数と一致するか否かを示す信号を選択し、その信号を出力ポートからプロセッサに出力させる。
【0016】
上記のように構成することで、プロセッサは、出力ポートから出力されるデータを読み込むだけで、受信電界強度の判定結果と中間周波判定回路の判定結果を取得できるのでデータを受信するための処理負担が軽減される。これにより、処理速度の遅いプロセッサを使用できる。
【0017】
中間周波判定回路から出力される複数の信号は、中間周波信号が所定の周波数と一致するか否かを示す信号と、所定の周波数より高いか、低いかを示す信号とからなる。
あるいは、中間周波判定回路から出力される複数の信号は、中間周波信号が所定の周波数と一致するか否かを示す信号と、所定の周波数より高いか否かを示す信号と、所定の周波数より低いか否かを示す信号とからなる。
【0018】
前記受信回路は、MOSプロセスにより半導体回路基板上に形成しても良い。このように構成することで、複数の回路の出力信号を同一の出力ピンから出力させることができるので、半導体回路基板のように出力ピンの数に制限がある場合にピン数を少なくできる。
【0019】
なお、変換回路は、図1の変換回路15に対応し、データ保持回路は、図1のラッチ回路21に対応し、判定回路は、図1の受信電界強度判定回路23、中間周波判定回路24及びステレオ判定回路25に対応し、データ出力回路は、図1のデコーダ・セレクタ22に対応し、プロセッサは、図1のCPU12に対応する。
【0020】
【発明の実施の形態】
以下、本発明の実施の形態を説明する。図1は、本発明の実施の形態のFM・AM受信機の受信回路11の要部を示す図である。
受信回路11は、CPU12と、FM・AM受信回路及びシリアル通信回路を有する半導体集積回路13とで構成されている。半導体集積回路13は、CMOSプロセスにより製造され、内部のFM・AM受信回路、シリアル通信回路等はMOSFETにより構成されている。
【0021】
図1において、CPU12から出力されるシリアルデータは、シリアルポート14から変換回路15に入力される。変換回路15は、例えば、10ビットのシフトレジスタと、タイミング制御回路等で構成されており、シリアルデータをクロック信号発生回路16から供給されるクロック信号CKに同期したタイミングで順次シフトさせ、8ビット分のデータを取り込んだなら8ビットのデータをパラレルデータとして出力する。
【0022】
この実施の形態では、CPU12から、スタートビットと、8ビットのシリアルデータと、ストップビットが出力される。最初にデータの出力先を指定するアドレスデータが8ビットのデータの内の4ビットのデータとして出力され、次に8ビットのデータが出力される。
【0023】
アドレスデコーダ17は、変換回路15から出力されるパラレルデータをデコードして、デコード結果がラッチ回路18〜21に割り当てられているアドレスと一致する場合には、該当するラッチ回路18〜21をイネーブルにするアドレス選択信号A0〜A3を出力する。
【0024】
ラッチ回路18〜20は、局部発振回路(図示せず)の基準周波数を設定するためのデータや放送局の周波数の設定データ等をラッチする回路であり、ラッチしたデータを該当する回路に出力する。
ラッチ回路21は、CP12から出力される8ビットのシリアルデータ、すなわち、受信電界強度判定回路23の判定信号,中間周波判定回路24の複数の判定信号またはステレオ判定回路25の判定信号の出力を要求する8ビットのデータをラッチし、8ビットの内の所定ビット数のデータをデコーダ・セレクタ22に出力する。
【0025】
受信電界強度判定回路23は、FMまたはAMの受信信号の電界強度が所定値以上か否かを判定する回路であり、判定結果の1,0の1ビットの判定信号をデコーダ・セレクタ22に出力する。
中間周波カウンタ27は、受信信号と局部発振信号とを混合させて得られる中間周波信号IFの周波数fiを測定するカウンタであり、カウント結果を中間周波判定回路24に出力する。
【0026】
中間周波判定回路24は、中間周波カウンタ27で測定された中間周波信号IFの周波数fiと所定の基準周波数f0とを比較し、両者の周波数が一致するか否か、中間周波信号IFの周波数fiが基準周波数f0より高いか否か、中間周波信号IFの周波数fiが基準周波数f0より低いか否かを判定する。
【0027】
中間周波判定回路24からは、中間周波信号IFの周波数fiが基準周波数f0と一致するか否かを示す1ビットの判定信号SDIF1(fi=f0)と、基準周波数f0より高いか否かを示す1ビットの判定信号SDIF2(fi>f0)と、基準周波数f0より低いか否かを示す1ビットの判定信号SDIF3(fi<f0)との3種類の信号がデコーダ・セレクタ22に出力される。なお、中間周波判定回路24から判定信号SDIF2,SDIF3の代わりに、中間周波信号IFの周波数fiが基準周波数f0より高いか、低いかを示す1ビットの信号を出力するようにしても良い。
【0028】
ステレオ判定回路25は、ステレオか、モノラルの受信の何れであるかを示す1ビットの判定信号STをデコーダ・セレクタ22に出力する。このステレオ判定回路25は、例えば、判定信号STとしてステレオ受信のときには「1」を、モノラル受信のときには「0」を出力する。
【0029】
デコーダ・セレクタ22は、ラッチ回路21から出力されるデータをデコードするデコーダと、そのデコーダのデコード結果に基づいて複数の判定信号の内の1つを選択して出力するセレクタとからなる。
デコーダ・セレクタ22のセレクタには、受信電界強度判定回路23から出力される判定信号SDS、中間周波判定回路24から出力される複数の判定信号SDIF1〜3及びステレオ判定回路25から出力される判定信号STが入力しており、内部のデコーダのデコード結果に基づいてそれら複数の判定信号の内の1つを選択して出力ポート26から外部のCPU12に出力させる。
図2(A)、(B)は、CPU12から出力されるシリアルデータの構成の一例を示す図である。
【0030】
図2(A)は、2バイトでアドレスとデータを送信する場合のデータ構成を示しており、最初に8ビットのアドレスを送信し、次に8ビットのデータを送信する。この場合、アドレスデータとして下位4ビットを使用している。そして、アドレスに続いて、出力ポート26に出力させる信号を指定するデータを送信するようになっている。
【0031】
図2(B)は、1バイトでアドレスとデータの両方を送信する場合のデータ構成を示しており、上位4ビットをアドレスに割り当て、下位4ビットをデータに割り当てている。
なお、CPU12が、アドレスデータにより出力ポート26から出力させる信号を指定するようにしても良い。その場合、特定のアドレスが出力されたとき、セレクタから第1の信号(例えば、信号SDS)を出力ポート26に出力させ、別のアドレスが出力されたとき、セレクタから第2の信号(例えば、ST)を出力ポート26に出力させるように構成すれば良い。
【0032】
次に、図3は、図1の送受信回路15及びアドレスデコーダ17等の詳細な回路図である。
10ビットのシフトレジスタからなるシリアル/パラレル変換回路41は、CPU12から出力される8ビットのシリアルデータをパラレルデータに変換し、アドレスラッチ回路51及びラッチ回路18〜21に出力する。
【0033】
10ビットカウンタ42は、クロック信号発生回路16から出力されるクロック信号をカウントして、10クロックをカウントしたならカウントアップ信号aをTフリップフロップ43に出力する。
Tフリップフロップ43は、10ビットカウンタ42のカウントアップ信号aによりQ出力が反転する回路である。このTフリップフロップ43のQ出力信号bは立ち上がり検出回路44と立ち下がり検出回路45に出力されている。
【0034】
立ち上がり検出回路44は、Tフリップフロップ43のQ出力信号bの立ち上がりを検出し、一定幅のハイレベルのラッチ信号cをアドレスラッチ回路51に出力する。
アドレスラッチ回路51は、ラッチ信号cがハイレベルとなったとき、シリアル/パラレル変換回路41から出力される8ビットのアドレスデータをラッチする。
【0035】
立ち下がり検出回路45は、Tフリップフロップ43のQ出力信号bの立ち下がりを検出し、一定幅のハイレベルの信号dをインバータ46及びアンドゲート53〜56に出力する。インバータ46の出力は、シフトレジスタ等で構成される遅延回路47に出力され一定の遅延が施された後、アンドゲート48及び49の一方の入力端子に出力される。アンドゲート48の他方の入力端子には、通常はハイレベルとなっているハードウェアリセット信号が入力している。そして、アンドゲート48の出力は10ビットカウンタ42のリセット端子に入力している。同様に、アンドゲート49の他方の入力端子にはハードウェアリセット信号が入力している。
【0036】
上記のインバータ46,遅延回路47、アンドゲート48及び49により、ハードウェアリセット信号がローレベルとなったとき、あるいは立ち下がり検出回路45によりTフリップフロップ43のQ出力信号bの立ち下がりが検出されてから一定の遅延時間が経過したとき、10ビットカウンタ42及びTフリップフロップ43がリセットされる。
【0037】
アドレスデコーダ52は、アドレスラッチ回路51にラッチされたアドレスデータをデコードし、ラッチ回路18〜21の中の該当するラッチ回路を指定する信号をアンドゲート53〜56に出力する。
アンドゲート53〜56は、アドレスデコーダ52からハイレベルの信号が出され、かつ立ち下がり検出回路45からハイレベルの検出信号dが出力されたとき、ラッチ回路18〜21の内の1つを選択する選択信号A0〜A3を出力する。
【0038】
上記のアドレスラッチ回路51,アドレスデコーダ52及びアンドゲート53〜56は、図1のアドレスデコーダ17に対応する。
次に、以上のような構成の受信回路11において、出力ポート26から出力する信号を切り換える場合の動作を、図4のタイミングチャートを参照して説明する。
【0039】
CPU12は、シリアル通信を開始すると、図4(1)に示すように一定期間ローレベルとなるスタートビットと、8ビットのシリアルデータと、一定期間ハイレベルとなるストップビットを出力する。
最初に出力ポート26から信号SDSを出力させる場合について説明する。CPU12は、データの送信開始を知らせるスタートビットを送信してから、ラッチ回路21を指定するアドレスデータを出力する。
【0040】
10ビットカウンタ42は、クロック信号発生回路16から出力されるクロック信号をカウントし、10クロックをカウントしたなら、図4(2)に示すタイミングでカウントアップ信号aを出力する。
図4(3)に示すように、カウントアップ信号aが出力される前の時点では、Tフリップフロップ43はリセットされ、Q出力信号bはローレベルとなっている。そして、CPU12からラッチ回路21を指定するアドレスデータが出力され、10ビットカウンタ42からカウントアップ信号aが出力されたときに、Q出力信号bがハイレベルに変化する。
【0041】
Tフリップフロップ43のQ出力信号bがローレベルからハイレベルに変化すると、立ち上がり検出回路44により信号bの立ち上がりが検出され、図4(4)に示すように立ち上がり検出回路44から一定幅のハイレベルの立ち上がり検出信号cが出力される。アドレスラッチ回路51は、立ち上がり検出信号cに同期したタイミングで、シリアル/パラレル変換回路41から出力されるアドレスデータ(ラッチ回路21を指定するアドレス)をラッチする。アドレスラッチ回路51にラッチされたアドレスは、アドレスデコーダ52によりデコーダされ、ラッチ回路21を選択するハイレベルの信号eが出力される(図4(6))。
【0042】
次に、CPU12から信号SDSを指定するデータAが出力されると、次のストップビットを受信したときに、10ビットカウンタ42からカウントアップ信号aが出力される。
10ビットカウンタ42からカウントアップ信号aが出力されると、図4(3)に示すように、Tフリップフロップ43のQ出力信号bがハイレベルからローベルに変化する。このQ出力信号bの変化が、立ち下がり検出回路45により検出され、図4(5)に示すように、立ち下がり検出回路45から一定幅のハイレベルの立ち下がり検出信号dが出力される。
【0043】
立ち下がり検出信号dがハイレベルとなると、このときアドレスデコーダ52からハイレベルの信号eが出力されているアンドゲート56が開き、アンドゲート56からラッチ回路21にハイレベルの選択信号f(A3)が出力される(図4(7))。
【0044】
ラッチ回路21は、アンドゲート56から選択信号fが出力されたとき、シリアル/パラレル変換回路41から出力される信号SDSを指定するデータAをラッチする。
デコーダ・セレクタ22は、ラッチ回路21にラッチされたデータAをデコードして、入力する複数の信号の中で指定された信号(この場合、信号SDS)を選択して出力ポート26へ出力する(図4(8))。これにより、出力ポート26からCPU12に信号SDSが出力される(図4(9))。
【0045】
次に、出力ポート26から信号SDを出力させる場合について説明する。CPU12から、ラッチ回路21を指定するアドレスが出力され、次に、信号STを指定するデータBが出力されると、次のストップビットを受信したときに、10ビットカウンタ42からカウントアップ信号aが出力される。
【0046】
カウントアップ信号aが出力されると、図4(3)に示すように、Tフリップフロップ43のQ出力信号bがハイレベルからローベルに変化する。このQ出力信号bの変化が、立ち下がり検出回路45により検出され、図4(5)に示すように、立ち下がり検出回路45から一定幅のハイレベルの立ち下がり検出信号dが出力される。
【0047】
立ち下がり検出信号dがハイレベルとなると、このときアドレスデコーダ52からハイレベルの信号eが出力されているアンドゲート56が開き、アンドゲート56からラッチ回路21にハイレベルの選択信号f(A3)が出力される(図4(7))。
【0048】
ラッチ回路21は、アンドゲート56から選択信号fが出力されたとき、シリアル/パラレル変換回路41から出力されている信号SDSを指定するデータBをラッチする。ラッチ回路21にラッチされたデータBは、デコーダ・セレクタ22によりデコードされ、デコーダ・セレクタ22に入力する複数の信号の中で指定された信号(この場合、信号ST)を選択して出力ポート26へ出力する(図4(8))。これにより出力ポート26からCPU12に信号STが出力される(図4(9))。
【0049】
この実施の形態によれば、CPU12から複数の信号(SDS、ST、SDIF1等)中の任意の信号を指定するデータを受信回路に出力することで、受信回路11の出力ポートから指定した信号を出力させることができる。これにより、例えば、1つの出力ポートを使用して複数の信号をCPU12が取り込むことができる。しかも、CPU12が信号(データ)を取り込むタイミングを、CPU12自身が決めることができるので、CPU12の処理速度に応じて信号を取り込むことができる。これにより、CPU12の処理速度が遅い場合でも、データを確実に受信できる。
【0050】
次に、図3は、受信可能な局を自動的に検出するときのシーク処理のフローチャートである。
CPU12は、ユーザにより自動選局ボタン等が操作されると、シークオン(seek on)を指示するシリアルデータをシリアルポート14へ出力して受信可能な局の検出を行わせる(図3,S11)。
【0051】
次に、シークレベルの判定結果、すなわち受信電界強度の判定結果の出力を要求するシリアルデータを出力する(S12)。このとき、ラッチ回路21をイネーブルにするアドレスデータを先に出力しておく。
次に、同調周波数fを周波数Δfだけ増加または減少させる(S13)。
【0052】
CPU12から受信電界強度の判定結果の出力を要求するシリアルデータが出力されると、変換回路15が、受信したシリアルデータをパラレルデータに変換し、ラッチ回路21がそのパラレルデータをラッチする。デコーダ・セレクタ22は、ラッチ回路21にラッチされたパラレルデータをデコードして、デコード結果が受信電界強度の判定結果の出力を要求するデータであったときには、受信電界強度判定回路23から出力される受信電界強度が所定値以上か否かを示す信号SDSを選択して出力ポート26に出力する。
【0053】
CPU12は、出力ポート26から出力される受信電界強度が所定値以上か否かを示す1ビットの信号SDSを読み込み、その信号SDSが「1」か否かを判別する(S14)。
SDS=0の場合には(S14,NO)、一定レベル以上の受信信号を受信していない場合であるので、ステップS13に戻り同調周波数を増加または減少させる。
【0054】
他方、SDS=1の場合(S14,YES)、すなわち、受信信号の電界強度が所定値以上のときには、ステップS15に進み中間周波判定回路24の判定結果の出力を要求するシリアルデータを出力する。
CPU12から中間周波判定回路24の判定結果の出力を要求するシリアルデータが出力されると、変換回路15は受信したシリアルデータをパラレルデータに変換し、ラッチ回路21がそのパラレルデータをラッチする。
【0055】
デコーダ・セレクタ22は、ラッチ回路21にラッチされたパラレルデータをデコードする。そして、そのデコード結果が基準周波数f0と一致するか否かの判定結果の出力を要求するデータであったときには、中間周波信号判定回路24から出力される中間周波信号IFの周波数fiが基準周波数f0と一致するか否かを示す1ビットの信号SDIF1を選択して出力ポート26に出力する。
【0056】
また、デコーダ・セレクタ22は、デコード結果が基準周波数f0より高いか否かの判定結果の出力を要求するデータであったときには、中間周波判定回路24から出力される中間周波信号IFの周波数fiが基準周波数f0より高いか否かを示す信号SDIF2を選択して出力ポート26に出力する。
【0057】
さらに、デコーダ・セレクタ22は、デコード結果が基準周波数f0より低いか否かの判定結果の出力を要求するデータであったときには、中間周波判定回路24から出力される中間周波信号IFの周波数fiが基準周波数f0より低いか否かを示す信号SDIF3を選択して出力ポート26に出力する。
【0058】
CPU12は、出力ポート26から出力される信号を読み込み、読み込んだ信号に基づいて中間周波信号IFの周波数fiが基準周波数f0と一致するか否か、すなわち基準周波数f0の一定の周波数範囲内に入るか否か、基準周波数f0より高いか否か、あるいは基準周波数f0より低いか否かを判別する(S16)。CPU12は、自分が直前に送信したシリアルデータが分かっているので、出力ポート26から出力された信号が3種類の信号SDIF1〜SDIF3の何れであるかを判断できる。
【0059】
中間周波信号IFの周波数fiが基準周波数f0より高い(fi>f0)、あるいは基準周波数f0より低い(fi<f0)ときには、受信した信号は放送局の信号ではないので、ステップS13に戻り、同調周波数fを所定周波数Δf分増加または減少させてシークを続ける。
【0060】
他方、中間周波信号IFの周波数fiが基準周波数f0と一致したときには、CPU12はシーク動作を停止させる(seek stop)シリアルデータを出力する(S17)。
半導体集積回路13のFM・AM受信回路は、シーク動作を停止するシリアルデータを受信すると、通常モードに切り換わる。このとき、デコーダ・セレクタ22は、シーク動作を停止するシリアルデータをデコードし、デコード結果に基づいてステレオ判定回路25から出力される信号、すなわちステレオ受信か、モノラル受信かの区別を示す信号STを選択して出力ポート26から出力する。
【0061】
上述した実施の形態は、CPU12が半導体集積回路13に対して判定結果の出力を要求し、半導体集積回路13が、その要求に対応して、受信電界強度判定回路23の判定信号と、中間周波判定回路24から出力される中間周波信号が基準周波数f0と一致するか否か、基準周波数f0より高いか否か、基準周波数f0より低いか否かを示す複数の判定信号と、ステレオ判定回路25から出力される判定信号の内の1つの信号を選択して出力ポート26から出力している。
【0062】
これにより、CPU12は、データを受信するときに、データの転送速度に対応したクロック信号に同期したタイミングでシリアルデータを取り込む必要がなくなり、半導体集積回路13の出力ポート26の1ビットのデータを読み込むだけで判定結果を取得できる。従って、データを受信するための処理負担が軽減され、処理速度の遅いCPU12を使用することができる。
【0063】
また、半導体集積回路からプロセッサへのデータの送信は出力ポートを利用して行われるので、プロセッサがデータを受信可能な状態か否かを検出するための半導体集積回路側の回路が不要となる。
本発明は、上述した実施の形態に限らず、以下のように構成することもできる。
(a)上述した実施の形態では、受信電界強度判定回路23、中間周波信号判定回路24及びステレオ判定回路25の3つの判定回路について述べているが、これらの判定回路に限らない。
(b)本発明は、FM・AM受信機用の半導体集積回路に限らず、プロセッサとの間でシリアル通信を行うものであれば、どのような半導体集積回路にも適用できる。
【0064】
【発明の効果】
本発明によれば、受信回路の出力ポートから出力させる信号を複数の信号の中から任意に指定することができ、また信号を出力させるタイミングをプロセッサが決めることができるので、プロセッサの処理速度に応じて所望の信号を取り込むことができる。また、1つの出力ポートから複数の信号の内の任意の信号を出力させることができるので、受信回路の出力ポートの数を減らすことができる。
【図面の簡単な説明】
【図1】実施の形態の受信回路の要部を示す図である。
【図2】同図(A)、(B)はデータ構成の一例を示す図である。
【図3】受信回路の要部の詳細な回路図である。
【図4】受信回路のタイミングチャートである。
【図5】CPU12のシーク処理のフローチャートである。
【符号の説明】
11 受信回路
12 CPU
13 半導体集積回路
15 変換回路
16 クロック信号発生回路
17 アドレスデコーダ
18〜21 ラッチ回路
22 デコーダ・セレクタ
23 受信電界強度判定回路
24 中間周波判定回路
25 ステレオ判定回路
26 出力ポート
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a receiving circuit having a serial communication function.
[0002]
[Prior art]
In asynchronous serial data transmission, it is necessary to generate a clock signal having a frequency corresponding to the serial data transfer speed on the receiving side.
The frequency divider value that determines the frequency of the clock signal on the receiving side does not change even when the transfer rate changes during data transfer, so the sampling timing of serial data is shifted and data can be captured accurately. It may disappear.
[0003]
In order to solve such a problem, for example, in the invention of Japanese Patent Application Laid-Open No. 2001-168853, the transfer rate of serial data is recognized by measuring the bit width of the start bit, and according to the recognized data transfer rate. Divide the receive clock by the division value. Then, data is sampled for every p clock signals obtained by frequency division so that the data can be taken in accurately.
[0004]
[Patent Document 1]
Japanese Patent Laid-Open No. 2001-168853 (Abstract “Solution”)
[0005]
[Problems to be solved by the invention]
By the way, when the CPU receives serial data transmitted from a communication IC or the like, if the CPU processing speed is slow, processing time is taken to match the serial data reception timing, and other processing can be executed. Disappear. Therefore, it is necessary to use a CPU with a high processing speed, but there is a problem that a CPU with a high processing speed is expensive. Further, in order to transmit serial data from the communication IC side to the CPU, a circuit for detecting whether or not the CPU can receive the data is required, and the circuit becomes complicated accordingly.
[0006]
An object of the present invention is to be able to capture a signal from a receiving circuit in accordance with the processing speed of a processor. Another problem is to reduce the number of output ports of the receiving circuit.
[0007]
[Means for Solving the Problems]
The receiving circuit having the asynchronous serial communication function of the present invention includes a receiving electric field strength determining circuit that determines whether or not the receiving electric field strength is equal to or higher than a predetermined value, and whether the frequency of the intermediate frequency signal is higher or lower than the reference frequency. An intermediate frequency determination circuit for determining, a conversion circuit for receiving serial data output from an external processor and converting it into parallel data, a data holding circuit for holding parallel data converted by the conversion circuit, and the data holding When the parallel data held in the circuit is decoded and the decoding result is data requesting output of the determination result of the reception field strength determination circuit, the 1-bit signal of the determination result of the reception field strength determination circuit And output the signal from one output port to the outside at the timing requested by the processor. A data output circuit that selects a 1-bit signal of the determination result of the intermediate frequency determination circuit and outputs the data to the outside from the output port when the data requests output of the determination result of the intermediate frequency determination circuit; Prepare.
[0008]
According to the present invention, the signal to be output from the output port of the receiving circuit can be arbitrarily specified from among a plurality of signals, and the processor can determine the timing to output the signal, so that it can be set according to the processing speed of the processor. Can be captured. As a result, the processing load for receiving data is reduced, so that, for example, a processor having a relatively low processing speed can be used. In addition, since any signal among a plurality of signals can be specified and output from one output port, the number of output ports of the receiving circuit can be reduced. This is highly effective when the receiving circuit is formed on a semiconductor integrated circuit.
[0009]
In addition, since data is transmitted from the receiving circuit to the processor using the output port, a circuit on the receiving circuit side for detecting whether or not the processor can receive data becomes unnecessary.
In the above invention, the data output circuit may determine whether the parallel data obtained by converting the serial data output from the processor has a received electric field strength of a predetermined value or more, and the frequency of the intermediate frequency signal is predetermined. Whether one of the determination results is selected or not from the output port depending on whether the data matches the frequency, or is data that requests output of a determination result that is higher or lower than a predetermined frequency. You may make it output to a processor.
[0010]
With this configuration, the processor determines whether the received electric field strength is equal to or higher than a predetermined value, whether the frequency of the intermediate frequency signal matches the predetermined frequency, whether the frequency is higher or lower than the predetermined frequency. The serial data requesting the output is output and the signal output from the output port of the semiconductor integrated circuit corresponding to the serial data is read to obtain the determination results. As a result, the processing load for the processor to receive data is reduced, so that a processor with a low processing speed can be used.
[0011]
The receiving circuit of the present invention includes a stereo determination circuit that determines whether the reception is stereo reception or monaural reception, and the data output circuit includes the decoding result, the determination result of the stereo determination circuit, and the electric field strength determination. Depending on the determination result of the circuit and the determination result output from the determination result of the intermediate frequency determination circuit, the 1-bit signal of the corresponding determination result is selected and output from the output port to the outside. Output.
[0012]
The plurality of determination circuits include a reception field strength determination circuit that determines whether or not the reception field strength is equal to or higher than a predetermined value, and an intermediate frequency determination circuit that determines whether the frequency of the intermediate frequency signal is higher or lower than the predetermined frequency. The data output circuit outputs 1-bit data output from the reception field strength determination circuit from the output port when the parallel data is data requesting output of a determination result of the reception field strength determination circuit. When the parallel data is data requesting output of the determination result of the intermediate frequency determination circuit, the processor outputs the 1-bit data output from the intermediate frequency determination circuit to the processor from the output port. Output.
[0013]
With the configuration described above, the processor can acquire the determination result of the determination circuit by reading 1-bit data output from the output port of the reception circuit. This makes it possible to use a processor with a slow processing speed.
The plurality of determination circuits include a reception electric field strength determination circuit that determines whether or not the reception electric field strength is a predetermined value or more, and an intermediate frequency signal obtained by mixing the reception signal and the local oscillation signal has a predetermined frequency. An intermediate frequency determination circuit for determining whether they match, higher than a predetermined frequency, lower than a predetermined frequency, and the data output circuit includes parallel data held in the data holding circuit And a decoder that selects one signal out of a plurality of signals output from the reception electric field strength determination circuit and the intermediate frequency determination circuit based on a decoding result of the decoder, and outputs the processor from the output port. It consists of a selector to be output to.
[0014]
For example, when the processor wants to know the determination result of the reception field strength determination circuit, it outputs serial data requesting output of the reception field strength determination result. The data output circuit decodes the converted parallel data, selects a determination result signal output from the reception field strength determination circuit based on the decoding result, and causes the processor to output the signal from the output port.
[0015]
When the processor wants to know whether or not the frequency of the intermediate frequency signal matches a predetermined frequency, it outputs serial data requesting output of the determination result. The data output circuit decodes the parallel data, selects a signal indicating whether or not the frequency of the intermediate frequency signal output from the intermediate frequency determination circuit matches a predetermined frequency based on the decoding result, and selects the signal Output from the output port to the processor.
[0016]
By configuring as described above, the processor can acquire the determination result of the received electric field strength and the determination result of the intermediate frequency determination circuit simply by reading the data output from the output port, so the processing burden for receiving the data Is reduced. Thereby, a processor with a low processing speed can be used.
[0017]
The plurality of signals output from the intermediate frequency determination circuit include a signal indicating whether the intermediate frequency signal matches a predetermined frequency and a signal indicating whether the intermediate frequency signal is higher or lower than the predetermined frequency.
Alternatively, the plurality of signals output from the intermediate frequency determination circuit include a signal indicating whether the intermediate frequency signal matches a predetermined frequency, a signal indicating whether the intermediate frequency signal is higher than the predetermined frequency, and a predetermined frequency. It consists of a signal indicating whether it is low or not.
[0018]
The receiving circuit may be formed on a semiconductor circuit substrate by a MOS process. With this configuration, the output signals of a plurality of circuits can be output from the same output pin, so that the number of pins can be reduced when the number of output pins is limited as in a semiconductor circuit board.
[0019]
The conversion circuit corresponds to the conversion circuit 15 in FIG. 1, the data holding circuit corresponds to the latch circuit 21 in FIG. 1, and the determination circuits are the reception electric field strength determination circuit 23 and the intermediate frequency determination circuit 24 in FIG. The data output circuit corresponds to the decoder / selector 22 in FIG. 1, and the processor corresponds to the CPU 12 in FIG.
[0020]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below. FIG. 1 is a diagram showing a main part of a receiving circuit 11 of an FM / AM receiver according to an embodiment of the present invention.
The receiving circuit 11 includes a CPU 12 and a semiconductor integrated circuit 13 having an FM / AM receiving circuit and a serial communication circuit. The semiconductor integrated circuit 13 is manufactured by a CMOS process, and an internal FM / AM receiving circuit, serial communication circuit, and the like are configured by MOSFETs.
[0021]
In FIG. 1, serial data output from the CPU 12 is input from the serial port 14 to the conversion circuit 15. The conversion circuit 15 is composed of, for example, a 10-bit shift register, a timing control circuit, and the like. The conversion circuit 15 sequentially shifts serial data at a timing synchronized with the clock signal CK supplied from the clock signal generation circuit 16 to provide 8-bit data. If the amount of data is fetched, 8-bit data is output as parallel data.
[0022]
In this embodiment, the CPU 12 outputs a start bit, 8-bit serial data, and a stop bit. First, address data designating an output destination of data is output as 4-bit data out of 8-bit data, and then 8-bit data is output.
[0023]
The address decoder 17 decodes the parallel data output from the conversion circuit 15 and enables the corresponding latch circuits 18 to 21 when the decoded result matches the address assigned to the latch circuits 18 to 21. Output address selection signals A0 to A3.
[0024]
The latch circuits 18 to 20 are circuits for latching data for setting a reference frequency of a local oscillation circuit (not shown), setting data for a frequency of a broadcasting station, and the like, and output the latched data to a corresponding circuit. .
The latch circuit 21 requests output of 8-bit serial data output from the CP 12, that is, a determination signal of the reception electric field strength determination circuit 23, a plurality of determination signals of the intermediate frequency determination circuit 24, or a determination signal of the stereo determination circuit 25. The 8-bit data is latched, and data of a predetermined number of bits out of the 8 bits is output to the decoder / selector 22.
[0025]
The reception electric field strength determination circuit 23 is a circuit for determining whether the electric field strength of the FM or AM reception signal is equal to or greater than a predetermined value, and outputs a 1-bit determination signal of 1, 0 as a determination result to the decoder / selector 22. To do.
The intermediate frequency counter 27 is a counter that measures the frequency fi of the intermediate frequency signal IF obtained by mixing the reception signal and the local oscillation signal, and outputs the count result to the intermediate frequency determination circuit 24.
[0026]
The intermediate frequency determination circuit 24 compares the frequency fi of the intermediate frequency signal IF measured by the intermediate frequency counter 27 with a predetermined reference frequency f0, and determines whether or not the two frequencies match, the frequency fi of the intermediate frequency signal IF. Is higher than the reference frequency f0, and whether the frequency fi of the intermediate frequency signal IF is lower than the reference frequency f0 is determined.
[0027]
From the intermediate frequency determination circuit 24, a 1-bit determination signal SDIF1 (fi = f0) indicating whether or not the frequency fi of the intermediate frequency signal IF matches the reference frequency f0, and whether or not it is higher than the reference frequency f0. Three types of signals, a 1-bit determination signal SDIF2 (fi> f0) and a 1-bit determination signal SDIF3 (fi <f0) indicating whether the frequency is lower than the reference frequency f0, are output to the decoder / selector 22. Instead of the determination signals SDIF2 and SDIF3, the intermediate frequency determination circuit 24 may output a 1-bit signal indicating whether the frequency fi of the intermediate frequency signal IF is higher or lower than the reference frequency f0.
[0028]
The stereo determination circuit 25 outputs a 1-bit determination signal ST indicating whether the reception is stereo or monaural to the decoder / selector 22. For example, the stereo determination circuit 25 outputs “1” as the determination signal ST for stereo reception and “0” for monaural reception.
[0029]
The decoder / selector 22 includes a decoder that decodes data output from the latch circuit 21 and a selector that selects and outputs one of a plurality of determination signals based on the decoding result of the decoder.
The selector of the decoder / selector 22 includes a determination signal SDS output from the received electric field strength determination circuit 23, a plurality of determination signals SDIF 1 to 3 output from the intermediate frequency determination circuit 24, and a determination signal output from the stereo determination circuit 25. ST is input, and one of the plurality of determination signals is selected based on the decoding result of the internal decoder and output from the output port 26 to the external CPU 12.
2A and 2B are diagrams illustrating an example of a configuration of serial data output from the CPU 12.
[0030]
FIG. 2A shows a data configuration in the case of transmitting an address and data with 2 bytes. First, an 8-bit address is transmitted, and then 8-bit data is transmitted. In this case, the lower 4 bits are used as address data. Then, following the address, data specifying a signal to be output to the output port 26 is transmitted.
[0031]
FIG. 2B shows a data configuration in the case where both address and data are transmitted in one byte. The upper 4 bits are assigned to the address and the lower 4 bits are assigned to the data.
Note that the CPU 12 may designate a signal to be output from the output port 26 by address data. In this case, when a specific address is output, the selector outputs a first signal (for example, signal SDS) to the output port 26, and when another address is output, the selector outputs a second signal (for example, ST) may be output to the output port 26.
[0032]
FIG. 3 is a detailed circuit diagram of the transmission / reception circuit 15 and the address decoder 17 shown in FIG.
A serial / parallel conversion circuit 41 including a 10-bit shift register converts 8-bit serial data output from the CPU 12 into parallel data, and outputs the parallel data to the address latch circuit 51 and the latch circuits 18 to 21.
[0033]
The 10-bit counter 42 counts the clock signal output from the clock signal generation circuit 16 and outputs the count-up signal a to the T flip-flop 43 when 10 clocks are counted.
The T flip-flop 43 is a circuit whose Q output is inverted by the count-up signal a of the 10-bit counter 42. The Q output signal b of the T flip-flop 43 is output to the rising edge detection circuit 44 and the falling edge detection circuit 45.
[0034]
The rising edge detection circuit 44 detects the rising edge of the Q output signal b of the T flip-flop 43 and outputs a high level latch signal c having a constant width to the address latch circuit 51.
The address latch circuit 51 latches 8-bit address data output from the serial / parallel conversion circuit 41 when the latch signal c becomes high level.
[0035]
The fall detection circuit 45 detects the fall of the Q output signal b of the T flip-flop 43 and outputs a high level signal d having a constant width to the inverter 46 and the AND gates 53 to 56. The output of the inverter 46 is output to a delay circuit 47 composed of a shift register or the like, subjected to a certain delay, and then output to one input terminal of the AND gates 48 and 49. A hardware reset signal that is normally at a high level is input to the other input terminal of the AND gate 48. The output of the AND gate 48 is input to the reset terminal of the 10-bit counter 42. Similarly, a hardware reset signal is input to the other input terminal of the AND gate 49.
[0036]
When the hardware reset signal becomes low level by the inverter 46, the delay circuit 47, and the AND gates 48 and 49, or the falling of the Q output signal b of the T flip-flop 43 is detected by the falling detection circuit 45. When a certain delay time has elapsed since then, the 10-bit counter 42 and the T flip-flop 43 are reset.
[0037]
The address decoder 52 decodes the address data latched by the address latch circuit 51 and outputs a signal designating the corresponding latch circuit among the latch circuits 18 to 21 to the AND gates 53 to 56.
The AND gates 53 to 56 select one of the latch circuits 18 to 21 when a high level signal is output from the address decoder 52 and a high level detection signal d is output from the falling detection circuit 45. The selection signals A0 to A3 to be output are output.
[0038]
The address latch circuit 51, the address decoder 52, and the AND gates 53 to 56 correspond to the address decoder 17 in FIG.
Next, the operation when the signal output from the output port 26 is switched in the receiving circuit 11 having the above configuration will be described with reference to the timing chart of FIG.
[0039]
When the serial communication is started, the CPU 12 outputs a start bit that is at a low level for a certain period, 8-bit serial data, and a stop bit that is at a high level for a certain period, as shown in FIG.
First, the case where the signal SDS is output from the output port 26 will be described. The CPU 12 outputs address data designating the latch circuit 21 after transmitting a start bit notifying the start of data transmission.
[0040]
The 10-bit counter 42 counts the clock signal output from the clock signal generation circuit 16, and outputs the count-up signal a at the timing shown in FIG.
As shown in FIG. 4 (3), before the count-up signal a is output, the T flip-flop 43 is reset and the Q output signal b is at a low level. When the address data designating the latch circuit 21 is output from the CPU 12 and the count-up signal a is output from the 10-bit counter 42, the Q output signal b changes to high level.
[0041]
When the Q output signal b of the T flip-flop 43 changes from the low level to the high level, the rising edge detection circuit 44 detects the rising edge of the signal b, and as shown in FIG. A level rising detection signal c is output. The address latch circuit 51 latches the address data (address specifying the latch circuit 21) output from the serial / parallel conversion circuit 41 at a timing synchronized with the rising detection signal c. The address latched by the address latch circuit 51 is decoded by the address decoder 52, and a high level signal e for selecting the latch circuit 21 is output (FIG. 4 (6)).
[0042]
Next, when the data A designating the signal SDS is output from the CPU 12, the count-up signal a is output from the 10-bit counter 42 when the next stop bit is received.
When the count-up signal a is output from the 10-bit counter 42, the Q output signal b of the T flip-flop 43 changes from high level to low level as shown in FIG. 4 (3). The change in the Q output signal b is detected by the falling detection circuit 45, and a high level falling detection signal d having a constant width is output from the falling detection circuit 45 as shown in FIG.
[0043]
When the falling detection signal d becomes high level, the AND gate 56 to which the high level signal e is output from the address decoder 52 is opened at this time, and the high level selection signal f (A3) is sent from the AND gate 56 to the latch circuit 21. Is output (FIG. 4 (7)).
[0044]
The latch circuit 21 latches the data A specifying the signal SDS output from the serial / parallel conversion circuit 41 when the selection signal f is output from the AND gate 56.
The decoder / selector 22 decodes the data A latched by the latch circuit 21, selects a signal (in this case, the signal SDS) from among a plurality of input signals, and outputs the selected signal to the output port 26 ( FIG. 4 (8)). As a result, the signal SDS is output from the output port 26 to the CPU 12 (FIG. 4 (9)).
[0045]
Next, a case where the signal SD is output from the output port 26 will be described. When the address specifying the latch circuit 21 is output from the CPU 12 and then the data B specifying the signal ST is output, the count-up signal a is received from the 10-bit counter 42 when the next stop bit is received. Is output.
[0046]
When the count-up signal a is output, the Q output signal b of the T flip-flop 43 changes from high level to low level as shown in FIG. 4 (3). The change in the Q output signal b is detected by the falling detection circuit 45, and a high level falling detection signal d having a constant width is output from the falling detection circuit 45 as shown in FIG.
[0047]
When the falling detection signal d becomes high level, the AND gate 56 to which the high level signal e is output from the address decoder 52 is opened at this time, and the high level selection signal f (A3) is sent from the AND gate 56 to the latch circuit 21. Is output (FIG. 4 (7)).
[0048]
When the selection signal f is output from the AND gate 56, the latch circuit 21 latches the data B specifying the signal SDS output from the serial / parallel conversion circuit 41. The data B latched by the latch circuit 21 is decoded by the decoder / selector 22, selects a designated signal (in this case, the signal ST) among a plurality of signals input to the decoder / selector 22, and outputs the output port 26. (FIG. 4 (8)). As a result, the signal ST is output from the output port 26 to the CPU 12 (FIG. 4 (9)).
[0049]
According to this embodiment, the CPU 12 outputs data designating an arbitrary signal in a plurality of signals (SDS, ST, SDIF1, etc.) to the receiving circuit, whereby the signal designated from the output port of the receiving circuit 11 is output. Can be output. Thus, for example, the CPU 12 can capture a plurality of signals using one output port. In addition, since the CPU 12 itself can determine the timing at which the CPU 12 captures the signal (data), the signal can be captured according to the processing speed of the CPU 12. Thereby, even when the processing speed of the CPU 12 is slow, the data can be reliably received.
[0050]
Next, FIG. 3 is a flowchart of seek processing when a receivable station is automatically detected.
When an automatic channel selection button or the like is operated by the user, the CPU 12 outputs serial data instructing seek on to the serial port 14 to detect a receivable station (S11 in FIG. 3).
[0051]
Next, serial data for requesting output of a seek level determination result, that is, a reception field strength determination result is output (S12). At this time, address data for enabling the latch circuit 21 is output first.
Next, the tuning frequency f is increased or decreased by the frequency Δf (S13).
[0052]
When serial data requesting the output of the reception field strength determination result is output from the CPU 12, the conversion circuit 15 converts the received serial data into parallel data, and the latch circuit 21 latches the parallel data. The decoder / selector 22 decodes the parallel data latched by the latch circuit 21 and outputs the received field strength determination circuit 23 when the decoded result is data requesting output of the received field strength determination result. A signal SDS indicating whether the received electric field strength is equal to or higher than a predetermined value is selected and output to the output port 26.
[0053]
The CPU 12 reads a 1-bit signal SDS indicating whether or not the received electric field intensity output from the output port 26 is equal to or higher than a predetermined value, and determines whether or not the signal SDS is “1” (S14).
When SDS = 0 (S14, NO), it is a case where a reception signal of a certain level or higher is not received, so the process returns to step S13 to increase or decrease the tuning frequency.
[0054]
On the other hand, if SDS = 1 (S14, YES), that is, if the electric field strength of the received signal is greater than or equal to a predetermined value, the process proceeds to step S15 to output serial data requesting output of the determination result of the intermediate frequency determination circuit 24.
When serial data requesting output of the determination result of the intermediate frequency determination circuit 24 is output from the CPU 12, the conversion circuit 15 converts the received serial data into parallel data, and the latch circuit 21 latches the parallel data.
[0055]
The decoder / selector 22 decodes the parallel data latched by the latch circuit 21. When the decoding result is data requesting output of a determination result as to whether or not it matches the reference frequency f0, the frequency fi of the intermediate frequency signal IF output from the intermediate frequency signal determination circuit 24 is the reference frequency f0. Is selected and output to the output port 26.
[0056]
When the decoder / selector 22 is data requesting output of a determination result as to whether or not the decoding result is higher than the reference frequency f0, the frequency fi of the intermediate frequency signal IF output from the intermediate frequency determination circuit 24 is determined. A signal SDIF2 indicating whether the frequency is higher than the reference frequency f0 is selected and output to the output port 26.
[0057]
Further, when the decoder / selector 22 is data requesting output of a determination result as to whether or not the decoding result is lower than the reference frequency f0, the frequency fi of the intermediate frequency signal IF output from the intermediate frequency determination circuit 24 is determined. A signal SDIF3 indicating whether the frequency is lower than the reference frequency f0 is selected and output to the output port 26.
[0058]
The CPU 12 reads a signal output from the output port 26, and based on the read signal, whether or not the frequency fi of the intermediate frequency signal IF matches the reference frequency f0, that is, falls within a certain frequency range of the reference frequency f0. Whether it is higher than the reference frequency f0 or lower than the reference frequency f0 (S16). Since the CPU 12 knows the serial data transmitted immediately before, the CPU 12 can determine which of the three types of signals SDIF1 to SDIF3 is output from the output port 26.
[0059]
When the frequency fi of the intermediate frequency signal IF is higher than the reference frequency f0 (fi> f0) or lower than the reference frequency f0 (fi <f0), the received signal is not a broadcast station signal, so the process returns to step S13 to tune. The seek is continued by increasing or decreasing the frequency f by the predetermined frequency Δf.
[0060]
On the other hand, when the frequency fi of the intermediate frequency signal IF matches the reference frequency f0, the CPU 12 stops the seek operation (seek stop) and outputs serial data (S17).
When the FM / AM receiving circuit of the semiconductor integrated circuit 13 receives the serial data for stopping the seek operation, it switches to the normal mode. At this time, the decoder / selector 22 decodes the serial data for stopping the seek operation, and outputs a signal ST output from the stereo determination circuit 25 based on the decoding result, that is, a signal ST indicating whether the reception is stereo or monaural. Select and output from the output port 26.
[0061]
In the embodiment described above, the CPU 12 requests the semiconductor integrated circuit 13 to output a determination result, and the semiconductor integrated circuit 13 responds to the request with the determination signal of the reception field strength determination circuit 23 and the intermediate frequency. A plurality of determination signals indicating whether the intermediate frequency signal output from the determination circuit 24 matches the reference frequency f0, whether it is higher than the reference frequency f0, or lower than the reference frequency f0, and the stereo determination circuit 25 1 is selected and output from the output port 26.
[0062]
This eliminates the need for the CPU 12 to capture serial data at a timing synchronized with the clock signal corresponding to the data transfer speed when receiving data, and reads 1-bit data from the output port 26 of the semiconductor integrated circuit 13. The judgment result can be acquired with just Therefore, the processing load for receiving data is reduced, and the CPU 12 having a low processing speed can be used.
[0063]
In addition, since data is transmitted from the semiconductor integrated circuit to the processor using the output port, a circuit on the semiconductor integrated circuit side for detecting whether or not the processor can receive data is not necessary.
The present invention is not limited to the above-described embodiment, and can be configured as follows.
(A) In the above-described embodiment, the three determination circuits of the reception electric field strength determination circuit 23, the intermediate frequency signal determination circuit 24, and the stereo determination circuit 25 are described, but the present invention is not limited to these determination circuits.
(B) The present invention is not limited to a semiconductor integrated circuit for FM / AM receivers, but can be applied to any semiconductor integrated circuit as long as it performs serial communication with a processor.
[0064]
【The invention's effect】
According to the present invention, the signal to be output from the output port of the receiving circuit can be arbitrarily designated from among a plurality of signals, and the processor can determine the timing for outputting the signal. In response, a desired signal can be captured. In addition, since any signal among a plurality of signals can be output from one output port, the number of output ports of the receiving circuit can be reduced.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating a main part of a receiving circuit according to an embodiment;
FIGS. 2A and 2B are diagrams showing an example of a data configuration.
FIG. 3 is a detailed circuit diagram of a main part of a receiving circuit.
FIG. 4 is a timing chart of the receiving circuit.
FIG. 5 is a flowchart of a seek process performed by a CPU 12;
[Explanation of symbols]
11 Receiver circuit
12 CPU
13 Semiconductor integrated circuit
15 Conversion circuit
16 Clock signal generation circuit
17 Address decoder
18-21 Latch circuit
22 Decoder / Selector
23 Received field strength judgment circuit
24 Intermediate frequency judgment circuit
25 Stereo decision circuit
26 Output port

Claims (3)

受信電界強度が所定値以上か否かを判定する受信電界強度判定回路と、
中間周波信号の周波数が基準周波数より高いか、低いかを判定する中間周波判定回路と、
外部のプロセッサから出力されるシリアルデータを受信してパラレルデータに変換する変換回路と、
前記変換回路において変換されたパラレルデータを保持するデータ保持回路と、
前記データ保持回路に保持された前記パラレルデータをデコードし、デコード結果が、前記受信電界強度判定回路の判定結果の出力を要求するデータであったときには、前記受信電界強度判定回路の判定結果の1ビットの信号を選択して、前記プロセッサに要求されたタイミングで1つの出力ポートから外部に出力させ、前記デコード結果が、前記中間周波判定回路の判定結果の出力を要求するデータであったときには、前記中間周波判定回路の判定結果の1ビットの信号を選択して、前記出力ポートから外部に出力させるデータ出力回路とを備える調歩同期式シリアル通信機能を有する受信回路。
A received electric field strength determination circuit for determining whether or not the received electric field strength is a predetermined value or more;
An intermediate frequency determination circuit for determining whether the frequency of the intermediate frequency signal is higher or lower than the reference frequency;
A conversion circuit that receives serial data output from an external processor and converts it into parallel data;
A data holding circuit for holding parallel data converted by the conversion circuit;
When the parallel data held in the data holding circuit is decoded and the decoding result is data requesting output of the determination result of the reception field strength determination circuit, one of the determination results of the reception field strength determination circuit When a bit signal is selected and output from one output port to the outside at a timing requested by the processor, and the decoding result is data requesting output of the determination result of the intermediate frequency determination circuit, A receiving circuit having an asynchronous serial communication function , comprising: a data output circuit that selects and outputs a 1-bit signal as a determination result of the intermediate frequency determination circuit to the outside from the output port .
前記中間周波判定回路は、中間周波信号の周波数が、基準周波数より高いか、低いか、あるいは基準周波数と一致するか否かを判定し、The intermediate frequency determination circuit determines whether the frequency of the intermediate frequency signal is higher or lower than the reference frequency or matches the reference frequency,
前記データ出力回路は、前記デコード結果が、前記中間周波信号の周波数が基準周波数より高いか否か、あるいは基準周波数より低いか否かの判定結果の出力を要求するデータであったときには、前記中間周波判定回路から出力される前記中間周波信号の周波数が基準周波数より高いか否か、あるいは基準周波数より低いか否かを示す1ビットの信号を選択して、前記プロセッサに要求されたタイミングで前記出力ポートから外部に出力させ、前記デコード結果が、前記中間周波信号の周波数が基準周波数と一致するか否かの判定結果の出力を要求するデータであったときには、前記中間周波判定回路から出力される前記中間周波信号の周波数が基準周波数と一致するか否かを示す1ビットの信号を選択して、前記出力ポートから外部に出力させる請求項1記載の受信回路。  The data output circuit, when the decoding result is data requesting output of a determination result of whether or not the frequency of the intermediate frequency signal is higher than a reference frequency or lower than a reference frequency, A 1-bit signal indicating whether the frequency of the intermediate frequency signal output from the frequency determination circuit is higher than a reference frequency or lower than a reference frequency is selected, and at the timing requested by the processor When the decoding result is data requesting output of a determination result as to whether or not the frequency of the intermediate frequency signal matches a reference frequency, it is output from the intermediate frequency determination circuit. A 1-bit signal indicating whether the frequency of the intermediate frequency signal matches a reference frequency is output from the output port to the outside Receiver circuit of claim 1 wherein the.
ステレオ受信、モノラル受信の何れであるかを判定するステレオ判定回路を有し、Having a stereo determination circuit for determining whether it is stereo reception or monaural reception;
前記データ出力回路は、前記デコード結果が、前記ステレオ判定回路の判定結果、前記受信電界強度判定回路の判定結果、前記中間周波判定回路の判定結果の内の何れの判定結果の出力を要求するデータであるかにより、該当する判定結果の1ビットの信号を選択して前記出力ポートから外部に出力させる請求項1記載の受信回路。  In the data output circuit, the decoding result is data requesting output of any determination result among the determination result of the stereo determination circuit, the determination result of the reception electric field strength determination circuit, and the determination result of the intermediate frequency determination circuit. The receiving circuit according to claim 1, wherein a 1-bit signal of a corresponding determination result is selected and output from the output port to the outside depending on whether or not.
JP2003028400A 2003-02-05 2003-02-05 Receiver circuit having serial communication function Expired - Fee Related JP4012832B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003028400A JP4012832B2 (en) 2003-02-05 2003-02-05 Receiver circuit having serial communication function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003028400A JP4012832B2 (en) 2003-02-05 2003-02-05 Receiver circuit having serial communication function

Publications (2)

Publication Number Publication Date
JP2004240653A JP2004240653A (en) 2004-08-26
JP4012832B2 true JP4012832B2 (en) 2007-11-21

Family

ID=32955884

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003028400A Expired - Fee Related JP4012832B2 (en) 2003-02-05 2003-02-05 Receiver circuit having serial communication function

Country Status (1)

Country Link
JP (1) JP4012832B2 (en)

Also Published As

Publication number Publication date
JP2004240653A (en) 2004-08-26

Similar Documents

Publication Publication Date Title
EP2249479A1 (en) Time digital converter, digital pll frequency synthesizer, transmitter-receiver, and receiver
US20060066759A1 (en) Automatic frequency tuning system
US5073975A (en) Stop on station circuit including center channel detector
JPH04222130A (en) Interference detection circuit
JP4012832B2 (en) Receiver circuit having serial communication function
US7292070B1 (en) Programmable PPM detector
US7443213B2 (en) Staged locking of two phase locked loops
TW201031930A (en) Frequency detecting device and method
US20050084048A1 (en) Clock and data recovery circuit
US20060146970A1 (en) Start-stop synchronization serial communication circuit and semiconductor integrated circuit having start-stop synchronization serial communication circuit
KR100198669B1 (en) Apparatus and method for serial interfacing
JP2007292613A (en) Circuit for receiving standard electric wave
US5706036A (en) Method and apparatus for providing a video synchronising signal of a predetermined polarity
JP5681449B2 (en) Information processing apparatus and portable terminal
JP4718703B2 (en) Automatic phase detection method in ATM main signal phase adjustment circuit
JPH02119447A (en) Digital pattern decoder and decoding method
JP3341544B2 (en) Signal period measurement device
JP2563613Y2 (en) Tuning equipment
JP2738156B2 (en) FSK modulation / demodulation circuit
JP2003503872A5 (en)
JPH07212413A (en) Reception circuit for asynchronous data
JP2923979B2 (en) Frequency detection circuit
JPH1093648A (en) Qpsk demodulator
JP3956655B2 (en) Overflow detection circuit and detection method in audio equipment
US6943711B2 (en) Frequency-digital signal conversion circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050421

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060928

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061003

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061201

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070605

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070801

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070910

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100914

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees