17.05.2015 Views

APP026-3X

APP026-3X

APP026-3X

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

D1A.s (2)<br />

.include "P24FXXXX.inc"<br />

.equ SAMPLES, 64 ;Number of samples<br />

;..............................................................................<br />

;Global Declarations:<br />

;..............................................................................<br />

.global _wreg_init ;Provide global scope to _wreg_init routine<br />

;In order to call this routine from a C file,<br />

;place "wreg_init" in an "extern" declaration<br />

;in the C or other .s file.<br />

.global __reset ;The label for the first line of code.<br />

.global __T1Interrupt ;Declare Timer 1 ISR name global<br />

;..............................................................................<br />

;Constants stored in Program space<br />

;..............................................................................<br />

.section<br />

.palign 2<br />

.myconstbuffer, code<br />

ps_coeff:<br />

.hword 0x0002, 0x0003, 0x0005, 0x000A<br />

;..............................................................................<br />

;Uninitialized variables in Near data memory (Lower 8Kb of RAM)<br />

;..............................................................................<br />

;Align next word stored in Program space to an<br />

;address that is a multiple of 2<br />

.section .nbss, bss, near<br />

var1: .space 2 ;Example of allocating 1 word of space for<br />

;variable "var1".<br />

© 2006 Microchip Technology Incorporated. All Rights Reserved. 1005 GS5 Slide 18

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

Saved successfully!

Ooh no, something went wrong!