| 전자부품 데이터시트 검색엔진 |
|
C167CS 데이터시트(PDF) 57 Page - Infineon Technologies AG |
|
|
|||||||||||||||||||||||||||||
C167CS 데이터시트(HTML) 57 Page - Infineon Technologies AG |
|
57 / 517 page ![]() C167CS Derivatives The Central Processing Unit (CPU) User’s Manual 4-7 V2.0, 2000-07 Explicit Stack Pointer Updating None of the RET, RETI, RETS, RETP or POP instructions is capable of correctly using a new SP register value, which is to be updated by an immediately preceding instruction. Thus, in order to use the new SP register value without erroneously performed stack accesses, at least one instruction must be inserted between an explicitly SP-writing and any subsequent of the just mentioned implicitly SP-using instructions, as shown in the following example: In :MOV SP,#0FA40H ;select a new top of stack In + 1:… ;must not be an instruction popping operands ;from the system stack In + 2:POP R0 ;pop word value from new top of stack ;into R0 Note: Conflicts with instructions writing to the stack (PUSH, CALL, SCXT) are solved internally by the CPU logic. Controlling Interrupts Software modifications (implicit or explicit) of the PSW are done in the execute phase of the respective instructions. In order to maintain fast interrupt responses, however, the current interrupt prioritization round does not consider these changes, i.e. an interrupt request may be acknowledged after the instruction that disables interrupts via IEN or ILVL or after the following instructions. Timecritical instruction sequences therefore should not begin directly after the instruction disabling interrupts, as shown in the following examples: INTERRUPTS_OFF: BCLR IEN ;globally disable interrupts <Instr non-crit> ;non-critical instruction <Instr 1st-crit> ;begin of uninterruptable critical sequence … <Instr last-crit> ;end of uninterruptable critical sequence INTERRUPTS_ON: BSET IEN ;globally re-enable interrupts CRITICAL_SEQUENCE: ATOMIC #3 ;immediately block interrupts BCLR IEN ;globally disable interrupts … ;here is the uninterruptable sequence BSET IEN ;globally re-enable interrupts Note: The described delay of 1 instruction also applies for enabling the interrupts system i.e. no interrupt requests are acknowledged until the instruction following the enabling instruction. |
|
링크 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 |