| 전자부품 데이터시트 검색엔진 |
|
UPD17062 데이터시트(PDF) 21 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
UPD17062 데이터시트(HTML) 21 Page - Renesas Technology Corp |
|
21 / 298 page ![]() 19 µPD17062 2.2 FUNCTIONS OF PROGRAM MEMORY Program memory has two basic functions: (1) Program storage (2) Constant data storage A program is a set of instructions that control the CPU (Central Processing Unit: Device that actually controls the microcontroller). The CPU executes processing sequentially according to the instructions coded in the program. The CPU sequentially reads instructions from the program stored in program memory and executes processing according to each instruction. Each instruction is one word, or 16 bits in length. A single instruction can thus be stored at a single address in program memory. Constant data is predetermined data such as a display pattern. Constant data is read from program memory into a data buffer (DBF) in data memory (RAM) upon execution of the specialized MOVT instruction. This reading of constant data from memory is called table referencing. Program memory is read-only storage that cannot be rewritten by the execution of an instruction. In this document, program memory and ROM (read-only memory) are synonymous. 2.3 PROGRAM FLOW A program stored in program memory is usually executed one address at a time starting from address 0000H. If another program is to be executed upon some condition being satisfied, the program flow must be branched. To achieve this, the branch instruction (BR) is used. If a single program is executed a number of times, the efficiency of the program memory is reduced. This problem can be solved by storing that program at a given location and calling it using the specialized CALL instruction. Such a program is called a subroutine while the usual program is called a main routine. If a program is executed upon some condition being satisfied, independently of the current program flow, the interrupt function is used. If a predetermined condition is satisfied, the interrupt function transfers control to a specified address (vector address) irrespective of the current program flow. These program flows are controlled by the program counter (PC), which specifies program memory addresses. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |