;----------------------------------------------------------- ;datamem: 0x000 to 0x2ff real address used address ;----------------------------------------------------------- ;access ram low ( a = 0 ) 0x000 to 0x07f 0x00 to 0x7f ;bank 0 (0000) ( a = 1 ) 0x000 to 0x0ff 0x00 to 0xff ;bank 1 (0001) ( a = 1 ) 0x100 to 0x1ff 0x00 to 0xff ;bank 2 (0010) ( a = 1 ) 0x200 to 0x2ff 0x00 to 0xff ;access bank high ( a = 0 ) 0xf80 to 0xfff 0x80 to 0xff ;this drivers address spi_addr equ 0x00 spi_ctr equ 0x01 spi_cmd equ 0x02 ;the driver flags drv_flags equ 0x03 INT_AS_FRQ equ H'0007' TIMER_AS_FRQ equ H'0006' INT_HANDLES_CMD equ H'0005' NO_CIRCLE equ H'0002' ;the running flags, escpecially for "set TARGET" run_flags equ 0x04 STEP_ON equ H'0007' RESTART_FRQ equ H'0006' DONT_IGNORES5 equ H'0005' CONTENTS5 equ H'0004' EEPROM_CFG equ H'0003' ;the working flags work_flags equ 0x05 ENC_LEFTDOWN equ H'0007' RUN_LEFTDOWN equ H'0006' POS_EQUAL equ H'0005' POS_SMALLER equ H'0004' POS_GREATER equ H'0003' POS_FARAWAY equ H'0002' ;some special flags for config, offset ... spec_flags equ 0x06 OFFSET_ROLLEFT equ H'0007' stepctr equ 0x07 ;0x08 free ;0x09 free ;the buffers spiibuf equ 0x0a spiibuf0 equ 0x0a spiibuf1 equ 0x0b spiibuf2 equ 0x0c spiibuf3 equ 0x0d spiibuf4 equ 0x0e spiibuf5 equ 0x0f spiibufend equ 0x10 ;spiibuf5 + 1 spiobuf equ 0x10 spiobuf0 equ 0x10 spiobuf1 equ 0x11 spiobuf2 equ 0x12 spiobuf3 equ 0x13 spiobuf4 equ 0x14 spiobuf5 equ 0x15 spiobufend equ 0x16 ;spiobuf5 + 1 encHigh equ 0x17 encLow equ 0x18 encMaxHigh equ 0x19 encMaxLow equ 0x1a curpos3 equ 0x1b curpos2 equ 0x1c curpos1 equ 0x1d curpos0 equ 0x1e maxpos3 equ 0x1f maxpos2 equ 0x20 maxpos1 equ 0x21 maxpos0 equ 0x22 target3 equ 0x23 target2 equ 0x24 target1 equ 0x25 target0 equ 0x26 ;free 0x27 ;free 0x28 steplp equ 0x29 steplpctr equ 0x2a msmax equ 0x2b msmin equ 0x2c mscur equ 0x2d timerhigh equ 0x2e timerlow equ 0x2f rega3 equ 0x30 rega2 equ 0x31 rega1 equ 0x32 rega0 equ 0x33 regb3 equ 0x34 regb2 equ 0x35 regb1 equ 0x36 regb0 equ 0x37 regc3 equ 0x38 regc2 equ 0x39 regc1 equ 0x3a regc0 equ 0x3b regd3 equ 0x3c regd2 equ 0x3d regd1 equ 0x3e regd0 equ 0x3f offsetbyte equ 0x40 offsetbit equ 0x41 ;next valid stuff is 0x42 till 0x77 ;--------------------------- ;temporary values enc_tmpold equ 0x78 enc_tmp equ 0x79 ;flags for encoderhandlings MENCA equ H'0000' MENCB equ H'0001' spi_tmp equ 0x7a spi_tmpcmd equ 0x7b spi_tmpaddr equ 0x7c ;these are currently not used litmp_w equ 0x7d litmp_status equ 0x7e litmp_bsr equ 0x7f ;using values using not ACCESS, but BANKED ;we can also use values 0x80 to 0xff ;then ;switching to BANK 1 using additionally 256 byte 0x00-0xff ;switching to BANK 2 using additionally 256 byte 0x00-0xff ;------------------------------------