JPH0865625A - Memory access device - Google Patents
Memory access deviceInfo
- Publication number
- JPH0865625A JPH0865625A JP6195081A JP19508194A JPH0865625A JP H0865625 A JPH0865625 A JP H0865625A JP 6195081 A JP6195081 A JP 6195081A JP 19508194 A JP19508194 A JP 19508194A JP H0865625 A JPH0865625 A JP H0865625A
- Authority
- JP
- Japan
- Prior art keywords
- data
- nvram
- stored
- bus
- microcomputer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Abstract
(57)【要約】
【目的】 TV製造時の初期化データ書き込み処理の効
率を上げる。
【構成】 リモコン12の所定の操作釦が操作される
と、内蔵する発光部から赤外線が発光され、TVマイコ
ン部11のCPU1の内蔵する受光部により受光され、
対応する信号に変換される。CPU1は、I2Cバス
5、I2Cバス端子13およびI2Cバス14を介して、
PC6の内蔵するメモリに記憶されている初期化データ
を読み出し、それをNVRAM3に書き込む。NVRA
M3に書き込まれた初期化データは、CPU1により読
み出され、内蔵するROMに記憶されたポインタテーブ
ルに基づいて、内蔵するRAMの所定のアドレスに転送
される。
(57) [Abstract] [Purpose] To improve the efficiency of initialization data writing process during TV manufacturing. [Structure] When a predetermined operation button of the remote controller 12 is operated, infrared rays are emitted from a built-in light emitting section and are received by a light receiving section incorporated in the CPU 1 of the TV microcomputer section 11.
Converted to the corresponding signal. The CPU 1 transmits the I 2 C bus 5, the I 2 C bus terminal 13 and the I 2 C bus 14 to
The initialization data stored in the memory built in the PC 6 is read out and written in the NVRAM 3. NVRA
The initialization data written in M3 is read by the CPU 1 and transferred to a predetermined address of the built-in RAM based on the pointer table stored in the built-in ROM.
Description
【0001】[0001]
【産業上の利用分野】本発明は、例えば、テレビジョン
受像機内のICメモリにデータを書き込む際に用いて好
適なメモリアクセス装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory access device suitable for use in writing data to an IC memory in a television receiver, for example.
【0002】[0002]
【従来の技術】従来、テレビジョン受像機(TV)内の
不揮発性メモリ(NVRAM)にデータを書き込む場
合、図12に示すように、TV全体を制御するTVマイ
コン1とパーソナルコンピュータ(PC)6を、所定の
信号線4、およびI2Cバス5により接続する。そし
て、I2Cバス5には、NVRAM3を接続する。2. Description of the Related Art Conventionally, when writing data in a non-volatile memory (NVRAM) in a television receiver (TV), a TV microcomputer 1 and a personal computer (PC) 6 for controlling the entire TV as shown in FIG. Are connected by a predetermined signal line 4 and an I 2 C bus 5. The NVRAM 3 is connected to the I 2 C bus 5.
【0003】パラレルポート(PIO)2は、PC6よ
り所定の信号が入力されると、それを内蔵するCPUに
供給するようになされている。CPUは、PIO2より
所定の信号が供給されると、最初、マスタモードにセッ
トされていたI2Cバス5をスレーブモードにセットす
るようになされている。When a predetermined signal is input from the PC 6, the parallel port (PIO) 2 supplies it to a CPU incorporating it. When a predetermined signal is supplied from the PIO 2, the CPU sets the I 2 C bus 5, which was initially set in the master mode, to the slave mode.
【0004】NVRAM3は、PC6よりI2Cバス5
を介して供給されるデータを記憶するようになされてい
る。The NVRAM 3 is an I 2 C bus 5 from the PC 6.
It is adapted to store data supplied via the.
【0005】次に、図13を参照して、その手順を説明
する。最初に、ユーザは、PC6のデータ送信開始スイ
ッチをオンにし、データ送信を開始させる。PC6は、
信号線4を介して、TVマイコン1のPIO2に所定の
信号を送信する。この信号は、信号線4に接続されたP
IO2により受信された後、CPUに供給される。Next, the procedure will be described with reference to FIG. First, the user turns on the data transmission start switch of the PC 6 to start data transmission. PC6 is
A predetermined signal is transmitted to the PIO 2 of the TV microcomputer 1 via the signal line 4. This signal is P connected to the signal line 4.
After being received by IO2, it is supplied to the CPU.
【0006】CPUは、PIO2より所定の信号が供給
されると、I2Cバス5をスレーブモードにする。一
方、PC6側においては、I2Cバス5をマスタモード
にする。これにより、I2Cバス5はPC6に解放さ
れ、PC6より出力される信号が、I2Cバス5を介し
て、CPUに供給可能となる。When a predetermined signal is supplied from PIO2, the CPU sets the I 2 C bus 5 in the slave mode. On the other hand, on the PC 6 side, the I 2 C bus 5 is set to the master mode. As a result, the I 2 C bus 5 is released to the PC 6, and the signal output from the PC 6 can be supplied to the CPU via the I 2 C bus 5.
【0007】次に、PC6は、例えば内蔵するRAMに
記憶された所定のデータを、NVRAM3にI2Cバス
5を介して転送する。データの転送が終了すると、PC
6は、いま、NVRAM3に転送したデータを読み出
し、それをPC6のRAMに記憶された所定のデータと
比較し、NVRAM3に正しくデータが書き込まれたこ
とを確認する。Next, the PC 6 transfers, for example, predetermined data stored in the built-in RAM to the NVRAM 3 via the I 2 C bus 5. When the data transfer is complete, the PC
Reference numeral 6 now reads the data transferred to the NVRAM 3 and compares it with the predetermined data stored in the RAM of the PC 6 to confirm that the data has been correctly written to the NVRAM 3.
【0008】この場合、上述したように、PC6側か
ら、信号線4を介してTVマイコン1側に所定の信号を
供給し(トリガをかけるようにし)、PC6の所定のデ
ータをTVマイコン1に供給するようにしたが、TVマ
イコン1からPC6にトリガをかけるようにし、PC6
の所定のデータが、I2Cバス5を介してTVマイコン
1に供給されるようにすることもできる。In this case, as described above, a predetermined signal is supplied (triggered) from the PC 6 side to the TV microcomputer 1 side via the signal line 4, and the predetermined data of the PC 6 is supplied to the TV microcomputer 1. Although it was supplied, the TV microcomputer 1 triggers the PC 6 to
It is also possible to supply the predetermined data of 1 to the TV microcomputer 1 via the I 2 C bus 5.
【0009】即ち、最初、PC6側のI2Cバス5をス
レーブモードにしておき、TVマイコン6の所定のデー
タ転送開始スイッチがオンにされると、TVマイコン1
は、PC6に対して、I2Cバス5を介して制御開始デ
ータを送信し、I2Cバス5をスレーブモードにする。
この制御開始データがPC6により受信されると、PC
6は、I2Cバス5をマスタモードにする。そして、P
C6は、例えばRAMに記憶されているデータをI2C
バス5を介してNVRAM3に転送する。That is, first, when the I 2 C bus 5 on the PC 6 side is set in the slave mode and a predetermined data transfer start switch of the TV microcomputer 6 is turned on, the TV microcomputer 1
Transmits control start data to the PC 6 via the I 2 C bus 5 to put the I 2 C bus 5 in the slave mode.
When this control start data is received by the PC 6,
6 puts the I 2 C bus 5 in master mode. And P
C6 stores the data stored in the RAM, for example, as I 2 C.
Transfer to the NVRAM 3 via the bus 5.
【0010】この転送が終了すると、PC6は、いまN
VRAM3に転送したデータを読み出し、それをPC6
のRAMに記憶されているデータと比較し、NVRAM
3にこのデータが正しく書き込まれたことを確認する。When this transfer is completed, the PC 6 is now
The data transferred to VRAM3 is read out and it is read by PC6
NVRAM compared with the data stored in RAM
Confirm that this data was written correctly in 3.
【0011】NVRAM3に所定のデータが書き込まれ
ると、そのデータはCPUにより、TVマイコン1の内
蔵するRAMに転送される。RAMに転送されたデータ
は、所定のアプリケーションプログラムに制御されたC
PUにより、読み出しまたは書き込みがされる。When predetermined data is written in the NVRAM 3, the data is transferred by the CPU to the RAM incorporated in the TV microcomputer 1. The data transferred to the RAM is C controlled by a predetermined application program.
Reading or writing is performed by the PU.
【0012】このとき、RAMおよびNVRAM3に記
憶されるデータのアドレスは、図14または図15に示
すような構成となっている。即ち、RAMにおいては、
スタートアドレスは所定の固定番地に設定され、そこか
らデータが順に記憶されている。一方、NVRAM3に
おいては、スタートアドレス00から、データが順に記
憶されている。At this time, the address of the data stored in the RAM and NVRAM 3 has the structure shown in FIG. 14 or 15. That is, in RAM,
The start address is set to a predetermined fixed address, and data is stored in order from that address. On the other hand, in the NVRAM 3, data is sequentially stored from the start address 00.
【0013】このように、RAM上に転送されたNVR
AM3のデータは、NVRAM3に記憶されていたとき
と同一の順序で記憶されている。従って、NVRAM3
に記憶されているデータをRAMへ転送する場合、効率
のよいブロック転送を行うことができる。また、NVR
AM3に記憶されているデータのデータ開始アドレス
は、CPUのメモリ空間ではないから、NVRAM3の
アドレス00は、CPU内のRAMのスタートアドレス
とは異なるが、データの配置順は、同一にしてあるた
め、CPUからは、RAM内のデータとNVRAM3内
のデータを同一の順序で対等にアクセスすることが可能
である。The NVR thus transferred to the RAM
The data of AM3 is stored in the same order as when it was stored in NVRAM3. Therefore, NVRAM3
When the data stored in the RAM is transferred to the RAM, efficient block transfer can be performed. In addition, NVR
Since the data start address of the data stored in the AM3 is not in the memory space of the CPU, the address 00 of the NVRAM3 is different from the start address of the RAM in the CPU, but the data arrangement order is the same. From the CPU, the data in the RAM and the data in the NVRAM 3 can be equally accessed in the same order.
【0014】このように、所定のアプリケーションプロ
グラムによりRAM内のデータの読み出し、または書き
込みが行われる場合、RAM内に記憶されているデータ
の順序は、NVRAM3に記憶されているデータの順序
と同一でなければならないから、例えば、アプリケーシ
ョンプログラムを作成するとき、データの大きさやデー
タが記憶されるアドレスが、RAMとNVRAM3との
間で変わらないように注意して設計する必要がある。As described above, when the data in the RAM is read or written by the predetermined application program, the order of the data stored in the RAM is the same as the order of the data stored in the NVRAM 3. Therefore, for example, when creating an application program, it is necessary to design carefully so that the size of data and the address at which the data is stored do not change between the RAM and the NVRAM 3.
【0015】即ち、アセンブラによるプログラム作成時
に、例えば、 ラベル1 EQU 0000H ラベル2 EQU 0002H ラベル3 EQU 0003H ラベル4 EQU 0005H と記述して、ラベル名に対応するRAM内の絶対アドレ
スを予め設定し、データ長も事前に規定しておくように
する必要がある。That is, at the time of creating a program by the assembler, for example, label 1 EQU 0000H label 2 EQU 0002H label 3 EQU 0003H label 4 EQU 0005H is described, and an absolute address in RAM corresponding to the label name is set in advance and data is set. It is necessary to specify the length in advance.
【0016】また、図15に示すように、NVRAM3
は、1ワードあたり8ビットで構成されるものと、1ワ
ードあたり16ビットで構成されるものがあるが、NV
RAM3におけるデータの順序および中身はそれぞれ同
一であり、それに対するアクセスも基本的に同様の方法
により可能である。Further, as shown in FIG.
There are two types, one with 8 bits per word and one with 16 bits per word.
The order and contents of data in the RAM 3 are the same, and access to them is basically possible by the same method.
【0017】[0017]
【発明が解決しようとする課題】従来、このように、T
V内のI2Cバス5に接続されている例えばNVRAM
3等のICまたはメモリに記憶されるデータの配置順
と、TV内のTVマイコンのRAMに記憶されるデータ
の配置順は同一であることを前提とし、TVに接続され
た外部治具(PC)から、TV内のI2Cバス5を介し
て、データを直接書き込むようにする。Conventionally, as described above, the T
For example, NVRAM connected to the I 2 C bus 5 in V
Assuming that the arrangement order of the data stored in the IC or memory such as 3 and the arrangement order of the data stored in the RAM of the TV microcomputer in the TV are the same, an external jig (PC ), The data is directly written via the I 2 C bus 5 in the TV.
【0018】この場合、NVRAM3内のデータの配置
順が予め決められ、その配置順に従って、PC6からN
VRAM3へ、I2Cバス5を介してデータが書き込ま
れるとともに、そのデータの配置順を前提としたプログ
ラムをアセンブラにより作成するようにしている。In this case, the arrangement order of the data in the NVRAM 3 is determined in advance, and PC 6 to N are arranged in accordance with the arrangement order.
Data is written in the VRAM 3 via the I 2 C bus 5, and a program is created by the assembler on the premise of the arrangement order of the data.
【0019】従って、PC6からTV内のNVRAM3
にデータを書き込むとき、NVRAM3内のデータの配
置順が事前にわかっている必要がある。また、NVRA
M3に記憶させたデータの配置順と同一の順序でデータ
が配置されるように、プログラムを作成する必要があ
り、煩わしい課題があった。Therefore, from the PC 6 to the NVRAM 3 in the TV
When writing data to the memory, it is necessary to know the arrangement order of the data in the NVRAM 3 in advance. Also, NVRA
The program must be created so that the data is arranged in the same order as the arrangement order of the data stored in M3, which is a troublesome problem.
【0020】また、Cコンパイラなどにより、リロケー
タブルなプログラムを作成し、CPUがNVRAM3に
記憶されているデータを一旦RAMに移し、それにアク
セスするような場合、RAM内のデータ配置順が、プロ
グラムのコンパイルまたはリンク毎に異なることがあ
り、所望のデータにアクセスすることができない課題が
あった。Further, when a relocatable program is created by a C compiler or the like, and the CPU temporarily transfers the data stored in the NVRAM 3 to the RAM and accesses it, the order of data arrangement in the RAM is such that the program is compiled. Alternatively, there is a problem that the desired data may not be accessible because the data may be different for each link.
【0021】また、NVRAM3に記憶させるデータの
形式と、RAMに記憶させるデータの形式を同一のデー
タ形式にしなければならず、NVRAM3のデータ形式
の変更はできない課題があった。Further, the format of the data stored in the NVRAM 3 and the format of the data stored in the RAM must be the same, and there is a problem that the data format of the NVRAM 3 cannot be changed.
【0022】本発明はこのような状況に鑑みてなされた
ものであり、リロケータブルなRAM内のデータと、N
VRAM3内に記憶されるデータの対応付けを行うこと
ができるようにし、RAM内のデータの配置順が変更さ
れても、NVRAM内のデータの配置順は固定のまま
で、外部のPC6から、I2Cバス5を介してNVRA
M3にデータを書き込んだり、またはNVRAM3から
データを読み出すことができるようにするものである。The present invention has been made in view of such a situation, and the data in the relocatable RAM and N
The data stored in the VRAM 3 can be associated with each other. Even if the arrangement order of the data in the RAM is changed, the arrangement order of the data in the NVRAM remains fixed, and the I NVRA through the 2 C bus 5
Data is written to M3 or data can be read from NVRAM3.
【0023】[0023]
【課題を解決するための手段】本発明のメモリアクセス
装置は、所定の大きさを有する1つまたは複数のデータ
を記憶し、記憶したデータが絶対アドレスによりアクセ
スされる第1記憶手段(例えば図2のRAM29)と、
データをランダムに記憶し、データが相対アドレスによ
りアクセスされる第2記憶手段(例えば、図2のNVR
AM3)と、第1記憶手段に記憶されているデータ順
に、第2記憶手段に記憶されているこのデータの相対ア
ドレスと大きさが記述されたポインタテーブルを記憶す
るポインタテーブル記憶手段(例えば、図2のROM2
8)と、ポインタテーブル記憶手段に記憶されたデータ
の大きさに基づいて、このデータが記憶されるべき第1
記憶手段のアドレスと、第2記憶手段のアドレスを対応
付ける対応手段(例えば図2のTVマイコン1)と、対
応手段により対応付けられたデータが記憶される第1記
憶手段のアドレスと、第2記憶手段のアドレスに基づい
て、データを第1記憶手段から第2記憶手段へ、または
第2記憶手段から第1記憶手段へ転送するデータ転送手
段(例えば、図2のTVマイコン1)を備えることを特
徴とする。A memory access device of the present invention stores one or a plurality of data having a predetermined size, and the stored data is accessed by an absolute address (for example, FIG. 2 RAM 29),
Second storage means for randomly storing the data and accessing the data by a relative address (eg, the NVR of FIG. 2).
AM3) and a pointer table storage means for storing a pointer table in which the relative address and size of this data stored in the second storage means are described in the order of the data stored in the first storage means (for example, FIG. ROM 2
8) and the first data to be stored based on the size of the data stored in the pointer table storage means.
Corresponding means (for example, the TV microcomputer 1 in FIG. 2) that associates the address of the storage means with the address of the second storage means, the address of the first storage means in which the data associated by the correspondence means is stored, and the second storage Data transfer means (for example, the TV microcomputer 1 in FIG. 2) for transferring data from the first storage means to the second storage means or from the second storage means to the first storage means based on the address of the means is provided. Characterize.
【0024】第2記憶手段は、ストラクチャ形式のデー
タを記憶するようにすることができる。The second storage means may store structure type data.
【0025】また、データ転送手段は、外部機器から供
給を受けたデータを第1記憶手段に順に転送するように
することができる。Further, the data transfer means can sequentially transfer the data supplied from the external device to the first storage means.
【0026】[0026]
【作用】請求項1に記載のメモリアクセス装置において
は、RAM29により、所定の大きさを有する1つまた
は複数のデータを記憶し、記憶したデータが絶対アドレ
スによりアクセスされる。また、NVRAM3により、
データがランダムに記憶され、データが相対アドレスに
よりアクセスされる。また、ROM28により、第1記
憶手段に記憶されているデータ順に、第2記憶手段に記
憶されているこのデータの相対アドレスと大きさが記述
されたポインタテーブルが記憶される。In the memory access device according to the first aspect, the RAM 29 stores one or more data having a predetermined size, and the stored data is accessed by the absolute address. Also, with NVRAM3,
The data is stored randomly and the data is accessed by relative address. Further, the ROM 28 stores a pointer table in which the relative address and size of this data stored in the second storage means are described in the order of the data stored in the first storage means.
【0027】また、TVマイコン1は、ポインタテーブ
ル記憶手段に記憶されたデータの大きさに基づいて、こ
のデータが記憶される第1記憶手段のアドレスと、第2
記憶手段のアドレスを対応付け、さらに、対応付けられ
たデータが記憶される第1記憶手段のアドレスと、第2
記憶手段のアドレスに基づいて、データを第1記憶手段
から第2記憶手段へ、または第2記憶手段から第1記憶
手段へ転送する。従って、NVRAM3に記憶させるデ
ータの配置順は、RAM29に記憶されるデータの配置
順に拘らず固定にすることができる。Further, the TV microcomputer 1 determines, based on the size of the data stored in the pointer table storage means, the address of the first storage means in which this data is stored and the second storage means.
The addresses of the storage means are associated with each other, and the address of the first storage means in which the associated data is stored, and the second
Data is transferred from the first storage means to the second storage means or from the second storage means to the first storage means based on the address of the storage means. Therefore, the arrangement order of the data stored in the NVRAM 3 can be fixed regardless of the arrangement order of the data stored in the RAM 29.
【0028】請求項2に記載のメモリアクセス装置にお
いては、RAM29は、ストラクチャ形式のデータを記
憶するようにすることができる。従って、NVRAM3
に記憶されるデータと、RAM29に記憶されるデータ
の配置順をそれぞれ同一にすることができ、ブロック単
位でのデータ転送を行うことができる。In the memory access device according to the second aspect, the RAM 29 can store structure type data. Therefore, NVRAM3
The arrangement order of the data stored in the RAM 29 and the arrangement order of the data stored in the RAM 29 can be the same, and the data can be transferred in block units.
【0029】請求項3に記載のメモリアクセス装置にお
いては、TVマイコン1は、外部機器から供給を受けた
データを、NVRAN3に順に転送することができる。
従って、TVマイコン1の制御下で、外部に接続された
機器が記憶する初期化データを読み出し、TV内のNV
RAM3に書き込むことができる。In the memory access device according to the third aspect, the TV microcomputer 1 can sequentially transfer the data supplied from the external device to the NVRAN 3.
Therefore, under the control of the TV microcomputer 1, the initialization data stored in the externally connected device is read out and the NV in the TV is read.
It can be written in RAM3.
【0030】[0030]
【実施例】図1は、本発明のメモリアクセス装置を応用
したテレビジョン受像機(TV)のTVマイコン部の一
実施例の構成を示すブロック図である。TVマイコン部
11は、CPU(TVマイコン)1とNVRAM3から
なり、TVマイコン1とNVRAM3は、I2Cバス端
子5を介して、互いにデータの送受信を行うことができ
るようになされている。1 is a block diagram showing the configuration of an embodiment of a TV microcomputer section of a television receiver (TV) to which the memory access device of the present invention is applied. The TV microcomputer unit 11 includes a CPU (TV microcomputer) 1 and NVRAM 3, and the TV microcomputer 1 and NVRAM 3 can transmit and receive data to and from each other via the I 2 C bus terminal 5.
【0031】TVマイコン部11は、リモコン12から
のリモコンデータを受信し、所定の選局制御を行うよう
になされている。また、I2Cバス端子13を介して、
TVマイコン部11に接続された外部のパーソナルコン
ピュータ(PC)6に接続され、I2Cバス14を介し
て、データの送受信を行うことができるようになされて
いる。The TV microcomputer section 11 is adapted to receive remote control data from the remote control 12 and perform a predetermined tuning control. Also, via the I 2 C bus terminal 13,
It is connected to an external personal computer (PC) 6 connected to the TV microcomputer section 11, and can transmit and receive data via the I 2 C bus 14.
【0032】図2は、図1に示したTVマイコン1のよ
り詳細な構成を示すブロック図である。TVマイコン1
のリモコン受信処理部21は、リモコン12の内蔵する
発光部より発光される例えば赤外線を受信し、対応する
信号に変換するようになされている。OSD表示制御処
理部23は、内蔵OSD表示機能部24を制御し、フォ
ントROM25に記憶されている所定の文字または図形
のフォントデータを読み出し、対応するRGB信号に変
換した後、CRT26に供給するようになされている。FIG. 2 is a block diagram showing a more detailed structure of the TV microcomputer 1 shown in FIG. TV microcomputer 1
The remote control reception processing unit 21 is configured to receive, for example, infrared rays emitted from the light emitting unit built in the remote controller 12 and convert the infrared rays into a corresponding signal. The OSD display control processing unit 23 controls the built-in OSD display function unit 24 to read the font data of a predetermined character or graphic stored in the font ROM 25, convert it into the corresponding RGB signal, and then supply it to the CRT 26. Has been done.
【0033】アキュムレータ27は、所定の演算処理を
行うようになされている。ROM28は、システムプロ
グラム、アプリケーションプログラム、およびプログラ
ム制御用データを記憶し、さらに、後述するポインタテ
ーブルを記憶するようになされている。RAM29は、
ROM28に記憶されているアプリケーションプログラ
ムを展開し、実行したり、制御用データや、送信または
受信用バッファとして各種データを記憶蓄積するように
なされている。The accumulator 27 is adapted to perform a predetermined arithmetic processing. The ROM 28 stores a system program, an application program, and program control data, and further stores a pointer table described later. RAM29 is
The application program stored in the ROM 28 is expanded and executed, and various data is stored and accumulated as control data and a transmission or reception buffer.
【0034】PIO制御処理部30は、パラレルポート
(パラレルI/F)31を介して所定のデータを受信し
たり、またはパラレルポート31を介して所定のデータ
を送信するようになされている。SIO制御処理部32
は、シリアルポート(シリアルI/F)33を介して、
所定のデータを受信したり、またはシリアルポート33
を介して、所定のデータを送信するようになされてい
る。The PIO control processing section 30 is adapted to receive predetermined data via the parallel port (parallel I / F) 31 or transmit predetermined data via the parallel port 31. SIO control processing unit 32
Via the serial port (serial I / F) 33
Receives predetermined data, or serial port 33
Predetermined data is transmitted via the.
【0035】割込制御処理部34は、TVマイコン1の
割り込みの検出、優先順位の設定、レベル割り込みまた
はエッジ割り込みの切り換え、または割り込み許可若し
くは禁止の制御を行うようになされている。タイマ処理
部35は、所定のタイマ処理、カウンタ計測処理、また
はウオッチドッグタイマ処理などを行うようになされて
いる。The interrupt control processing unit 34 is adapted to detect interrupts of the TV microcomputer 1, set priorities, switch level interrupts or edge interrupts, or control interrupt enable or disable. The timer processing unit 35 is configured to perform predetermined timer processing, counter measurement processing, watchdog timer processing, and the like.
【0036】I2Cバス制御処理部36は、I2Cバス5
を介して、各種ICの制御を行うようになされている。The I 2 C bus control processing unit 36, the I 2 C bus 5
Various ICs are controlled via the.
【0037】また、TVマイコン1内の各部は、内部バ
ス22を介して接続され、互いに制御信号やデータの入
出力を行うことができるようになされている。The respective units in the TV microcomputer 1 are connected via an internal bus 22 so that they can mutually input / output control signals and data.
【0038】信号処理IC37は、I2Cバス5を介し
てTVマイコン1に接続され、I2Cバス制御処理部3
6の制御により、所定の信号処理を行うようになされて
いる。AV入出力処理IC38は、I2Cバス5を介し
てTVマイコン1に接続され、I2Cバス制御処理部3
6の制御により、AV信号の入出力を切り換えるように
なされているて。The signal processing IC 37 is connected to the TV microcomputer 1 via the I 2 C bus 5, and the I 2 C bus control processing unit 3
Under the control of 6, predetermined signal processing is performed. The AV input / output processing IC 38 is connected to the TV microcomputer 1 via the I 2 C bus 5, and the I 2 C bus control processing unit 3
By the control of 6, the input / output of the AV signal is switched.
【0039】不揮発性メモリ(NVRAM)3は、I2
Cバス5を介してTVマイコン1に接続され、I2Cバ
ス制御処理部36の制御により、初期化データ等を記憶
するようになされている。音量制御IC39は、I2C
バス5を介してTVマイコン1に接続され、I2Cバス
制御処理部36の制御により、音声信号の制御を行うよ
うになされている。TELETEXT処理IC40は、
I2Cバス5を介してTVマイコン1に接続され、I2C
バス制御処理部36の制御により、TELETEXT
(日本においては文字多重)放送の受信、または所定の
制御を行うようになされている。The nonvolatile memory (NVRAM) 3 is I 2
It is connected to the TV microcomputer 1 via the C bus 5 and stores initialization data and the like under the control of the I 2 C bus control processing unit 36. The volume control IC 39 is I 2 C
It is connected to the TV microcomputer 1 via the bus 5, and the audio signal is controlled by the control of the I 2 C bus control processing unit 36. The TELETEXT processing IC40
It is connected to the TV microcomputer 1 via the I 2 C bus 5, I 2 C
The TELETEXT is controlled by the bus control processing unit 36.
It is designed to receive (character multiplex in Japan) broadcasts or perform predetermined control.
【0040】I2Cバス端子13は、I2Cバス5を介し
てTVマイコン1より供給される制御データまたはデー
タを、そこに接続された外部機器に出力したり、外部機
器からのデータを入力するようになされている。The I 2 C bus terminal 13 outputs control data or data supplied from the TV microcomputer 1 via the I 2 C bus 5 to an external device connected thereto, or outputs data from the external device. It is designed to be entered.
【0041】次に、TVマイコン部11のNVRAM3
に、初期化データ(設定情報)を書き込む方法について
説明する。TVマイコン1のマイコン制御プログラムに
より使用される初期化データとしては、「チャンネル情
報」、「ボリューム音声情報」、「画質情報」、「偏向
系IC設定情報」、「TELETEXT用IC設定情
報」、「仕向地設定情報」、および「モデル別仕様設定
情報」などがある。Next, the NVRAM 3 of the TV microcomputer section 11
A method of writing the initialization data (setting information) will be described below. The initialization data used by the microcomputer control program of the TV microcomputer 1 include "channel information", "volume sound information", "image quality information", "deflection system IC setting information", "TELETEXT IC setting information", “Destination setting information” and “Specification setting information for each model”.
【0042】TVが出荷される場合、これらの情報のデ
ィフォルト値、または仕向地別の情報若しくはモデル別
の仕様情報が工場において書き込まれ、さらには、各種
TV映像設定情報などのディフォルト値が予め設定され
る。When the TV is shipped, default values of these information, destination-specific information or model-specific specification information are written in the factory, and further, default values such as various TV image setting information are preset. To be done.
【0043】TVマイコン1は、TVの電源スイッチが
オンにされると、最初に、NVRAM3に記憶されてい
るこれらのデータをRAM29に移し、RAM29に記
憶されたデータを参照して、TVの制御を行うようにし
ている。When the power switch of the TV is turned on, the TV microcomputer 1 first transfers these data stored in the NVRAM 3 to the RAM 29 and refers to the data stored in the RAM 29 to control the TV. I'm trying to do.
【0044】これは、一般的にNVRAM3のアクセス
スピードは遅く、各種設定値をNVRAM3より読み出
し、そのデータに基づいて各種ICの制御を行うように
すると、実用的な速度で処理を行うことができないた
め、TVの電源オン時に、NVRAM3に比較してアク
セススピードが速いRAM29に、NVRAM3のデー
タを転送し、RAM29内のデータが変更された場合の
み、そのデータに対応するNVRAM3内のデータの更
新処理を行うようにしている。This is because the access speed of the NVRAM 3 is generally slow, and if various set values are read from the NVRAM 3 and various ICs are controlled based on the data, processing cannot be performed at a practical speed. Therefore, when the power of the TV is turned on, the data in the NVRAM 3 is transferred to the RAM 29, which has a faster access speed than the NVRAM 3, and only when the data in the RAM 29 is changed, the data in the NVRAM 3 corresponding to the data is updated. I'm trying to do.
【0045】図1または図2に示すような構成のTVに
おいて、TV製造時に、NVRAM3に上述した初期化
データを書き込む方法として、まず、NVRAM3に直
接治工具を用いて書き込む方法が考えられる。As a method of writing the above-mentioned initialization data in the NVRAM 3 when manufacturing the TV in the TV having the configuration as shown in FIG. 1 or 2, first, a method of directly writing in the NVRAM 3 using a jig can be considered.
【0046】また、TVマイコン1が、I2Cバス14
または図示せぬ3線バス(シリアル双方向バス)を介し
て接続された外部機器、例えばパーソナルコンピュータ
(PC)6からの指令により、外部のPC6に記憶され
たデータを読み出し、NVRAM3に書き込む方法が考
えられる。Also, the TV microcomputer 1 uses the I 2 C bus 14
Alternatively, there is a method of reading data stored in the external PC 6 and writing the data in the NVRAM 3 in response to a command from an external device connected via a 3-wire bus (serial bidirectional bus) not shown, for example, a personal computer (PC) 6. Conceivable.
【0047】また、I2Cバス14を介して、PC6が
NVRAM3に直接データを書き込んだり、NVRAM
3から直接データを読み込む方法が考えられる。この方
法については、従来の技術のところで上述した。Further, the PC 6 directly writes data to the NVRAM 3 via the I 2 C bus 14 or the NVRAM 3
A method of directly reading the data from 3 can be considered. This method was described above in the prior art.
【0048】また、I2Cバス14を介して、PC6と
TVマイコン1が通信を行い、PC6から供給されるデ
ータを、TVマイコン1がNVRAM3に書き込んだ
り、またはPC6に記憶されているデータを読み出した
りする方法が考えられる。Further, the PC 6 and the TV microcomputer 1 communicate with each other via the I 2 C bus 14, and the data supplied from the PC 6 is written in the NVRAM 3 by the TV microcomputer 1 or stored in the PC 6. A method of reading out is conceivable.
【0049】さらに、TVマイコン1とPC6をI2C
バスなどで接続し、PC6に記憶されている初期化デー
タをTVマイコン1が読み出し、TVマイコン1が、T
Vマイコン部11のNVRAM3に書き込むようにする
方法が考えられる。Furthermore, the TV microcomputer 1 and the PC 6 are connected to I 2 C.
The TV microcomputer 1 reads out the initialization data stored in the PC 6 by connecting with the bus etc.
A method of writing to the NVRAM 3 of the V-microcomputer unit 11 can be considered.
【0050】図3(a)は、RAM29内のデータ記憶
領域をリロケータブルにした場合のデータの記憶アドレ
スを示した図である。このように、データが記憶されて
いるアドレスはラベル名により指定され、スタートアド
レスは、相対アドレスになっている。即ち、プログラム
作成(コーディング)時に、各データの領域や大きさを
データ番号順に定義し、コンパイルした後、リンカによ
りリンクするごく一般的な方法で、プログラム(実行モ
ジュール)を作成すると、このように、各データが、プ
ログラム作成時に領域指定したときとは異なるデータ番
号順で、RAM29内のデータ記憶領域に配置される場
合がある。FIG. 3A is a diagram showing data storage addresses when the data storage area in the RAM 29 is relocatable. Thus, the address where the data is stored is designated by the label name, and the start address is a relative address. That is, when creating (coding) a program, the areas and sizes of each data are defined in order of data numbers, and after compiling, a program (execution module) is created by a very general method of linking with a linker. The respective data may be arranged in the data storage area in the RAM 29 in the order of the data number different from that when the area is designated at the time of creating the program.
【0051】一方、図3(b)は、NVRAM3のデー
タ記憶領域のデータの記憶アドレスを示した図である。
このように、NVRAM3のスタートアドレスは00番
地に固定され、データはデータ番号順に記憶される。On the other hand, FIG. 3B is a diagram showing storage addresses of data in the data storage area of the NVRAM 3.
In this way, the start address of NVRAM 3 is fixed at address 00, and data is stored in the order of data numbers.
【0052】このように、RAM29に記憶されるデー
タのデータ順と、NVRAM3に記憶されるデータのデ
ータ順が異なるような場合、NVRAM3のデータをR
AM29に転送するとき、TVマイコン1内でこの処理
を行うのであれば、TVマイコン1が、NVRAM3に
記憶されたデータを順に読み出し、RAM29内の記憶
領域の所定のラベルに対応するアドレスにそれをコピー
するようにすればよい。In this way, when the data order of the data stored in the RAM 29 and the data order of the data stored in the NVRAM 3 are different, the data in the NVRAM 3 is read as R
If this processing is performed in the TV microcomputer 1 when transferring to the AM 29, the TV microcomputer 1 sequentially reads out the data stored in the NVRAM 3 and transfers it to an address corresponding to a predetermined label in the storage area in the RAM 29. Just copy it.
【0053】しかしながら、治具を用いてNVRAM3
に直接データを書き込むような場合、データの書き込み
順序を簡単に変えることができない。However, using the jig, the NVRAM 3
In the case of directly writing data to the HDD, the data writing order cannot be easily changed.
【0054】図4(a)は、Cコンパイラやリンカを用
いたリロケータブルなプログラム開発手法により、プロ
グラム(実行モジュール)を開発し、それをRAM29
に展開した場合、RAM29に配置される各データのア
ドレスを示した図である。このように、各データは、デ
ータ番号順とは異なる順に配置される。FIG. 4A shows that a program (execution module) is developed by a relocatable program development method using a C compiler and a linker, and the program is executed in the RAM 29.
FIG. 6 is a diagram showing addresses of respective data arranged in a RAM 29 when expanded to. In this way, each data is arranged in an order different from the data number order.
【0055】図4(b)は、治具を用いて、NVRAM
3に各データを記憶させた場合のデータ配置を示す図で
ある。このように、NVRAM3には、各データはデー
タ番号順に記憶される。FIG. 4B shows a NVRAM using a jig.
3 is a diagram showing a data arrangement when each data is stored in FIG. In this way, each data is stored in the NVRAM 3 in the order of the data number.
【0056】そこで、図4(c)に示すようなポインタ
テーブルをROM28に記憶させ、このテーブルに基づ
いて、RAM29とNVRAM3との間でデータの移動
を行うようにする。ポインタテーブルには、NVRAM
3に記憶されているデータ順に、各データが記憶されて
いるRAM29上での相対アドレス(ラベル名に対応す
るアドレス)と、データの大きさ(バイト数)が記述さ
れている。また、それらが、ポインタテーブル上に占め
る大きさは、各データが記憶されているRAM29上で
の相対アドレスが2バイト、データの大きさが1バイト
である。Therefore, a pointer table as shown in FIG. 4C is stored in the ROM 28, and data is moved between the RAM 29 and the NVRAM 3 based on this table. NVRAM in the pointer table
In the order of data stored in 3, the relative address (address corresponding to the label name) on the RAM 29 where each data is stored and the size of the data (number of bytes) are described. As for the size of each of them on the pointer table, the relative address on the RAM 29 where each data is stored is 2 bytes, and the size of the data is 1 byte.
【0057】例えば、TVの電源がオンにされたとき、
NVRAM3からRAM29へデータを転送する場合の
処理手順を、図5に示したフローチャートを参照して説
明する。For example, when the power of the TV is turned on,
A processing procedure for transferring data from the NVRAM 3 to the RAM 29 will be described with reference to the flowchart shown in FIG.
【0058】最初に、ステップS1において、図4
(c)に示したポインタテーブルのテーブル番号P00
1を、NVRAMリードポインタレジスタにセットす
る。次に、ステップS2に進み、ポインタテーブルの最
初のデータポインタ値、即ち、ラベルA001に対応す
るアドレスをデータポインタレジスタにセットする。First, in step S1, as shown in FIG.
Table number P00 of the pointer table shown in (c)
1 is set in the NVRAM read pointer register. Next, in step S2, the first data pointer value in the pointer table, that is, the address corresponding to the label A001 is set in the data pointer register.
【0059】次に、ステップS3に進み、ポインタテー
ブルの最初のテーブル番号のバイト数を読み出し、カウ
ンタレジスタにセットする。そして、ステップS4にお
いて、NVRAM3より、カウンタレジスタにセットさ
れたバイト数分のデータが読み出され、それが、データ
ポインタレジスタにセットされているデータポインタ値
(ラベルA001に対応するアドレス)により指定され
るRAM29の記憶領域に転送される。Next, in step S3, the number of bytes of the first table number in the pointer table is read and set in the counter register. Then, in step S4, the data for the number of bytes set in the counter register is read from the NVRAM 3 and is designated by the data pointer value (address corresponding to the label A001) set in the data pointer register. It is transferred to the storage area of the RAM 29.
【0060】次に、ステップS5に進み、データポイン
タレジスタに格納されているデータポインタ値に3だけ
加算される。これにより、データポインタ値は、次のテ
ーブル番号P002のアドレスを指定することになる。
そして、このアドレスに格納されているラベルA002
に対応するアドレスを読み出し、データポインタレジス
タに格納する。Next, in step S5, 3 is added to the data pointer value stored in the data pointer register. As a result, the data pointer value specifies the address of the next table number P002.
Then, the label A002 stored at this address
The address corresponding to is read and stored in the data pointer register.
【0061】次に、ステップS6において、テーブル番
号と各データのデータ数より、NVRAM3のアドレス
を計算し、NVRAMリードポインタレジスタに格納す
る。例えば、NVRAM3が1ワードあたり8ビットで
構成されている場合、ポインタテーブルのテーブル番号
5に対応するデータは、NVRAM3においては、テー
ブル番号1乃至4の各データのバイト数を加算して得ら
れるバイト数5を、NVRAM3のスタートアドレス0
番地に加算することにより得られるアドレス5に記憶さ
れていることがわかる。Next, in step S6, the address of the NVRAM 3 is calculated from the table number and the number of data of each data, and stored in the NVRAM read pointer register. For example, when the NVRAM 3 is composed of 8 bits per word, the data corresponding to the table number 5 of the pointer table is a byte obtained by adding the number of bytes of each data of the table numbers 1 to 4 in the NVRAM 3. Set the number 5 to the start address 0 of NVRAM3.
It can be seen that it is stored in the address 5 obtained by adding to the address.
【0062】同様に、ポインタテーブルのテーブル番号
2に対応するデータは、NVRAM3においては、テー
ブル番号1のデータのバイト数1を、NVRAM3のス
タートアドレス0番地に加算することにより得られるア
ドレス1に記憶されていることがわかる。いまの場合、
ポインタテーブルのテーブル番号2に対応するアドレス
1が、NVRAMリードポインタレジスタに格納され
る。Similarly, in the NVRAM 3, the data corresponding to the table number 2 of the pointer table is stored in the address 1 obtained by adding the byte number 1 of the data of the table number 1 to the start address 0 of the NVRAM 3. You can see that it is done. In the present case,
Address 1 corresponding to table number 2 of the pointer table is stored in the NVRAM read pointer register.
【0063】ステップS7においては、ポインタテーブ
ルに記載されているすべてのテーブルデータについて、
処理が終了したか否かが判定される。ポインタテーブル
に記載されているすべてのテーブルデータについて、処
理が終了したと判定された場合、処理を終了する。ポイ
ンタテーブルに記載されているすべてのテーブルデータ
について、処理が終了していないと判定された場合、ス
テップS8に進み、次のテーブル(いまの場合テーブル
番号P002)のバイト数(2バイト)を読み出し、カ
ウンタレジスタに格納する。In step S7, for all table data described in the pointer table,
It is determined whether the processing is completed. When it is determined that the processing has been completed for all the table data described in the pointer table, the processing is completed. When it is determined that the processing has not been completed for all the table data described in the pointer table, the process proceeds to step S8, and the number of bytes (2 bytes) of the next table (in this case, table number P002) is read. , Store in counter register.
【0064】次に、ステップS9に進み、NVRAM3
からカウンタレジスタに格納されているバイト数分だ
け、ステップS6で算出したNVRAM3のアドレス
(いまの場合1)から読み出し、データポインタレジス
タに格納されているデータポインタにより指示されるR
AM29内のアドレスに対応する記憶領域に転送され
る。Next, in step S9, NVRAM3
Is read from the address (1 in this case) of the NVRAM 3 calculated in step S6 by the number of bytes stored in the counter register, and R indicated by the data pointer stored in the data pointer register is read.
The data is transferred to the storage area corresponding to the address in the AM 29.
【0065】次に、ステップS5に戻り、ステップS5
乃至S9の処理を繰り返す。このようにして、NVRA
M3に記憶されているデータをRAM29の所定のデー
タ記憶領域に転送することができる。Next, returning to step S5, step S5
The processing from S9 to S9 is repeated. In this way, NVRA
The data stored in M3 can be transferred to a predetermined data storage area of the RAM 29.
【0066】次に、図4を参照して、RAM29に記憶
されているデータをNVRAM3に転送する手順につい
て説明する。最初に、図4(a)に示したRAM29の
データ記憶領域の中のラベルA001に対応するアドレ
スに格納されているデータを読み出す。RAM29のラ
ベルA001に対応するNVRAM3のテーブル番号
は、図4(c)に示すポインタテーブルより、P001
であるから、NVRAM3のスタートアドレスに、いま
RAM29のラベルA001に対応するアドレスから読
み出したデータを転送する。Next, referring to FIG. 4, the procedure for transferring the data stored in the RAM 29 to the NVRAM 3 will be described. First, the data stored at the address corresponding to the label A001 in the data storage area of the RAM 29 shown in FIG. The table number of the NVRAM 3 corresponding to the label A001 of the RAM 29 is P001 from the pointer table shown in FIG.
Therefore, the data read from the address corresponding to the label A001 of the RAM 29 is transferred to the start address of the NVRAM 3.
【0067】次に、RAM29のラベルA002に対応
するアドレスに格納されているデータを読み出す。RA
M29のラベルA002に対応するNVRAM3のテー
ブル番号は、ポインタテーブルよりP002であり、テ
ーブル番号P002以前のテーブル番号(いまの場合テ
ーブル番号P001)において定義されているバイト数
を加算する。いまの場合、テーブル番号P001におい
て定義されている1バイトである。即ち、NVRAM3
内の対応するアドレスは、NVRAM3のスタートアド
レス00に1だけ加算して得られるアドレス1である。Next, the data stored in the address corresponding to the label A002 of the RAM 29 is read. RA
The table number of the NVRAM 3 corresponding to the label A002 of M29 is P002 from the pointer table, and the number of bytes defined in the table number before the table number P002 (in this case, the table number P001) is added. In the present case, it is 1 byte defined in the table number P001. That is, NVRAM3
The corresponding address in is the address 1 obtained by adding 1 to the start address 00 of the NVRAM 3.
【0068】従って、NVRAM3のアドレス1に、い
まRAM29のラベルA002に対応するアドレスから
読みだしたデータを転送する。Therefore, the data read from the address corresponding to the label A002 of the RAM 29 is transferred to the address 1 of the NVRAM 3.
【0069】このようにして、RAM29内のデータを
順次、NVRAM3に転送することができる。In this way, the data in the RAM 29 can be sequentially transferred to the NVRAM 3.
【0070】また、ユーザの操作によりNVRAM3内
のデータを書き換える場合、まず、RAM29内の対応
するデータを変更する。次に、ROM28に格納されて
いるポインタテーブルより、いまRAM29において変
更したデータに対応するテーブル番号を取り出し、NV
RAM3の対応するアドレスを演算する。そして、RA
M29より、変更したデータを読み出し、それをいま演
算したNVRAM3のアドレスに書き込むようにする。When rewriting the data in the NVRAM 3 by the user's operation, first, the corresponding data in the RAM 29 is changed. Next, the table number corresponding to the data changed in the RAM 29 is retrieved from the pointer table stored in the ROM 28, and NV
The corresponding address of RAM3 is calculated. And RA
The changed data is read from M29, and the changed data is written in the calculated address of NVRAM3.
【0071】図6は、例えばTVマイコン部11に接続
されたPC6などの治具から、直接NVRAM3にデー
タを書き込む手順を示す図である。最初に、PC6側
で、書き込み開始スイッチをオンにする。書き込みスイ
ッチがオンにされると、PC6は、サービスモード(N
VRAM書き込みモード)開始に対応する信号を、図示
せぬ制御線を介してTVマイコン部11のTVマイコン
1のシリアルポート(シリアルIF)33に送信する。
そして、PC6は、I2Cバス14をスレーブモードに
する。これにより、TVマイコン部11より送信される
データが受信可能となる。FIG. 6 is a diagram showing a procedure for directly writing data to the NVRAM 3 from a jig such as the PC 6 connected to the TV microcomputer section 11, for example. First, the write start switch is turned on on the PC 6 side. When the write switch is turned on, the PC 6 operates in the service mode (N
A signal corresponding to the start of the VRAM write mode) is transmitted to the serial port (serial IF) 33 of the TV microcomputer 1 of the TV microcomputer unit 11 via a control line (not shown).
Then, the PC 6 sets the I 2 C bus 14 in the slave mode. As a result, the data transmitted from the TV microcomputer unit 11 can be received.
【0072】TVマイコン1は、SIO制御処理部32
の制御により、シリアルポート33を介してこの信号を
受信すると、ROM28内に格納されているポインタテ
ーブルデータを読み出し、内部バス22を介して、I2
Cバス制御処理部36に供給する。I2Cバス制御処理
部36は、この信号をI2Cバス5、I2Cバス端子1
3、およびI2Cバス14を介して、PC6側に送信す
る。そして、I2Cバス5をスレーブモードにする。こ
れにより、PC6より送信されるデータが受信可能とな
る。The TV microcomputer 1 includes the SIO control processing unit 32.
Under the control of, upon receiving this signal via the serial port 33, it reads the pointer table data stored in the ROM 28, via the internal bus 22, I 2
It is supplied to the C bus control processing unit 36. The I 2 C bus control processing unit 36 sends this signal to the I 2 C bus 5 and the I 2 C bus terminal 1.
3 and via the I 2 C bus 14 to the PC 6 side. Then, the I 2 C bus 5 is set to the slave mode. As a result, the data transmitted from the PC 6 can be received.
【0073】PC6は、NVRAM3に記憶されている
データの配置が、設計した時点におけるデータ配置に対
して変更がなければ、設計時のNVRAM3のデータ配
置に従って、NVRAM3内のデータを書き換えること
ができる。また、NVRAM3に記憶されているデータ
配置が、設計した時点におけるデータ配置に対して変更
があれば、このポインタテーブルデータより、NVRA
M3内のアドレスを演算し、NVRAM3内のデータを
書き換えることができる。The PC 6 can rewrite the data in the NVRAM 3 according to the data arrangement of the NVRAM 3 at the time of designing, if the arrangement of the data stored in the NVRAM 3 is not changed from the data arrangement at the time of designing. If the data arrangement stored in the NVRAM 3 is changed with respect to the data arrangement at the time of designing, NVRA can be calculated from the pointer table data.
The address in M3 can be calculated and the data in NVRAM3 can be rewritten.
【0074】図7は、例えば、C、またはアセンブラに
より作成したプログラム内で、データをストラクチャ形
式で定義し、それをコンパイルまたはアセンブルし、さ
らにリンクすることにより得られた実行モジュールのデ
ータのRAM29内における配置順を示している。スト
ラクチャ形式とは、例えば、C言語やアセンブラで使用
される構造体であり、そのメンバが連続した領域に取ら
れるようなデータ形式のことである。FIG. 7 shows, in a RAM 29 for data of an execution module obtained by defining data in a structure format, compiling or assembling it, and linking the data in a program created by, for example, C or an assembler. The arrangement order in FIG. The structure format is, for example, a structure used in the C language or assembler, and is a data format in which its members are taken in continuous areas.
【0075】このように、データをストラクチャ形式で
定義することにより、データを順にRAM29に配置す
ることができる。従って、RAM29内のデータの配置
順と、NVRAM3におけるデータの配置順を同一にす
ることができ、RAM29に記憶されているデータをN
VRAM3へ転送したり、あるいはNVRAM3に記憶
されているデータをRAM29に転送する場合、データ
が並んでいる順に転送することができる。By defining the data in the structure format as described above, the data can be sequentially arranged in the RAM 29. Therefore, the arrangement order of the data in the RAM 29 and the arrangement order of the data in the NVRAM 3 can be made the same, and the data stored in the RAM 29 can be stored in the N order.
When data is transferred to the VRAM 3 or data stored in the NVRAM 3 is transferred to the RAM 29, the data can be transferred in the order in which they are arranged.
【0076】これにより、生産時または出荷時に、従来
と同様の手順により、初期化データをNVRAM3に書
き込むことができる。ただし、この場合、NVRAM3
内のすべてのデータを1つのストラクチャ形式で定義す
る必要がある。このため、プログラム内でこのストラク
チャの各メンバに、直接書き込みを行う場合、記述が長
くなり、扱いにくくなる。As a result, the initialization data can be written in the NVRAM 3 at the time of production or shipment by the same procedure as the conventional one. However, in this case, NVRAM3
All the data in must be defined in one structure format. For this reason, when writing directly to each member of this structure in the program, the description becomes long and unwieldy.
【0077】これを改善するために、例えば、ストラク
チャの各メンバに対応する独立した名称のデータ変数を
定義し、電源がオンにされたとき、ストラクチャ形式の
データを、対応する独立した名称のデータ変数にコピー
するようにする。そして、TVマイコン1が、このデー
タを書き換える場合、各独立名称のデータ変数の値、ス
トラクチャ形式のデータ、およびNVRAM3内の対応
するデータすべてを書き換えるようにする。In order to improve this, for example, a data variable having an independent name corresponding to each member of the structure is defined, and when the power is turned on, the data in the structure format is changed to the data having the corresponding independent name. Make sure to copy it to a variable. Then, when the TV microcomputer 1 rewrites this data, the value of the data variable of each independent name, the data of the structure format, and all the corresponding data in the NVRAM 3 are rewritten.
【0078】その結果、プログラム内では、独立した名
称のデータ変数を用いて記述することができ、扱いやす
くなる。As a result, in the program, data variables having independent names can be used for description, and it becomes easy to handle.
【0079】次に、TVマイコン1の制御下で、治具
(PC)6より、初期化データをNVRAM3に書き込
む手順について説明する。Next, a procedure for writing the initialization data into the NVRAM 3 from the jig (PC) 6 under the control of the TV microcomputer 1 will be described.
【0080】図8に示すように、TVマイコン1にI2
Cバス5を介してNVRAM3が接続され、PC6が、
I2Cバス14、I2Cバス5を介して、TVマイコン1
に接続されている場合、図9に示すように、まず、PC
6の初期化開始を指示するための操作釦が操作される
と、PC6により、初期化開始を指示する制御信号が、
I2Cバス14、I2Cバス5を介して、TVマイコン1
に送信される。[0080] As shown in FIG. 8, I 2 to the TV microcomputer 1
The NVRAM 3 is connected via the C bus 5, and the PC 6
TV microcomputer 1 through I 2 C bus 14 and I 2 C bus 5
When connected to PC, first, as shown in FIG.
When the operation button for instructing the initialization start of 6 is operated, the control signal for instructing the initialization start by the PC 6
TV microcomputer 1 through I 2 C bus 14 and I 2 C bus 5
Sent to.
【0081】TVマイコン1は、PC6より、I2Cバ
ス5を介して、初期化開始を指示する制御信号を受信す
ると、PC6内の例えば図示せぬメモリに記憶されてい
る初期化データを、I2Cバス5、I2Cバス14を介し
て読み出し、読み出したデータをI2Cバス5を介して
NVRAM3の所定のアドレスに書き込む。When the TV microcomputer 1 receives from the PC 6 a control signal for instructing the start of initialization via the I 2 C bus 5, it initializes the initialization data stored in a memory (not shown) in the PC 6, The data is read via the I 2 C bus 5 and the I 2 C bus 14, and the read data is written to a predetermined address of the NVRAM 3 via the I 2 C bus 5.
【0082】この場合、TVマイコン1のRAM29内
のデータの配置順と、NVRAM3のデータの配置順
は、上述したように、一致させる必要はないので、TV
マイコン1は、PC6のメモリに記憶されている初期化
データを順に読み出し、NVRAM3に転送するように
すればよい。In this case, the arrangement order of the data in the RAM 29 of the TV microcomputer 1 and the arrangement order of the data in the NVRAM 3 do not have to be the same as described above.
The microcomputer 1 may sequentially read the initialization data stored in the memory of the PC 6 and transfer it to the NVRAM 3.
【0083】また、図10に示すように、初期化開始に
対応する釦がTVマイコン1側にあり、TVマイコン1
が初期化開始を行う場合、まず、TVマイコン1の初期
化釦が操作される。次に、TVマイコン1より、PC6
内のメモリに記憶されている初期化データが、I2Cバ
ス5、I2Cバス14を介して読み出される。Further, as shown in FIG. 10, the button corresponding to the start of initialization is provided on the TV microcomputer 1 side.
When the initialization starts, the initialization button of the TV microcomputer 1 is first operated. Next, from the TV microcomputer 1, PC6
The initialization data stored in the internal memory is read out via the I 2 C bus 5 and the I 2 C bus 14.
【0084】そして、読み出された初期化データが、I
2Cバス5を介してNVRAM3に書き込まれる。Then, the read initialization data is I
2 Written to NVRAM 3 via C bus 5.
【0085】次に、図11に示すように、TVマイコン
1とNVRAM3がI2Cバス5を介して接続され、T
Vマイコン1と治具(PC)6が、所定の信号線51を
介して、TVマイコン1のシリアルポート(SIO(シ
リアルIF))33に接続されている場合、図9に示す
ように、まず、PC6の初期化開始に対応する釦が操作
されると、PC6から、初期化開始を指示する制御信号
が、信号線51を介して、TVマイコン1のシリアルポ
ート33に供給される。Next, as shown in FIG. 11, the TV microcomputer 1 and the NVRAM 3 are connected via the I 2 C bus 5, and T
When the V-microcomputer 1 and the jig (PC) 6 are connected to the serial port (SIO (serial IF)) 33 of the TV microcomputer 1 via a predetermined signal line 51, first, as shown in FIG. , When the button corresponding to the initialization start of the PC 6 is operated, a control signal instructing the initialization start is supplied from the PC 6 to the serial port 33 of the TV microcomputer 1 via the signal line 51.
【0086】TVマイコン1のシリアルポート33に初
期化開始を指示する制御信号が給されると、TVマイコ
ン1は、信号線51を介して、PC6より初期化データ
を読み出し、読み出した信号を、I2Cバス5を介し
て、NVRAM3に供給する。その結果、NVRAM3
の所定のアドレスに初期化データが書き込まれる。When a control signal instructing the start of initialization is supplied to the serial port 33 of the TV microcomputer 1, the TV microcomputer 1 reads the initialization data from the PC 6 via the signal line 51, and outputs the read signal. It is supplied to the NVRAM 3 via the I 2 C bus 5. As a result, NVRAM3
Initialization data is written in a predetermined address of.
【0087】また、TVマイコン1に初期化開始を指示
する釦が設けられた場合、図10に示すように、TVマ
イコン1の初期化開始を指示する釦が操作されると、T
Vマイコン1は、PC6内の図示せぬメモリに記憶され
ている初期化データを、信号線51を介して読み出し、
I2Cバス5を介して、NVRAM3に転送する。そし
て、NVRAM3の所定のアドレスに初期化データが書
き込まれる。Further, when the TV microcomputer 1 is provided with a button for instructing the initialization start, as shown in FIG. 10, when the button for instructing the initialization start of the TV microcomputer 1 is operated, T
The V-microcomputer 1 reads the initialization data stored in the memory (not shown) in the PC 6 through the signal line 51,
Transfer to the NVRAM 3 via the I 2 C bus 5. Then, the initialization data is written in a predetermined address of the NVRAM 3.
【0088】なお、上記実記例においては、電気的に再
書き込みが可能なRAMであるNVRAMを用いたが、
CPUに内蔵されたNVRAMを用いることもできる
し、バッテリによりバックアップされたRAM、または
大容量かつ低電流漏洩コンデンサによりバックアップさ
れたRAMを用いることも可能である。In the above-mentioned practical example, the NVRAM which is an electrically rewritable RAM is used.
An NVRAM built in the CPU can be used, or a RAM backed up by a battery or a RAM backed up by a large capacity and low current leakage capacitor can be used.
【0089】また、上記実施例においては、外部機器と
の接続にI2Cバスを用いたが、3線バス、またはパラ
レルバスを用いるようにすることもできる。Further, in the above embodiment, the I 2 C bus is used for the connection with the external device, but it is also possible to use the 3-wire bus or the parallel bus.
【0090】また、上記実施例においては、TVのマイ
コンに応用した場合を説明したが、TV以外にも、VT
R(ビデオテープレコーダ)、CD(コンパクトディス
ク)、またはラジオ等、あらゆる家電製品に応用するこ
とができる。また、生産時や出荷時に限らず、修理の際
にも応用することができる。Further, in the above-mentioned embodiment, the case where the invention is applied to the microcomputer of the TV is explained.
It can be applied to all home appliances such as R (video tape recorder), CD (compact disc), and radio. Further, it can be applied not only at the time of production or shipping but also at the time of repair.
【0091】さらに、ROM内のポインタテーブルデー
タをPCに送信する場合、各テーブル内のアドレスまた
はバイト数以外に、各テーブル毎にラベル名をアスキー
形式で定義し、それをPCに送るようにすることができ
る。その結果、具体的なデータ名をPCに送ることがで
きるため、データ名による比較が行え、アドレスの比較
処理を簡単にすることができる。Further, when transmitting the pointer table data in the ROM to the PC, the label name is defined in ASCII format for each table in addition to the address or the number of bytes in each table, and it is sent to the PC. be able to. As a result, since a specific data name can be sent to the PC, comparison by data name can be performed, and address comparison processing can be simplified.
【0092】[0092]
【発明の効果】請求項1に記載のメモリアクセス装置に
よれば、第1記憶手段により、所定の大きさを有する1
つまたは複数のデータが記憶され、記憶されたデータが
絶対アドレスによりアクセスされる。また、第2記憶手
段により、データがランダムに記憶され、記憶されたデ
ータが相対アドレスによりアクセスされる。また、ポイ
ンタテーブル記憶手段により、第1記憶手段に記憶され
ているデータ順に、第2記憶手段に記憶されているこの
データの相対アドレスと大きさが記述されたポインタテ
ーブルが記憶される。また、対応手段により、ポインタ
テーブル記憶手段に記憶されたデータの大きさに基づい
て、このデータが記憶される第1記憶手段のアドレス
と、第2記憶手段のアドレスが対応付けられ、さらに、
転送手段により、所定のデータが記憶される第1記憶手
段のアドレスと、第2記憶手段のアドレスに基づいて、
このデータを第1記憶手段から第2記憶手段へ、または
第2記憶手段から第1記憶手段へ転送するようにしたの
で、第1記憶手段に記憶させるデータの配置順は、第2
記憶手段に記憶されるデータの配置順に拘らず固定にす
ることができる。従って、仕様の異なる製品であって
も、第1記憶手段に記憶させるデータの配置順を同一と
することができるため、互換性を持たせることができ、
生産性を高めることが可能となる。According to the memory access device of the first aspect, the first storage means has a predetermined size of 1
One or more data is stored and the stored data is accessed by an absolute address. Further, the second storage means randomly stores the data, and the stored data is accessed by the relative address. Further, the pointer table storage means stores a pointer table in which the relative address and size of this data stored in the second storage means are described in the order of the data stored in the first storage means. Further, the correspondence means associates the address of the first storage means for storing this data with the address of the second storage means based on the size of the data stored in the pointer table storage means, and further,
Based on the address of the first storage means for storing the predetermined data by the transfer means and the address of the second storage means,
Since this data is transferred from the first storage means to the second storage means or from the second storage means to the first storage means, the arrangement order of the data stored in the first storage means is the second order.
It can be fixed regardless of the arrangement order of the data stored in the storage means. Therefore, even if the products have different specifications, the arrangement order of the data to be stored in the first storage means can be made the same, so that the compatibility can be provided.
It is possible to increase productivity.
【0093】請求項2に記載のメモリアクセス装置によ
れば、第2記憶手段は、ストラクチャ構造のデータを記
憶するようにすることができるようにしたので、第1記
憶手段に記憶されるデータと、第2記憶手段に記憶され
るデータの配置順をそれぞれ同一にすることができ、ブ
ロック単位でのデータ転送を行うことが可能となる。従
って、比較的簡単に、データ転送を行うことができる。According to the memory access device of the second aspect, since the second storage means can store the data of the structure structure, the data stored in the first storage means , The arrangement order of the data stored in the second storage means can be made the same, and the data can be transferred in block units. Therefore, data transfer can be performed relatively easily.
【0094】請求項3に記載のメモリアクセス装置によ
れば、データ転送手段は、外部機器から供給を受けたデ
ータを第1記憶手段に順に転送するようにしたので、デ
ータ転送手段の制御下で、外部に接続された機器が記憶
する初期化データを読み出し、それを順に第1記憶手段
に書き込むことができる。According to the memory access device of the third aspect, since the data transfer means transfers the data supplied from the external device to the first storage means in order, it is controlled by the data transfer means. The initialization data stored in the externally connected device can be read and written in the first storage means in order.
【図1】本発明のメモリアクセス装置を応用したテレビ
ジョン受像機のTVマイコン部11とPC6の接続図で
ある。FIG. 1 is a connection diagram of a TV microcomputer unit 11 and a PC 6 of a television receiver to which a memory access device of the present invention is applied.
【図2】図1のCPU(TVマイコン)1の詳細な構成
を示す図である。FIG. 2 is a diagram showing a detailed configuration of a CPU (TV microcomputer) 1 in FIG.
【図3】リロケータブルにしたRAM29のデータ配置
と、NVRAM3のデータ配置を示す図である。FIG. 3 is a diagram showing a data arrangement of a relocatable RAM 29 and a data arrangement of an NVRAM 3.
【図4】RAM29のデータ配置、NVRAM3のデー
タ配置、およびROM28内のポインタテーブルを示す
図である。FIG. 4 is a diagram showing a data arrangement of a RAM 29, a data arrangement of an NVRAM 3, and a pointer table in a ROM 28.
【図5】電源オン時に、TVマイコン1がNVRAM3
の初期化データをRAM29に転送する手順を示すフロ
ーチャートである。[FIG. 5] When the power is turned on, the TV microcomputer 1 has the NVRAM 3
5 is a flowchart showing a procedure for transferring the initialization data of the above to the RAM 29.
【図6】PC6よりNVRAM3にデータを書き込む手
順を示す図である。FIG. 6 is a diagram showing a procedure of writing data from the PC 6 to the NVRAM 3.
【図7】データをストラクチャ形式にした場合のRAM
29内のデータ配置と、NVRAM3内のデータ配置を
示す図である。FIG. 7: RAM when data is structured
It is a figure which shows the data arrangement in 29, and the data arrangement in NVRAM3.
【図8】PC6とTVマイコン1をI2Cバス5,14
を介して接続するようにした場合の図である。[FIG. 8] PC 6 and TV microcomputer 1 are connected to an I 2 C bus 5, 14
It is a figure at the time of connecting via via.
【図9】PC6に初期化開始制御釦が設けられた場合の
手順を示す図である。FIG. 9 is a diagram illustrating a procedure when an initialization start control button is provided on the PC 6.
【図10】TVマイコン1に初期化開始制御釦が設けら
れた場合の手順を示す図である。FIG. 10 is a diagram showing a procedure when the TV microcomputer 1 is provided with an initialization start control button.
【図11】PC6とTVマイコン1を信号線41を介し
て接続するようにした場合の図である。11 is a diagram showing a case where the PC 6 and the TV microcomputer 1 are connected via a signal line 41. FIG.
【図12】従来のメモリアクセス装置の一例の構成を示
す図である。FIG. 12 is a diagram showing a configuration of an example of a conventional memory access device.
【図13】従来のNVRAM3へのデータの書き込み手
順を示す図である。FIG. 13 is a diagram showing a procedure for writing data to the conventional NVRAM 3.
【図14】従来のRAMとNVRAMのデータ配置を示
す図である。FIG. 14 is a diagram showing a data arrangement of a conventional RAM and NVRAM.
【図15】1ワードあたり8ビット、または16ビット
構成のNVRAMのデータ配置を示す図である。FIG. 15 is a diagram showing a data arrangement of NVRAM having 8 bits or 16 bits per word.
1 TVマイコン 2 PIO(パラレルIF(パラレルポート)) 3 NVRAM 4 信号線4 5 I2Cバス 6 PC 11 TVマイコン部 12 リモコン 13 I2Cバス端子 14 I2Cバス 22 CPU内部バス(内部バス) 23 OSD表示制御処理部 24 内蔵OSD表示機能部 25 フォントROM 26 CRT 27 アキュムレータ 28 ROM 29 RAM 30 PIO制御処理部 32 SIO制御処理部 33 シリアルIF 34 割込制御処理部 35 タイマ処理部 36 I2Cバス制御処理部 37 信号処理IC 38 AV入出力処理IC 39 音量制御IC 40 TELETEXT処理IC 51 信号線1 TV microcomputer 2 PIO (parallel IF (parallel port)) 3 NVRAM 4 signal line 4 5 I 2 C bus 6 PC 11 TV microcomputer section 12 remote controller 13 I 2 C bus terminal 14 I 2 C bus 22 CPU internal bus (internal bus) ) 23 OSD display control processing unit 24 Built-in OSD display function unit 25 Font ROM 26 CRT 27 Accumulator 28 ROM 29 RAM 30 PIO control processing unit 32 SIO control processing unit 33 Serial IF 34 Interrupt control processing unit 35 Timer processing unit 36 I 2 C bus control processing unit 37 signal processing IC 38 AV input / output processing IC 39 volume control IC 40 TELETEXT processing IC 51 signal line
Claims (3)
データを記憶し、前記データが絶対アドレスによりアク
セスされる第1記憶手段と、 前記データをランダムに記憶し、前記データが相対アド
レスによりアクセスされる第2記憶手段と、 前記第1記憶手段に記憶されている前記データ順に、前
記第2記憶手段に記憶されている前記データの相対アド
レスと大きさが記述されたポインタテーブルを記憶する
ポインタテーブル記憶手段と、 前記ポインタテーブル記憶手段に記憶された前記データ
の大きさに基づいて、前記データが記憶される前記第1
記憶手段のアドレスと、前記第2記憶手段のアドレスを
対応付ける対応手段と、 前記対応手段により対応付けられた前記データが記憶さ
れる前記第1記憶手段のアドレスと、前記第2記憶手段
のアドレスに基づいて、前記データを前記第1記憶手段
から前記第2記憶手段へ、または前記第2記憶手段から
前記第1記憶手段へ転送するデータ転送手段とを備える
ことを特徴とするメモリアクセス装置。1. A first storage means for storing one or more data having a predetermined size, the data being accessed by an absolute address, the data being randomly stored, and the data being stored by a relative address. A second storage means to be accessed and a pointer table in which the relative address and size of the data stored in the second storage means are described in the order of the data stored in the first storage means. Pointer table storage means, and the first data stored based on the size of the data stored in the pointer table storage means
Addressing means for associating addresses of the memory means with addresses of the second memory means, address of the first memory means for storing the data associated by the memory means, and address of the second memory means And a data transfer unit for transferring the data from the first storage unit to the second storage unit or from the second storage unit to the first storage unit based on the data access unit.
のデータを記憶することを特徴とする請求項1に記載の
メモリアクセス装置。2. The memory access device according to claim 1, wherein the second storage unit stores structure type data.
給を受けた前記データを前記第1記憶手段に順に転送す
ることを特徴とする請求項1または2に記載のメモリア
クセス装置。3. The memory access device according to claim 1, wherein the data transfer unit sequentially transfers the data supplied from an external device to the first storage unit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6195081A JPH0865625A (en) | 1994-08-19 | 1994-08-19 | Memory access device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6195081A JPH0865625A (en) | 1994-08-19 | 1994-08-19 | Memory access device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0865625A true JPH0865625A (en) | 1996-03-08 |
Family
ID=16335241
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP6195081A Withdrawn JPH0865625A (en) | 1994-08-19 | 1994-08-19 | Memory access device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0865625A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6691199B1 (en) | 2000-03-30 | 2004-02-10 | Fujitsu Limited | Remote-control connection control device controlled by stored digital signals |
| US8327068B2 (en) * | 2005-03-03 | 2012-12-04 | Panasonic Corporation | Memory module, memory controller, nonvolatile storage, nonvolatile storage system, and memory read/write method |
-
1994
- 1994-08-19 JP JP6195081A patent/JPH0865625A/en not_active Withdrawn
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6691199B1 (en) | 2000-03-30 | 2004-02-10 | Fujitsu Limited | Remote-control connection control device controlled by stored digital signals |
| US8327068B2 (en) * | 2005-03-03 | 2012-12-04 | Panasonic Corporation | Memory module, memory controller, nonvolatile storage, nonvolatile storage system, and memory read/write method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100408021B1 (en) | Interface apparatus and method for lcd system | |
| JP2002278781A (en) | Storage device, storage device control method, and program | |
| JPH10116187A (en) | Microcomputer | |
| KR100782594B1 (en) | Memory device with data processing function | |
| JPH0865625A (en) | Memory access device | |
| US5166928A (en) | Communication system comprising a communication line monitor for monitoring a communication line | |
| KR20080075729A (en) | Display | |
| JP3544734B2 (en) | Multi-panel parameter initialization setting device and initialization setting method | |
| US7315905B2 (en) | Software controlled hard reset of mastering IPS | |
| JP2892609B2 (en) | Factory mode setting device | |
| JPH11177588A (en) | Electronic equipment and data communication method | |
| JPH06187015A (en) | Sequencer program converter | |
| JPH10210058A (en) | Electronic device and control method thereof | |
| JP3500100B2 (en) | Display device program rewriting method | |
| US20010054125A1 (en) | Data processing system and bus cycle control method | |
| EP1267260A2 (en) | Program executing device and method for executing programs | |
| JP2003051962A (en) | Remote controller, control signal transmission method, control signal learning method, program, and control system | |
| JP2000172917A (en) | Controller for vending machine | |
| KR20010050454A (en) | Information processing apparatus and method | |
| JPH10198407A (en) | Programmable controller and data area expansion method thereof | |
| EP0511793A1 (en) | System for data communication on automobile | |
| JPH082756Y2 (en) | Image processing device | |
| JP2002149625A (en) | Method for controlling microcomputer | |
| JP2588514Y2 (en) | Communication control device | |
| JPH0865497A (en) | Image processing system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20011106 |