ADDRESS SPACES

KS57C2308/P2308/C2316/P2316

 

 

GENERAL-PURPOSE MEMORY AREAS

The 20-byte area at ROM locations 000CH–001FH and the 8,064-byte (16,256-byte) area at ROM locations 0080H–1FFFH (0080H–3FFFH) are used as general-purpose program memory. Unused locations in the vector address area and REF instruction look-up table areas can be used as general-purpose program memory. However, care must be taken not to overwrite live data when writing programs that use special-purpose areas of the ROM.

VECTOR ADDRESS AREA

The 12-byte vector address area of the ROM is used to store the vector addresses for executing system resets and interrupts. The starting addresses of interrupt service routines are stored in this area, along with the enable memory bank (EMB) and enable register bank (ERB) flag values that are needed to initialize the service routines.

12-byte vector addresses are organized as follows:

EMB

ERB

PC13 (note)

PC12

PC11

PC10

PC9

PC8

PC7

PC6

PC5

PC4

PC3

PC2

PC1

PC0

 

 

 

 

 

 

 

 

NOTE: PC13 is used for KS57C2316/P2316 microcontroller.

To set up the vector address area for specific programs, use the instruction VENTn. The programming tips on the next page explain how to do this.

0000H

000BH

000CH

001FH

0020H

007FH

0080H

1FFFH

3FFFH

VECTOR ADDRESS AREA

(12 Bytes)

GENERAL-PURPOSE AREA

(20 Bytes)

INSTRUCTION

REFERENCE

AREA

GENERAL-PURPOSE AREA

(8,064 Bytes/

16,256 Bytes)

0000H

0002H

0004H

0006H

0008H

000AH

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

RESET

INTB/INT4

INT0

INT1

INTS

INTT0

Figure 2-1. ROM Address Structure

Figure 2-2. Vector Address Structure

 

 

2-2

Page 10
Image 10
Samsung KS57C2308 GENERAL-PURPOSE Memory Areas, Vector Address Area, Emb Erb, PC9 PC8 PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0