DE PIC18CXXX Example

MPASM Assembler

DE PIC18CXXX Example

Directives highlighted in this example for PIC18CXXX devices are:

Program Functional Description

This example shows the usage of the de directive. This directive is designed mainly for initializing data in the EE data memory region of PICmicro devices with EE data FLASH.

Commented Code Listing

list p=18c452 ;Select device.

#include <p18c452.inc> ;Include standard header file

;for the selected device.

org F0 ;The absolue address F0h is

;mapped to the 0000 location of

;EE data memory.

ch_tbl2 de "PICmicro" ;6 EE data memory locations

;(starting from 0) will be filled

;with 6 ASCII characters.

end


Microchip Technology Inc.
Microchip's Web Site
Voice: (480) 792-7200
Fax: (480) 899-9210
Microchip's E-mail Address
PreviousNext