1 ifndef __spmcsr37inc 2__spm37csrinc equ 1 3 save 4 listing off ; no listing over this file 5 6;**************************************************************************** 7;* * 8;* AS 1.42 - File SPMCSR.INC * 9;* * 10;*Contains Bit & Register Definitions for Newer ATmega Program Memory Access* 11;* * 12;**************************************************************************** 13 14SPMCSR port 0x37 ; Store Program Memory Control/Status Register 15SPMIE avrbit SPMCSR,7 ; Interrupt Enable 16RWWSB avrbit SPMCSR,6 ; Read-While-Write Section Busy 17RWWSRE avrbit SPMCSR,4 ; Read-While-Write Section Read Enable 18BLBSET avrbit SPMCSR,3 ; Boot Lock Bit Set 19PGWRT avrbit SPMCSR,2 ; Page Write 20PGERS avrbit SPMCSR,1 ; Page Erase 21SPMEN avrbit SPMCSR,0 ; Store Program Memory Enable 22 23 restore ; re-enable listing 24 25 endif ; __spmcsr37inc 26