Supercharge Your Innovation With Domain-Expert AI Agents!

Variable bit width bit operation control systems and methods

A control system and control method technology, applied in the direction of instruments, electrical digital data processing, etc., can solve the problems of wasting space, increasing the cost of registers, etc., and achieve the effect of high flexibility, simplifying operation complexity, and saving register costs

Active Publication Date: 2021-04-20
BYD SEMICON CO LTD
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If there are multiple bits that need to be controlled by bit operations, multiple corresponding independent registers and address units are required, which wastes space and increases the cost of the number of registers

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
  • Variable bit width bit operation control systems and methods
  • Variable bit width bit operation control systems and methods

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] Embodiment 1 of the present invention will be described in detail below in conjunction with the accompanying drawings. In this embodiment, the use of 8-bit bit manipulation control is taken as an example, but it should be known that 16 bits, 32 bits, 64 bits, etc. can all realize the scheme of this embodiment. , and the control method of the system is realized through the control of a processor (such as a CPU) and a corresponding program.

[0044] 1) The manipulated bits of the 8 bits control the external GPIO ports P1-P8. Initially, the values ​​of the first control register, the second control register and the third control register are all in the initial state, and the initial values ​​of the 8 bits to be operated are all 0.

[0045] 2) When the P2 port needs to be configured as 1, only need to write 0x2 to the first control register (that is, 0000 0010, 2 in hexadecimal), or the operation circuit automatically compares the value 0x2 of the first register with the 8 ...

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

The invention relates to variable bit width bit operation control systems and methods. The variable bit width bit operation control system is characterized by comprising a first control register, a second control register, a third control register, a bit read-write control circuit, an OR operation circuit and an AND operation circuit, wherein the first control register is a bit operation write 1 control register; the second control register is a bit operation write 0 control register; the third control register is a bit operation read control register. The OR operation circuit is used for performing OR operation on the numerical value of the operated bit and the numerical value of the first control register and feeding back a result to the bit read-write control circuit; and the AND operation circuit is used for carrying out AND operation on the numerical value of the operated bit and the numerical value of the second control register and feeding back a result to the bit read-write control circuit, and the bit read-write control circuit is used for realizing read-write control.

Description

technical field [0001] The invention relates to the field of embedded system interfaces, and more specifically relates to a variable bit width bit operation control system and method. Background technique [0002] There are a large number of external devices in the embedded system, but the structure is relatively simple. For these devices, some need the CPU to provide control means, and some need to provide input signals for the CPU, and many of these devices only need one bit, that is, As long as there are two states of on and off, for example: the light is on and off. It is not suitable to use traditional serial port or parallel port to control the circuits of these devices, so the chip usually provides general purpose programmable input / output (General Purpose Input Output, GPIO for short) interface. [0003] The GPIO interface is relative to the chip itself, and is generally used as the GPIO pin of the chip. GPIO pins can be directly controlled by software, using progr...

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
IPC IPC(8): G06F13/40
CPCY02D10/00
Inventor 周博李奇峰
Owner BYD SEMICON CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More