| 전자부품 데이터시트 검색엔진 |
|
H838532H 데이터시트(PDF) 100 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
H838532H 데이터시트(HTML) 100 Page - Renesas Technology Corp |
|
100 / 508 page ![]() Section 3 Exception Handling Rev. 1.00 May 30, 2008 Page 80 of 484 REJ09B0436-0100 3.4 Application Notes 3.4.1 Notes on Stack Area Use When word data is accessed in the LSI, the least significant bit of the address is regarded as 0. Access to the stack always takes place in word size, so the stack pointer (SP: R7) should never indicate an odd address. Use PUSH Rn (MOV.W Rn, @–SP) or POP Rn (MOV.W @SP+, Rn) to save or restore register values. Setting an odd address in SP may cause a program to crash. An example is shown in figure 3.6. PC PC R1L PC SP SP SP H'FEFC H'FEFD H'FEFF → → → H L L MOV. B R1L, @–R7 SP set to H'FEFF Stack accessed beyond SP BSR instruction Contents of PC are lost H Legend: PCH: PCL: R1L: SP: Upper byte of program counter Lower byte of program counter General register R1L Stack pointer Figure 3.6 Operation when Odd Address is Set in SP When CCR contents are saved to the stack during interrupt exception handling or restored when RTE is executed, this also takes place in word size. Both the upper and lower bytes of word data are saved to the stack; on return, the even address contents are restored to CCR while the odd address contents are ignored. |
|
링크 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 |