• In OTPROM monolithic integrated circuit internal memory’s applications research

        Along with the frequency conversion velocity modulation as well as the microcomputer control technology’s development, adapts motor control Intel the 8XC196MC series monolithic integrated circuit application to be getting more and more widespread.
     
        Compares with 80C196MC, the 87C196MC monolithic integrated circuit has 16 KB OTPROM (One Tline Programmable Read-Only Memory), may carry on the internal programming operation, moreover may strengthen the encryption function. Regarding the ordinary control system, its storage capacity is big enough, does not need to use the exterior expanded memory unit again. However 87C196MC monolithic integrated circuit’s OTPROM has a shortcoming: Cannot clean, i.e. can only program one time, cannot realize the redundant programming, does not favor the massive popularization use.

        When the procedure transplants from the simulator to monolithic integrated circuit’s OTPROM, cannot guarantee the procedure a success, as a result of the monolithic integrated circuit may not the cleaning, if the procedure off-line one time uses a piece of monolithic integrated circuit, will obviously create the giant resources waste. On the other hand, regarding complicated system, 16KB OTPROM capacity, if is insufficient, then needs to use expands the exterior memory, to guarantee that realizes the encryption function effectively, should retain subprograms in internal OTPROM, this time then involves to the monolithic integrated circuit, external memory’s engagement question.

        This article in view of Intel the 87C196MC monolithic integrated circuit interior memory could not the cleaning, provide to two kind of situation use questions has been possible to realize the redundant programming method effectively, and might promote to other any has in the OTPROM monolithic integrated circuit series programming application.

    1 87C196MC monolithic integrated circuit interior memory’s programming way
        Intel the 87C196MC monolithic integrated circuit supports three programming ways: The automatic programming way (caused the 87C196MC monolithic integrated circuit not to need the EPROM programmer then from exterior EPROM to own programming), (to provide a standard interface from machine the programming way to the exterior EPROM programmer) and the real-time programming way (in movement programs way, might under software control real-time to single EPROM unit programming). Is different with other ways, the real-time programming may, in does not enter under the entire EPROM programming way to complete.

        Can only program regarding Intel 87C196MC monolithic integrated circuit’s OTPROM, cannot clean, but in programming time may confirm whether to have programmed truly. May use 2 programming methods to 0TPROM: In programs from machine the programming way or under the special OTPROM programming way. OTPROM was the 87C196MC monolithic integrated circuit has provided the auxiliary memory protection method, it might forbid exterior the bus control unit execution to take refers to the cycle, if attempted an exterior address to load to the PC register, the chip will reposition. This kind of automatic reset function to ran the code which flew also to provide one extra restoration method. When use should adopt the different programming way according to the actual need.

    2 87C196MC monolithic integrated circuit interior memory’s redundant programming method
        The monolithic integrated circuit 87C196MC EA pin (the exterior visit permission end, 87C196MC the PLCC84-36 foot) uses for to control visits the internal memory or the exterior memory. When EA=O, all visits are to the piece external memory; When EA=1, visit to 2000H~5FFFH unit’s is to internal OTPROM/ROM. Programs under the way, EA=12.5 V. Because repositions time the EA level is locked saves, realizes the procedure space choice with difficulty through the external hardware electric circuit. Here through the application procedure statement control procedure address range, is equal to the EA level fluctuation function. This article mainly applied Intel assembly language long skipping instruction UMP to realize in the control visit, external memory’s function, below introduces two commonly used methods.

    2.1 internal programming operating procedure
        So-called 87C196MC monolithic integrated circuit OTPROM may not the cleaning, materially not be possible to realize from “0″ “1″ programming, but can only complete from “1″ “O” programming. The following introduced through the simple procedure example
    This method.
    LJMP NEXTl
    CSEG AT 2600H
    NEXTl: ……

        What the above sentence in fact represents is the LJMP2600H. its machine code is E79C04, when address 2600H change, obtains machine code which a group corresponds, through carries on the analysis to this group of machine code, may obtain this method principle, like Table 1 arranges in order.

        The machine code E79C04 latter two bytes represented in the assembly program sentence address (04 to represent 2600H,14 to represent 3600H ……). When a byte is “1″ turns 4 from 4 is “O”, and each time only then “l” becomes “0″ time, may have many kinds of different political reform, like Table 2 arrange in order.

        Because 87C196MC monolithic integrated circuit’s OTPROM can only complete from “1″ “O” programming, but the 87C196MC monolithic integrated circuit’s procedure from 2000H starts to carry out, therefore may after the procedure from 2000H carries out young Duan carries on skipping, for example first jumps to 4100H (corresponding machine code is E79C1F) again stored routine other parts. When next use, changes E79C1E machine code E79C1F (corresponding address is 4000H), the procedure jumps to 4000H starts to carry out, the 4100H later segment no longer carries out. When again next use, changes E79C1c machine code E79C1E (corresponding address is 3A00H), the procedure jumps to 3A00H starts to carry out, the 4000H later segment no longer carries out, ex analogia (i.e. machine code’s last byte change for F→E→c, corresponding table the 2 first group of change), namely may duplicate uses the identical piece monolithic integrated circuit to carry on programs the operation many times.

        In this method, monolithic integrated circuit 87C196MC pin EA meets the high level. It is suitable in the procedure is brief, and has not expanded the exterior memory, only then internal memory available situation.

    2.2 internal, outside program the operating procedure
        If internal storage capacity insufficient or because of other aspect need, the request expands time the exterior memory, certainly may choose the capacity big exterior memory, but does not use the internal memory, but as the matter stands, the procedure secrecy will realize with difficulty, and has wasted the monolithic integrated circuit internal memory space. Uses the inside and outside union the method already to be possible to meet the capacity need, the fork can facilitate realizes the encryption operation.

        In view of the fact that the 87C196MC monolithic integrated circuit’s procedure starts from 2000H to carry out, sets at monolithic integrated circuit 87C196MC pin Li “1″, then the monolithic integrated circuit procedure will start from internal 2000H to carry out. May in the procedure carries out young Duan after 2000H (according to actual need hypothesis carries on skipping willfully), here and the internal skipping operation differs from, it will jump out monolithic integrated circuit 87C196MC internal OTPROM directly the 2000H~5FFFH unit scope. When orders carries out, automatically will change over to the exterior memory’s address range, for example: LJMP8000H, 8000H is the exterior memory’s address entrance, like this changed over to from the internal memory to the exterior memory. May through revise the exterior memory (may duplicate scratches writes) the procedure to carry on the procedure the debugging, is convenient. Certainly, when needs changes over to the internal memory from exterior memory, the operating procedure is similar.

    Conclusion 
        This article multianalysis introduced two kinds may realize monolithic integrated circuit’s application method which may duplicate programs, moreover these two methods may promote to other any have the 0TPROM monolithic integrated circuit programming, the programming mentality are completely same, the concrete experiment confirmed these two methods have the practical feasibility.

    Share/Save/Bookmark

    Monday, October 20th, 2008 at 22:57
No comments yet.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

TOP
Copyright © 51 Research and Design, Electronic Engineers website - Embedded Systems, MCU, DSP, EDA, Test and Measurement, Components, Communications, Power, Microelectronics, Semiconductors
Powered by WordPress | Theme by mg12 | Valid XHTML 1.1 and CSS 3