![Micronas SDA 6000 Скачать руководство пользователя страница 45](http://html1.mh-extra.com/html/micronas/sda-6000/sda-6000_user-manual_1787802045.webp)
SDA 6000
PRELIMINARY DATA SHEET
Version 2.1
C16X Microcontroller
4 - 14
Micronas
4.3.4
Special Function Registers
The so-called Special Function Registers (SFRs) are provided to control internal
functions of M2 (CPU, bus interface, Interrupt Controller, OCDS) or peripherals
connected to the Peripheral Bus. These SFRs are arranged within two areas of
512 Bytes each. The first register block, the SFR area, is located in the 512 Bytes above
the internal RAM (00’FFFF
H
… 00’FE00
H
); the second register block, the Extended SFR
(ESFR) area, is located in the 512 Bytes below the IRAM (00’F1FF
H
… 00’F000
H
).
Special function registers can be addressed via indirect and long 16-bit addressing
modes. Using an 8-bit offset together with an implicit base address allows word SFRs
and their respective low bytes to be addressed. However, this
does not work
for the
respective high bytes!
Note: Writing to any byte of an SFR causes the non-addressed complementary byte to
be cleared!
The upper half of each register block is bit-addressable, so the respective control/status
bits can directly be modified or checked using bit addressing.
When accessing registers in the ESFR area using 8-bit addresses or direct bit
addressing, an Extend Register (EXTR) instruction is first required to switch the short
addressing mechanism from the standard SFR area to the Extended SFR area. This is
not required for 16-bit and indirect addresses. The GPRs R15 … R0 are duplicated, i.e.
they are accessible within both register blocks via short 2-, 4- or 8-bit addresses without
switching.
ESFR_SWITCH_EXAMPLE:
EXTR
#4
;Switch to ESFR area for next 4 instr.
MOV
ODP2, #data16
;ODP2 uses 8-bit reg addressing
BFLDL
DP6, #mask, #data8
;Bit addressing for bit fields
BSET
DP1H.7
;Bit addressing for single bits
MOV
T8REL, R1
;T8REL uses 16-bit mem address,
;R1 is duplicated into the ESFR space
;(EXTR is not required for this access)
;----
;-------------------
;The scope of the EXTR #4 instruction…
; … ends here!
MOV
T8REL, R1
;T8REL uses 16-bit mem address,
;R1 is accessed via the SFR space
In order to minimize the use of the EXTR instructions the ESFR area primarily holds
registers which are required mainly for initialization and mode selection. Registers that
need to be accessed frequently are allocated, wherever possible, to the standard SFR
area.
Содержание SDA 6000
Страница 3: ...Contents Overview...
Страница 21: ...Pin Description...
Страница 22: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Pin Descriptions 2 3 Micronas 2 Pin Descriptions...
Страница 29: ...Architectural Overview...
Страница 33: ...C16X Microcontroller...
Страница 34: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 C16X Microcontroller 4 3 Micronas 4 C16X Microcontroller...
Страница 88: ...Interrupt and Trap Function...
Страница 122: ...System Control Configuration...
Страница 159: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 System Control Configuration 6 40 Micronas...
Страница 160: ...Peripherals...
Страница 282: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Peripherals 7 124 Micronas...
Страница 283: ...Clock System...
Страница 284: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Clock System 8 3 Micronas 8 Clock System...
Страница 288: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Clock System 8 8 Micronas...
Страница 289: ...Sync System...
Страница 290: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Sync System 9 3 Micronas 9 Sync System...
Страница 301: ...Display Generator...
Страница 302: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Display Generator 10 3 Micronas 10 Display Generator...
Страница 348: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Display Generator 10 50 Micronas...
Страница 349: ...D A Converter...
Страница 352: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 D A Converter 11 6 Micronas...
Страница 353: ...Slicer and Acquisition...
Страница 354: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Slicer and Acquisition 12 3 Micronas 12 Slicer and Acquisition...
Страница 381: ...Register Overview...
Страница 398: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Register Overview 13 20 Micronas...
Страница 399: ...Elelctrical Characteristics...
Страница 400: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Electrical Characteristics 14 3 Micronas 14 Electrical Characteristics...
Страница 411: ...SDA 6000 PRELIMINARY DATA SHEET Version 2 1 Electrical Characteristics 14 14 Micronas...