Film selection

Monolithic subject words
Collection
zero Useful+1
zero
Film selection is a single chip subject vocabulary, which can be understood as film selection. Chip Select Generally address space When, by logical circuit Generated. stay digital circuit In design, the open circuit input pin is generally shown as High level Therefore, the chip selection signal is a Low level
Chinese name
Film selection
Part of speech
verb
Classification
singlechip Subject vocabulary
Comprehend as
Film selection

brief introduction

Announce
edit
Selection: verb Monolithic subject vocabulary can be understood as chip selection. For example, there are many chips hanging on the same bus (like many peripherals in a computer are hanging on the bus), but sometimes we need to transmit data, addresses or commands to a specific chip independently. At this time, we need a signal to tell the chips hanging on the bus which chip these data and addresses are sent to. In that case, other chips will be "indifferent" to these signals, and the target chip will know that these data are transmitted to itself to respond. This signal is called Chip Select CS (chip select) or SS( slave select)。 The term "film selection" is derived from this, which refers to the use of And door OR Gate Non gate To determine which parts are Enter the working state
stay digital circuit In design, the open circuit input pin is generally shown as High level Therefore, the chip selection signal is a Low level Chip selection signals are generally divided address space When, by logical circuit Generated.
Programmable interface chips have a chip switch, usually CE( Chip Enable) or CS (Chip Select) means that only when the input terminal is in effect level , the interface chip enters the circuit working condition , realize the I/O The chip selection terminal usually uses the AO address decoder Therefore, chip selection is also the process of selecting the interface chip by the designated AO address to make it enter the circuit working state.
Figure 1
As shown in Figure 1, if a slave chip or Slave device If the SS pin of (slave) is inactive (usually low level), then the slave chip or slave device is equivalent to a deaf person, and will not affect any external Input signal Respond. If one of the slave chip's SS pins is active, it can hear external input signals and receive or respond. In Figure 1, MISO is the channel for data transmission from the chip to the master chip, MOSI is the channel for data transmission from the master chip to the slave chip, and SCLK is the clock channel (master chip → slave chip).

Chip selection of memory chips

Announce
edit
storage It usually consists of a certain number of chips.
CPU To achieve Storage unit You must first select Memory chip , that is, film selection; Then click the Address code Selecting the corresponding storage unit for data access is called word selection. The on-chip word selection is N low bits sent by the CPU Address line The address line is directly connected to the address input terminals of all memory chips Chip Select It is mostly generated after decoding the high bit address.
Line selection method:
Line selection is to use division On-chip addressing The external high bit address line is directly connected to the chip selection end of each memory chip. When the information of an address line is 0, the corresponding memory chip is selected. These chip selection address lines can only have one valid bit each time they are addressed, and it is not allowed to have multiple valid bits at the same time, so that only one chip can be selected at a time. The line selection method cannot make full use of the systematic storage Space, put address space It is divided into mutually isolated areas, which brings some difficulties to programming
whole decoding Law:
whole decoding All high bits except intra chip addressing Address line All as addresses decoder The input of the decoder and the output of the decoder are used as chip selection signals of each chip, and they are respectively connected to Memory chip To realize the selection of memory chips. The advantage of the full decoding method is that the address range of each chip is unique, continuous, easy to expand, and does not produce address overlapping memory areas. However, the full decoding method requires higher decoding circuits
Partial decoding method: the so-called partial decoding method uses a part of the high bit address other than the on-chip addressing to decode and generate Chip Select , partial decoding will produce address overlap.
Figure 2