外文翻译基于单片机的频率计设计.pdf
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《外文翻译基于单片机的频率计设计.pdf》由会员分享,可在线阅读,更多相关《外文翻译基于单片机的频率计设计.pdf(13页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、原文:This design take at MCS-51 monolithic integrated circuit as the core full use hardware source designs one kind of frequency meter,this frequency meter will be measured first that signal enlargement reshaping processing,turns satisfies TTL/which the monolithic integrated circuit I/O mouth accepts
2、the CMOS compatible signal from monolithic integrated circuits T1 input port input direct summation pulse number,the monolithic integrated circuit interior timer fixed time is 1S,by now accumulated the pulse number namely for is measured the signal the frequency.Finally passes through monolithic int
3、egrated circuit processing to deliver to the lcd liquid crystal display monitor demonstration.Central Processing Unit Designs The CPU is the key component of a digital computer.Its purpose is to decode instruction received from memory and perform transfers,arithmetic,logic,and control operations wit
4、h data stored in internal registers,memory,or I/O interface units.Externally,the CPU provides one or more buses for transferring instructions,data,and control information to and from components connected to it.In the generic computer at the beginning of chapter 1,the CPU is a part of the processor a
5、nd is heavily shaded.CPUs,however,may also appear in computers.Small,relatively simple computers called microcontrollers are used in computers and in other digital systems to perform limited or specialized tasks.For example,a microcontroller is present in the keyboard and in the monitor in the gener
6、ic computer;thus,these components are also shaded.In such microcontrollers,the CPU may be quite different from those discussed in this chapter.The word lengths may be short(say,four or eight bits),the number of registers small,and the instruction sets limited.Performance,relatively speaking,is poor,
7、but adequate for the task.Most important,the cost of these microcontrollers is very low,making their use cost effective.In the following pages,we consider two computer CPUs,one for a complex instruction set computer(CISC)and the other for a reduced instruction set computer(RISC).After a detailed exa
8、mination of the designs,we compare the performance of the two CPUs and present a brief overview of some methods used to enhance that performance.Finally,we relate the design ideas discussed to general digital system design.1、The complex instruction set computer The first design we present is for a c
9、omplex instruction set computer with a non-pipelined datapath and microprogrammed control unit.We begin by describing the instruction set architecture,including the CPU register set,instruction formats,and addressing modes.The word 文档 可自由复制编辑 CISC nature of the instruction set architecture is demons
10、trated by its memory-to-memory access for data manipulation instructions,eight addressing modes,two instruction format lengths,and instructions that require significant sequences of operations for their execution.We design a datapath for implementing the CISC architecture.The datapath is based on th
11、e one initially described in Section 7-9 and incorporated into a CPU in section 8-10.modifications are made to the register file,the function unit,and the buses to support the present instruction set architecture.Once the datapath has been specified,a control unit is designed to complete the impleme
12、ntation of the instruction set architecture.The design of the control unit must involve a coordinated definition of both the hardware organization and the microprogram organization.In particular,dividing the microprogram into microroutines,while at the same time designing the sequencer with which th
13、ey interact,is a key part of the design.Even the instruction fields and opposed are tied to this coordinated effort.Following the definition of the hardware and microcode organizations,we detail essential parts of the microcode and the microroutines for representative operations.Instruction set arch
14、itecture Figure 10-1 shows the CISC register set accessible to the programmer.All registers have 16 bits.The register file has eight registers,R0 though R7.R0 is a special register that always supplies the value zero when it is used as a source and discards the result when it is used as a destinatio
15、n.In additional to the register file,there is a program counter PC and stack pointer SP.The presence of a stack pointer indicates that a memory stack is a part of the architecture.the final register is the processor status register PSR,which contains information only in its rightmost the five bits;t
16、he remainder of the register is assumed to contain zero.The PSR contains the word 文档 可自由复制编辑 four stored status bit values Z,N,C,and V in positions 3 through 0,respectively.In additional,a stored interrupt enable bit EI appears in position 4.Table 10-1 contains the 42 operations performed by the ins
17、tructions.Each operation has a mnemonic and a carefully selected oppose.The operations are divided into four groups based on the number of explicit operands and whether the operation is branch.In addition,the status bits affected by the operation are listed.Figure 10-2 gives the instruction formats
18、for the CPU.The generic instruction format has five fields.The first,OPCODE,specifies of the operation.The next two,MODE and S,are used to determine the addresses of the operands.The last two fields,SRC and DST,are the 3-bit source register and destination register address fields,respectively.In add
19、ition,there is an optional second word W that appears with some instructions as an operand or an address,but not with others.The first two bits of OPCODE,IR(15:14),determine the number of explicit operands and how the fields of the format are used.When these bits are 00,either no operand is required
20、 or the location of the operand is implied by OPCODE.Only the OPCODE field is needed,as shown in figure 2(b).the four rightmost OPCODE bits can specify up to 16 operands or with implied operand addresses.If IR(15:14)is 01,the instruction has one operand and is a data transfer or data manipulation in
21、struction.Since there is an operand,the MODE field specifies the addressing mode for obtaining it.The single address may involve the DST register address in its formation,so the DST field is also present.The S field and SRC field relate to the presence of two operands and so are not used for the typ
22、ical single operand instructions.but,the shift instructions require a shift amount to indicate how many bits to shift.For maximum flexibility,word 文档 可自由复制编辑 this shift amount is treated just like a source operand.As a consequence,the SHA and S fields is a full 16-bit operand,but only values 0 throu
23、gh 15 are meaningful.There are sufficient OPCODE bits for 16 instructions with a single operand.Table 10-2 gives the addressing modes specified by the MODE field.The first two bits of MODE specify four different types of addressing:register,immediate,indexed,and relative to the PC.The third bit of M
24、ODE specifies whether the address generated by these modes is used as an indirect address.The one exception to this is direct addressing,which is obtained by applying indirection to the immediate type.Otherwise,if the third bit equals 0,indirect addressing does not apply whereas,if it equals 1,indir
25、ect addressing does apply.For the register type of instruction,MONE(2:1)=00 and the W word is not needed.Since the operand or address comes from a register.The third column of the table provides register transfer statements for each of the addressing modes for the one-operand instructions.If IR(15:1
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 外文 翻译 基于 单片机 频率计 设计
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内