Blame | Last modification | View Log | Download | RSS feed
ifndef __regpadaukinc ; avoid multiple inclusion__regpadaukinc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File REGPADAUK.INC *;* *;* Sinn : contains SFR and Bit Definitionen for Padauk MCUs *;* *;****************************************************************************;----------------------------------------------------------------------------; Helper Macros_bfield macro {INTLABEL},reg,start,count__LABEL__ equ ((1<<(count+start))-1)-((1<<start)-1)endm;----------------------------------------------------------------------------; include proper CPU-specific register definitionsswitch MOMCPUNAMEcase "PMC150","PMS150"include "pdk/pmx150.inc"case "PMC131","PMS131","PMS130"include "pdk/pmx130.inc"case "PMS132","PMS132B"include "pdk/pms132.inc"case "PMS133","PMS134"include "pdk/pms133.inc"case "PMS152"include "pdk/pms152.inc"case "PFS154","PMS154B","PMS154C"include "pdk/pxs154.inc"case "PFS173"include "pdk/pfs173.inc"case "PMS232","PMC232"include "pdk/pmx232.inc"case "PMS234","PMC234"include "pdk/pmx234.inc"case "PMC251"include "pdk/pmc251.inc"case "PMC271","PMS271"include "pdk/pmx271.inc"case "PMC884","MCS11"include "pdk/pmc884.inc"case "DF69"include "pdk/df69.inc"elsecaseerror "wrong processor type set: only PMC150, PMS150, PMC131, PMS131, PMS130, PMS132, PMS132B,"error "PMS133, PMS134, PMS152, PFS154, PMS154B, PMS154C, PFS173, PMS232, PMC232, PMS234,"fatal "PMC234, PMC251, PMC271, PMS271, PMC884, MCS11, DF69 allowed."endcaseif MOMPASS=1message "Padauk SFR Definitions (C) 2020 Alfred Arnold"endif;----------------------------------------------------------------------------; Common Stuff in CPU Coreflag sfr 0x00 ; ACC Status Flag RegisterOV bit io(flag).3 ; OverflowAC bit io(flag).3 ; Auxiliary CarryC bit io(flag).1 ; CarryCF bit CZ bit io(flag).0 ; Zerosp sfr 0x02 ; Stack Pointerifndef __numcpus__numcpus equ 1endifif __numcpus>1RESET0_vect label 0x0000 ; Reset FPP0RESET1_vect label 0x0001 ; Reset FPP1elseifRESET_VECT label 0x0000 ; Resetendifif __numcpus>7RESET2_vect label 0x0002 ; Reset FPP2RESET3_vect label 0x0003 ; Reset FPP3RESET4_vect label 0x0004 ; Reset FPP4RESET5_vect label 0x0005 ; Reset FPP5RESET6_vect label 0x0006 ; Reset FPP6RESET7_vect label 0x0007 ; Reset FPP7endifINT_vect label 0x0010 ; Interruptif __numcpus>1fppen sfr 0x01 ; FPP Unit Enable Registergdio sfr 0x07 ; General Data for I/Oendifif __numcpus>7fppres sfr 0x3f ; FPPA Reset Registerendif;----------------------------------------------------------------------------restore ; allow listing againendif ; __regpadaukinc