5. Memory organization
A96G150 User's manual
32
5
Memory organization
A96G150 addresses two separate address memory spaces:
Program memory
Data memory
By means of this logical separation of the memory, 8-bit CPU address can access the Data Memory
more rapidly. 16-bit Data Memory address is generated through the DPTR register.
A96G150 provides on-chip 64Kbytes of the ISP type flash program memory, which readable and
writable. Internal data memory (IRAM) is 256bytes and it includes the stack area. External data memory
(XRAM) is 2304bytes and internal EEPROM is 2Kbytes.
5.1
Program memory
A 16-bit program counter is capable of addressing up to 64Kbytes, and A96G150 has just 64Kbytes
program memory space.
Figure 6 shows a map of the lower part of the program memory.
After reset, CPU begins execution from location 0000H. Each interrupt is assigned a fixed location in
the program memory. An interrupt causes the CPU to jump to the corresponding location, where it
commences execution of the service routine.
An external interrupt 11, for example, is assigned to location 000BH. If the external interrupt 11 is going
to be used, its service routine must begin at location 000BH. If the interrupt is not going to be used, its
service location is available as general purpose program memory. If an interrupt service routine is short
enough (as is often the case in control applications), it can reside entirely within an interval of 8-bytes.
Longer service routines can use a jump instruction to skip over subsequent interrupt locations, if other
interrupts are in use.
Содержание A96G150
Страница 126: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 126 Figure 43 16 bit Timer Counter Mode Operation Example...
Страница 136: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 136 Figure 51 16 bit Timer Counter Mode Operation Example...
Страница 147: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 147 Figure 59 16 bit Timer Counter Mode Operation Example...
Страница 157: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 157 Figure 67 16 bit Timer Counter Mode Operation Example...
Страница 171: ...A96G150 User s manual 14 12 bit ADC 171 Figure 79 ADC Operation Flow Sequence...
Страница 333: ...A96G150 User s manual Revision history 333 Revision history Revision Date Notes 1 00 2022 06 22 First creation...