Microcomputer

A technology of microcomputer and register, which is applied in computing, general-purpose stored program computer, program control design, etc., and can solve the problems of long time consumption and increasing ROM

Inactive Publication Date: 2004-06-16
RENESAS TECH CORP
View PDF1 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, when 5 instructions must be taken out of the write instructions executed to the operation mode setting register for the read operation, the read instruction for confirming the data written in the operation mode setting register becomes executed after 5 cycles, Having issues with taking too long
[0009] In addition, there must be two instructions, a write instruction and a read instruction, and there is a problem of increasing the ROM (read-only memory) or RAM (random access memory) of the program area.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Microcomputer
  • Microcomputer
  • Microcomputer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] Figure 1 ~ Figure 2 The embodiment 1 of the present invention will be described. figure 1 It is a block diagram showing the structure of a microcomputer according to the first embodiment of the present invention. The microcomputer of the first embodiment includes an instruction storage memory 10, a CPU 20, a BIU 30, a plurality of peripheral modules (n in this case), operation mode setting registers SFR40-4n of these peripheral modules, and latch circuits 50a-c.

[0027] The instruction storage memory 10 is composed of ROM and RAM, and stores programs executed by the CPU 20, that is, instructions executed by the CPU 20.

[0028] SFR40 to 4n are operation mode setting registers of peripheral modules such as timers, A / D converters, and D / A converters. SFR40~4n are allocated to specific address space.

[0029] The CPU 20 reads the instructions of the instruction storage memory 10 via the BIU 30, and executes arithmetic processing and the like based on the instructions. In ad...

Embodiment 2

[0039] image 3 Example 2 of the present invention will be described. image 3 It is a block diagram showing the structure of a microcomputer according to the second embodiment of the present invention. In the microcomputer of the second embodiment, figure 1 A test register 60, a latch circuit 50d, and a comparator 70 are added to the illustrated microcomputer. Components having the same functions as those of the first embodiment are given the same reference numerals, and redundant descriptions are omitted.

[0040]The test register 60 is connected to the BIU 30 through a dedicated data bus, and writes the same data and the data written when one of the SFRs 40 to 4n is written. That is, when the CPU 20 writes data to the SFRs 40 to 4n via the BIU 30, it outputs the same data to the peripheral data bus and the dedicated data bus, and the test register 60 writes data on the dedicated data bus.

[0041] The latch circuit 50d is connected to the dedicated data bus and holds the data...

Embodiment 3

[0049] Figure 4 Example 3 of the present invention will be described. In the second embodiment, by comparing the data of the operation mode setting register read from the peripheral data bus with the data of the test register read from the dedicated data bus, the confirmation of the data written in the operation mode setting register is performed. However, a dedicated data bus for writing data to the test register 60 becomes necessary, resulting in an increase in wiring.

[0050] In the third embodiment, in order to improve such a problem, the peripheral bus connected to the operation mode setting register is connected to the test register, and the data written in the operation mode setting register is confirmed.

[0051] Figure 4 It is a block diagram showing the structure of a microcomputer according to the third embodiment of the present invention. In the microcomputer in the third embodiment, the test register 60 is connected to the peripheral bus, and the outputs of the S...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

A CPU of a microcomputer according to the present invention executes a write operation for setting data in a special function register (SFR) while a peripheral enable signal is asserted, and then asserts the peripheral enable signal for one more cycle. By doing so, a peripheral read / write signal becomes effective and the SFR outputs the data set during the write operation onto a peripheral data bus. Therefore, it is possible to check whether the data is successfully written in the SFR within a shorter period of time by automatically executing a read instruction immediately after a write instruction is executed.

Description

Technical field [0001] The present invention relates to a microcomputer, and more specifically, a microcomputer having a function of confirming the contents of a register specifying an operation of a peripheral module. Background technique [0002] In recent years, with the expansion of the application range, microcomputers have become diversified, such as realizing high-speed CPU (central processing unit), large-capacity memory, and built-in peripheral devices. Peripheral devices include timers, A / D converters, D / A converters, and so on. For example, in the case of a timer, set the operating mode in the operating mode setting register of the timer. For example, use the program executed by the CPU to make the timer operate the basic clock frequency or the timer for single timing or use For free running and so on. [0003] The peripheral devices of such a microcomputer operate according to the value set in the operation mode setting register. Therefore, after setting data in the o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F15/78G06F9/00G06F11/00G06F13/12G06F13/40
CPCG06F13/4077G06F13/12
Inventor 小西雅幸
Owner RENESAS TECH CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products