| Electronic Components Datasheet Search |
|
7477 Datasheet(PDF) 291 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
7477 Datasheet(HTML) 291 Page - Renesas Technology Corp |
|
291 / 354 page ![]() 7470/7471/7477/7478 GROUP USER’S MANUAL 2-56 APPLICATION 2.10 Notes on programming 7470 7471 7477 7478 2.10 Notes on programming 2.10.1 Processor status register Fig. 2.10.1 Initialization of flags in PS (2) How to reference the processor status register To reference 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. A NOP instruction should be executed after every PLP instruction. (1) Initialization of processor status register After a reset, the contents of the processor status register (PS) are undefined except for the I flag which is “1.” Therefore, flags which affect program execution must be initialized after a reset. In particular, it is essential to initialize the T and D flags because they have an important effect on calculations. Fig. 2.10.2 Stack memory contents after PHP instruction execution Fig. 2.10.3 Note to execute by PLP instruction ,,,, Main program Flags initializing Reset NOP instruction PLP instruction Saved PS (S) (S) + 1 |
|
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 |