English
Language : 

MC9S08QD4 Datasheet, PDF (35/202 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 4 Memory Map and Register Definition
4.3 Register Addresses and Bit Assignments
The registers in the MC9S08QD4 series are divided into these groups:
• Direct-page registers are located in the first 96 locations in the memory map; these are accessible
with efficient direct addressing mode instructions.
• High-page registers are used much less often, so they are located above 0x1800 in the memory
map. This leaves more room in the direct page for more frequently used registers and RAM.
• The nonvolatile register area consists of a block of 16 locations in flash memory at
0xFFB0–0xFFBF. Nonvolatile register locations include:
— NVPROT and NVOPT are loaded into working registers at reset
— An 8-byte backdoor comparison key that optionally allows a user to gain controlled access to
secure memory
Because the nonvolatile register locations are flash memory, they must be erased and programmed
like other flash memory locations.
Direct-page registers can be accessed with efficient direct addressing mode instructions. Bit manipulation
instructions can be used to access any bit in any direct-page register. Table 4-2 is a summary of all
user-accessible direct-page registers and control bits.
The direct page registers in Table 4-2 can use the more efficient direct addressing mode that requires only
the lower byte of the address. Because of this, the lower byte of the address in column one is shown in bold
text. In Table 4-3 and Table 4-4, the whole address in column one is shown in bold. In Table 4-2, Table 4-3,
and Table 4-4, the register names in column two are shown in bold to set them apart from the bit names to
the right. Cells that are not associated with named bits are shaded. A shaded cell with a 0 indicates this
unused bit always reads as a 0. Shaded cells with dashes indicate unused or reserved bit locations that could
read as 1s or 0s.
Table 4-2. Direct-Page Register Summary
Address Register Name
0x0000 PTAD
0x0001
0x0002–
0x000B
0x000C
PTADD
Reserved
KBISC
0x000D KBIPE
0x000E
0x000F
KBIES
IRQSC
0x0010 ADCSC1
0x0011
0x0012
ADCSC2
ADCRH
0x0013 ADCRL
0x0014
0x0015
ADCCVH
ADCCVL
0x0016 ADCCFG
Bit 7
0
0
—
—
0
KBIPE7
KBEDG7
0
COCO
ADACT
0
ADR7
0
ADCV7
ADLPC
6
5
0
PTAD5
0
PTADD5
—
—
—
—
0
0
KBIPE6 KBIPE5
KBEDG6 KBEDG5
IRQPDD IRQEDG
AIEN
ADCO
ADTRG
0
ACFE
0
ADR6
ADR5
0
ADCV6
0
ADCV5
ADIV
4
PTAD4
PTADD4
—
—
0
KBIPE4
KBEDG4
IRQPE
ACFGT
0
ADR4
0
ADCV4
ADLSMP
3
2
PTAD3 PTAD2
PTADD3
—
—
KBF
PTADD2
—
—
KBACK
KBIPE3 KBIPE2
KBEDG3 KBEDG2
IRQF IRQACK
ADCH
—
—
0
0
ADR3
ADR2
0
ADCV3
0
ADCV2
MODE
1
PTAD1
PTADD1
—
—
KBIE
KBIPE1
KBEDG1
IRQIE
Bit 0
PTAD0
PTADD0
—
—
KBIMOD
KBIPE0
KBEDG0
IRQMOD
—
—
ADR9
ADR8
ADR1
ADR0
ADCV9 ADCV8
ADCV1 ADCV0
ADICLK
MC9S08QD4 Series MCU Data Sheet, Rev. 3
Freescale Semiconductor
35