11.07.2015 Views

uPD789074 Subseries 8-Bit Single-Chip Microcontrollers UD - Home

uPD789074 Subseries 8-Bit Single-Chip Microcontrollers UD - Home

uPD789074 Subseries 8-Bit Single-Chip Microcontrollers UD - Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 3 CPU ARCHITECTURE3.4.2 Short direct addressing[Function]The memory to be manipulated in the fixed space is directly addressed with the 8-bit data in an instruction word.The fixed space where this addressing is applied is the 256-byte space FE20H to FF1FH. An internal highspeedRAM is mapped at FE20H to FEFFH and the special function registers (SFR) are mapped at FF00H toFF1FH.The SFR area where short direct addressing is applied (FF00H to FF1FH) is a part of the total SFR area. In thisarea, ports which are frequently accessed in a program and a compare register of the timer counter aremapped, and these SFRs can be manipulated with a small number of bytes and clocks.When 8-bit immediate data is at 20H to FFH, bit 8 of an effective address is set to 0. When it is at 00H to 1FH,bit 8 is set to 1. See [Illustration] below.[Operand format]IdentifiersaddrsaddrpDescriptionLabel or FE20H to FF1FH immediate dataLabel or FE20H to FF1FH immediate data (even address only)[Description example]MOV FE90H, #50H; When setting saddr to FE90H and the immediate data to 50HInstruction code 1 1 1 1 0 1 0 1 OP code1 0 0 1 0 0 0 0 90H (saddr-offset)0 1 0 1 0 0 0 0 50H (immediate data)[Illustration]70OP codesaddr-offsetEffectiveaddress15 801 1 1 1 1 1 1 αShort direct memoryWhen 8-bit immediate data is 20H to FFH, α = 0.When 8-bit immediate data is 00H to 1FH, α = 1.User’s Manual U14801EJ3V1<strong>UD</strong> 57

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!