11.07.2015 Views

MC95FB204 - abov.co.kr

MC95FB204 - abov.co.kr

MC95FB204 - abov.co.kr

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>MC95FB204</strong>8. MemoryThe <strong>MC95FB204</strong> addresses two separate address memory stores: Program memory and Datamemory. The logical separation of Program and Data memory allows Data memory to be assessed by8-bit addresses, which can be more quickly stored and manipulated by 8-bit CPU. Nevertheless, 16-bit Data memory addresses can also be generated through the DPTR register.Program memory can only be read, not written to. There can be up to 64K bytes of Program memory.In the <strong>MC95FB204</strong> FLASH version of these devices the 4K bytes of Program memory are providedon-chip. Data memory can be read and written to up to 256 bytes internal memory (DATA) includingthe stack area.8.1 Program MemoryA 16-bit program <strong>co</strong>unter is capable of addressing up to 64K bytes, but this device has just 4K bytesprogram memory space.Figure 8.1 shows a map of the lower part of the program memory. After reset, the CPU beginsexecution from location 0000H. Each interrupt is assigned a fixed location in program memory. Theinterrupt causes the CPU to jump to that location, where it <strong>co</strong>mmences execution of the serviceroutine. External interrupt 0, for example, is assigned to location 000BH. If external interrupt 0 is goingto be used, its service routine must begin at location 000BH. If the interrupt is not going to be used, itsservice location is available as general purpose program memory. If an interrupt service routine isshort enough (as is often the case in <strong>co</strong>ntrol applications), it can reside entirely within that 8 byteinterval. Longer service routines can use a jump instruction to skip over subsequent interrupt locations,if other interrupts are in use.28 July 17, 2012 Ver.1.7

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

Saved successfully!

Ooh no, something went wrong!