* (c) 2002 University of Florida * CNEL Brain-Machine Interface Project * ************************************************************************* * filename = lms_glb.asm * * global declaration file * ************************************************************************* * global constants related to ext./int. memory map dpm_addr .set 0400000h ; dpmem start address dpm_addrh .set 0040h ; msb of dpmem start address mb_dsp2pc .set 0ffeh ; dpram dsp to pc mailbox (left-side) mb_pc2dsp .set 0fffh ; dpram pc to dsp mailbox (right-side) dpm_numwords .set 0h ; dpram addr containing no. of words to read/write dpm_data .set 1h ; dpram read/write data start address inv_start .set 4000h ; inverse start memory location sram_addr .set 0100000h ; sram start address sram_addrh .set 0010h ; msb of sram start address eprom_addr .set 0FFF000h ; eprom start address (boot 3) eprom_addrh .set 00FFh ; msb of eprom start address ext_addr .set 0900000h ; ext start address ext_addrh .set 0090h ; msb of ext start address memi_addr .set 0800000h ; dsp internal sram start address memi_addrh .set 0080h ; msb of internal sram start address * global constants for dsp gpio manipulation xf0_output .set 0004h ; xf0 output data xf0_input .set 0008h ; xf0 input data xf0_dir_out .set 0002h ; iof or xf0_dir_out => iof, make xf0 output xf0_dir_in .set 0FFFDh ; iof and xfo_dir_in => iof, make xf0 input xf0_high .set 0004h ; iof or xf0_high => xf0=1 xf0_low .set 0FFFBh ; iof and xf0_low => xf0=0 * global constants for invert subroutine ONE .SET 1.0 TWO .SET 2.0 * to set XF0 and XF1 high and low together XF0_HIGH .set 0066h XF0_LOW .set 0022h * System command routines .GLOBAL LMS_START, LMS_END,FP_TABLE,FPINV,MAT,LMS,MSK,FMIEEE1