版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、PAGE Microcontroller Integrated Circuit with Read Only MemoryMicrocontroller integrated circuit comprises a processor core which exchanges data with at least one data processing and storage device. The integrated circuit comprises a mask-programmed read only memory containing a generic program such
2、as a test program which can be executed by the microcontroller. The genetic program includes a basic function for writing data into the data progressing or storage device or devices. The write function is used to load a downloading program. Because a downloading program is not permanently stored in
3、the read only memory, the microcontroller can be tested independently of the application program, and remains standard with regard to the type of memory component with which it can be used in a system.To be more precise, the invention concerns a microcontroller integrated circuit. A microcontroller
4、is usually a VLSI (Very Large Scale Integration) integrated circuit containing all or most of the components of a computer. Its function is not predefined but depends on the program that it executes.A microcontroller necessarily comprises a processor core including a command sequencer (which is a de
5、vice distributing various control signals to the instructions of a program), an arithmetic and logic unit (for processing the data) and registers (which are specialized memory units). The other components of the computer can be either internal or external to the microcontroller, however. In other wo
6、rds, the other components are integrated into either the microcontroller or auxiliary circuits.These other components of the computer are data processing and storage devices, for example read only or random access memory containing the program to be executed, clocks and interfaces (serial or paralle
7、l).As a general rule, a system based on a microcontroller therefore comprises a microchip containing the microcontroller, and a plurality of microchips containing the external data processing and storage devices which are not integrated into the microcontroller. A microcontroller-based system of thi
8、s kind comprises, for example, one or more printed circuit boards on which the microcontroller and the other components are mounted.It is the application program, I. e. the program which is executed by the microcontroller, which determines the overall operation of the microcontroller system. Each ap
9、plication program is therefore specific to a separate application.In most current applications the application program is too large to be held in the microcontroller and is therefore stored in a memory external to the microcontroller. This program memory, which has only to be read, not written, is g
10、enerally a reprogrammable read only memory (REPROM).After the application program has been programmed in memory and then started in order to be executed by the microcontroller, the microcontroller system may not function as expected.In the last unfavorable situation this is a minor dysfunction of th
11、e system and the microcontroller is still able to dialog with a test station via a serial or parallel interface. This test station is then able to determin the nature of the problem and indicates precisely the type of correction (software and physical) to be applied to the system for it to operate c
12、orrectly.Unfortunately, most dysfunctions of microcontroller-based system result in a total system lock-up, preventing any dialog with a test station. It is then impossible to determine the type of fault, i.e. whether it is a physical fault (in the microcontroller itself, in an external read only me
13、mory, in a peripheral device, on a bus, etc) or a software fault(i.e. an error in the application program).The troubleshooting technique usually employed in these cases of total lock-up is based on the use of sophisticated test devices requiring the application of probes to the pins of the various i
14、ntegrated circuits of the microcontroller-based system under test.There are various problems associated with the use of such test devices for troubleshooting a microcontroller-based system. The probes used in these test devices are very fragile, difficult to apply because of the small size of the ci
15、rcuit and their close packing, and may not make good contact with the circuit.Also, because of their high cost, these test devices are not mass produced. Consequently, faulty microcontroller-based systems can not be repaired immediately, wherever they happen to be located at the time, but must first
16、 be returned to a place where a test device is available. Troubleshooting a microcontroller-based system in this way is time-consuming, irksome and costly.To avoid the need for direct action on the microcontroller-based system each time the application program executed by the microcontroller of the
17、system is changed, it is standard practice to use a downloadable read only memory to store the application program, a loading program being written into a mask-programmed read only memory of the microcontroller. The mask-programmed read only memory of the microcontroller is integrated into the micro
18、controller and programmed once and for all during manufacture of the microcontroller.To change the application program the microcontroller is reset by running the downloading program. This downloading program can then communicate with a workstation connected to the microcontroller by an appropriate
19、transmission line, this workstation the new application program to be written into the microcontroller. The downloading program receives the new application program and loads it into a read only memory external to the microcontroller.Although this solution avoids the need for direct action on the mi
20、crocontroller-based system (which would entail removing from the system the reprogrammable read only memories containing the application program, writing into these memories the new application program using an appropriate programming device and then replacing them in the system), it nevertheless ha
21、s a major drawback, namely specialization of the microcontroller during manufacture.Each type of reprogrammable memory is associated with a different downloading program because the programming parameters (voltage to be applied, duration for which the voltage is to be applied) vary with the technolo
22、gy employed. The downloading program is written once and for all into the mask-programmed internal memory of the microcontroller and the latter is therefore restricted to using memory components of the type for which this downloading program was written. In other words, the microcontroller is not a
23、standard component and this increases its cost of manufacture.One object of the invention is to overcome these various drawbacks of the prior art. To be more precise, an object of the invention is to provide a microcontroller circuit which can verify quickly, simply, reliably and at low cost the ope
24、ration of a system based on the microcontroller.Another object of the invention is to provide a microcontroller integrated circuit which can accurately locate the defective component or components of a system using the microcontroller in the event of dysfunction of the system.A further object of the
25、 invention is to provide a microcontroller integrated circuit which avoids the need for direct action on the microcontroller-based system to change the application program, whilst remaining standard as regards the type of memory component with which it can be used in a system. 带有只读存储器的单片机集成电路(jchng-
26、dinl)单片机集成电路包含一个处理器内核,它至少通过一种数据处理或存储设备来交换数据。集成电路包含一个只读掩模程序存储器,其中像测试程序一样的通用程序能被单片机执行。这种通用程序具有将数据写到数据处理和、或存储设备的基本功能(gngnng)。写入功能用于装载程序。因为装载程序并非永久地存储在只读存储器中,所以可对单片机进行测试,而与应用程序无关,并保持系统中能用的存储器元件为标准类型。准确地说,这项发明(fmng)涉及单片机集成电路。单片机通常是包含一台“计算机”的全部或大部分元件的大规模集成电路,其功能不是预先确定的,而是取决于它执行的程序。一台单片机必然包含一个含有命令时序发生器(即根据
27、程序的指令分配各种控制信号到其他元件的装置)的处理器内核,一个算数逻辑单元(用来处理数据)和寄存器(即特殊的存储单元)。然而,“计算机”的其他单元对单片机而言或是内部的,或是外部的。换言之,其他元件就集成到单片机或辅助电路中。“计算机”的这些其他元件是数据处理或存储装置,例如包含待执行程序的只读或随机存储器、时钟和接口(串行或并行)。基于单片机的系统通常包含一个含有单片机的芯片和许多含有外部数据处理和、或存储器的芯片,这些芯片没有集成在单片机中。例如,这种基于单片机的系统包含一个或多个印刷电路板,上面安装着单片机和其他元件。决定单片机所有操作的是应用程序,即由单片机执行的程序。因此,每个应用程序都是针对特定的应用的。在多数现实应用中,由于应用程序太大,单片机无法存储,因此就存储在单片机的外部存储器中。这种只读处而不能写入的程序存储器通常就是可编程只读存储器。应用程序在写入到存储器中后就开始执行,以便由单片机来执行。单片机系统有可能不会像预期的那样工作。在最不顺的情况下,这只是系统的小故障,单片机仍然能够通过串行或并行口与测试设备对话。测试设备就能够确定问题的性质,并准确的指出校正的类型(软件和硬件),将其应用到系统上,以便正确操作。遗憾的是,基于单片机系统的多数故障导致整个系统死锁,阻止了任何与测试设备的对话(duhu)。这样就不能确定错误类型时
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
评论
0/150
提交评论