GE IC695CRU320CA-EL 可编程自动化控制器
GE IC695CRU320CA-EL 可编程自动化控制器
GE IC695CRU320CA-EL 可编程自动化控制器是CPU的神经中枢,它包括定时控制逻辑电路、指令寄存器(register)、译码器、地址指针DPTR及程序计数器PC(Program counter)、堆栈指针SP(stack pointer)等。这里程序计数器PC是由16位(8+8)寄存器构成的计数器。要单片机执行一个程序,就必须把该程序按顺序预先装入存储器ROM的某个区域。单片机动作时应按顺序一条条取出指令来加以执行。
因此,必须有一个电路能找出指令所在的单元地址,该电路就是程序计数器PC。当单片机开始执行程序时,给PC装入第一条指令所在地址,它每取出一条指令(如为多字节指令,则每取出一个指令字节),PC的内容就自动加1,以指向下一条指令的地址,使指令能顺序执行。只有当程序遇到转移指令、子程序调用指令,或遇到中断时(后面将介绍),PC才转到所需要的地方去。
GE IC695CRU320CA-EL 可编程自动化控制器指定的地址,从ROM相应单元中取出指令字节放在指令寄存器中寄存,然后,指令寄存器中的指令代码被译码器译成各种形式的控制信号,这些信号与单片机时钟振荡器产生的时钟脉冲在定时与控制电路中相结合,形成按一定时间节拍变化的电平和时钟,即所谓控制信息,在CPU内部协调寄存器之间的数据传输、运算等操作。
GE IC695CRU320CA-EL 可编程自动化控制器
GE IC695CRU320CA-EL Programmable automation controller is the nerve center of CPU, It includes timing control logic circuit, instruction register (register), decoder, address pointer DPTR and Program counter PC (Program counter), stack pointer SP (stack pointer) and so on. Here the program counter PC is a counter consisting of 16 bit (8+8) registers. To execute a program, the program must be preloaded into a certain region of the memory ROM in order. When the MCU moves, the instructions should be taken out one by one in order to be executed.
Therefore, there must be a circuit that can find the unit address of the instruction, and this circuit is the program counter PC. When the single chip microcomputer starts to execute the program, load the address of the first instruction to the PC, and every time it takes out an instruction (such as a multi-byte instruction, then every take out an instruction byte), the content of the PC will automatically add 1 to point to the address of the next instruction, so that the instructions can be executed sequentially. Only when the program encounters a transfer instruction, a subroutine call instruction, or an interrupt (described later) does the PC go where it needs to go.
GE IC695CRU320CA-EL programmable automation controller specified address, take out the instruction bytes from the corresponding unit of ROM in the instruction register storage, and then the instruction code in the instruction register is translated by the decoder into various forms of control signals, These signals and the clock pulse generated by the clock oscillator of the single chip microcomputer are combined in the timing and control circuit to form a level and clock that changes according to a certain time beat, that is, the so-called control information, which coordinates the data transmission and operation between registers in the CPU.
GE IC695CRU320CA-EL 可编程自动化控制器