| Electronic Components Datasheet Search |
|
7480 Datasheet(PDF) 259 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
7480 Datasheet(HTML) 259 Page - Renesas Technology Corp |
|
259 / 337 page ![]() 7480 Group and 7481 Group User's Manual 2-44 APPLICATIONS 2.9 Notes on Programming 2.9.1 Notes on Processor Status Register Initialization of Processor Status Register After system is released from reset, the contents of processor status register (PS) are undefined except for the I flag which is ‘1’. Therefore, flags which affect program execution must be initialized after system is released from reset. In particular, it is essential to initialize the T and D flags because they have an important effect on calculations. How to Refer Processor Status Register To refer the contents of the processor status register (PS), execute the PHP instruction once then read the contents of (S + 1). If necessary, execute the PLP instruction to return the PS to its original status. The NOP instruction should be executed after every PLP instruction. Figure 2.9.1 Initialization of Flags in PS Figure 2.9.2 Stack Memory Contents after PHP Instruction Execution Figure 2.9.3 PLP Instruction Execution 2.9 Notes on Programming Pushed PS Stack area S+1 S PLP instruction NOP instruction Reset Main program Flags of processor status register (PS) initializing |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |