![]() |
Electronic Components Datasheet Search |
|
FM8PE581M Datasheet(PDF) 9 Page - Feeling Technology Corp. |
|
|
FM8PE581M Datasheet(HTML) 9 Page - Feeling Technology Corp. |
9 / 87 page ![]() FM8PE581M Web site: http://www.feeling-tech.com.tw Rev1.00.006 Dec 01, 2016 Page 9 of 87, FM8PE581M FEELING TECHNOLOGY 2.1.2 PCL (Low Byte of Program Counter) & Stack Read/Write-POR R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 Address Name B7 B6 B5 B4 B3 B2 B1 B0 0x002 PCL Low order 8 bits of PC Note: more bits default state, please refer to Table 2.8. FM8PE581M device has 13-bit wide Program Counter (PC) and eight-level deep 13-bit hardware push/pop stack. The low byte of PC is called the PCL register. This register is readable and writable. The high byte of PC is called the PCH register. This register contains the PC<12:8> bits and is not directly readable or writable. All updates to the PCH register go through the PCHBUF register. As a program instruction is executed, the Program Counter will contain the address of the next program instruction to be executed. The PC value is increased by one, every instruction cycle, unless an instruction changes the PC. For a GOTO instruction, the PC<12:0> is provided by the GOTO instruction word. The PCL register is mapped to PC<7:0>, and the PCHBUF register is not updated. For a CALL instruction, the PC<12:0> is provided by the CALL instruction word. The next PC will be loaded (PUSHed) onto the top of STACK. The PCL register is mapped to PC<7:0>, and the PCHBUF register is not updated. For a RETURN, RETFIE or RETIA instruction, the PC are updated (POPed) from the top of STACK. The PCL register is mapped to PC<7:0>, and the PCHBUF register is not updated. For any instruction where the PCL is the destination, the PC<7:0> is provided by the instruction word or ALU result. However, the PC<12:8> will come from the PCHBUF<4:0> bits (PCHBUF PCH). PCHBUF only when the PCL is written, will be updated to the PCH. Figure 2.2: Loading of PC in Different Situations Situation 1: GOTO Instruction PCL Opcode <12:0> PCH 7 0 8 9 PC 10 11 12 - - - U U U U U PCHBUF U = Unchanged Situation 2: CALL Instruction PCL Opcode <12:0> PCH STACK<12:0> PC 7 0 8 9 10 11 12 - - - U U U U U PCHBUF U = Unchanged |
Similar Part No. - FM8PE581M |
|
Similar Description - FM8PE581M |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.COM |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | Contact us | Privacy Policy | 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 |