ifndef __SN8F27E65L__INC__H
SN8F27E65L__INC__H equ 1
L EQU 080H
H EQU 081H
R EQU 082H
Z EQU 083H
Y EQU 084H
X EQU 085H
PFLAG EQU 086H
FZ EQU PFLAG.0
FDC EQU PFLAG.1
FC EQU PFLAG.2
FSTKOV EQU PFLAG.4
FRST EQU PFLAG.5
FWDT EQU PFLAG.6
FPOR EQU PFLAG.7
RBANK EQU 087H
FRBANKS0 EQU RBANK.0
FRBANKS1 EQU RBANK.1
W0 EQU 088H
W1 EQU 089H
W2 EQU 08AH
W3 EQU 08BH
W4 EQU 08CH
W5 EQU 08DH
W6 EQU 08EH
W7 EQU 08FH
@HL EQU 090H
@YZ EQU 091H
PCL EQU 093H
PCH EQU 094H
OSCM EQU 095H
FCPUM1 EQU OSCM.4
FCPUM0 EQU OSCM.3
FCLKMD EQU OSCM.2
FSTPHX EQU OSCM.1
WDTR EQU 096H
INTRQ0 EQU 097H
FADCIRQ EQU INTRQ0.7
FT1IRQ EQU INTRQ0.6
FTC2IRQ EQU INTRQ0.5
FTC1IRQ EQU INTRQ0.4
FTC0IRQ EQU INTRQ0.3
FT0IRQ EQU INTRQ0.2
FP01IRQ EQU INTRQ0.1
FP00IRQ EQU INTRQ0.0
INTRQ1 EQU 098H
FMSPIRQ EQU INTRQ1.4
FUTXIRQ EQU INTRQ1.3
FURXIRQ EQU INTRQ1.2
FSIOIRQ EQU INTRQ1.1
FWAKEIRQ EQU INTRQ1.0
INTEN0 EQU 09AH
FADCIEN EQU INTEN0.7
FT1IEN EQU INTEN0.6
FTC2IEN EQU INTEN0.5
FTC1IEN EQU INTEN0.4
FTC0IEN EQU INTEN0.3
FT0IEN EQU INTEN0.2
FP01IEN EQU INTEN0.1
FP00IEN EQU INTEN0.0
INTEN1 EQU 09BH
FMSPIEN EQU INTEN1.4
FUTXIEN EQU INTEN1.3
FURXIEN EQU INTEN1.2
FSIOIEN EQU INTEN1.1
FWAKEIEN EQU INTEN1.0
P0OC EQU 09CH
P1OC EQU 09DH
P1W EQU 09EH
FP17W EQU P1W.7
FP16W EQU P1W.6
FP15W EQU P1W.5
FP14W EQU P1W.4
FP13W EQU P1W.3
FP12W EQU P1W.2
FP11W EQU P1W.1
FP10W EQU P1W.0
PEDGE EQU 09FH
FP01G1 EQU PEDGE.3
FP01G0 EQU PEDGE.2
FP00G1 EQU PEDGE.1
FP00G0 EQU PEDGE.0
P0M EQU 0A0H
FP06M EQU P0M.6
FP05M EQU P0M.5
FP04M EQU P0M.4
FP03M EQU P0M.3
FP02M EQU P0M.2
FP01M EQU P0M.1
FP00M EQU P0M.0
P1M EQU 0A1H
FP17M EQU P1M.7
FP16M EQU P1M.6
FP15M EQU P1M.5
FP14M EQU P1M.4
FP13M EQU P1M.3
FP12M EQU P1M.2
FP11M EQU P1M.1
FP10M EQU P1M.0
P4M EQU 0A4H
FP47M EQU P4M.7
FP46M EQU P4M.6
FP45M EQU P4M.5
FP44M EQU P4M.4
FP43M EQU P4M.3
FP42M EQU P4M.2
FP41M EQU P4M.1
FP40M EQU P4M.0
P5M EQU 0A5H
FP53M EQU P5M.3
FP52M EQU P5M.2
FP51M EQU P5M.1
FP50M EQU P5M.0
P0 EQU 0A6H
FP06 EQU P0.6
FP05 EQU P0.5
FP04 EQU P0.4
FP03 EQU P0.3
FP02 EQU P0.2
FP01 EQU P0.1
FP00 EQU P0.0
P1 EQU 0A7H
FP17 EQU P1.7
FP16 EQU P1.6
FP15 EQU P1.5
FP14 EQU P1.4
FP13 EQU P1.3
FP12 EQU P1.2
FP11 EQU P1.1
FP10 EQU P1.0
P4 EQU 0AAH
FP47 EQU P4.7
FP46 EQU P4.6
FP45 EQU P4.5
FP44 EQU P4.4
FP43 EQU P4.3
FP42 EQU P4.2
FP41 EQU P4.1
FP40 EQU P4.0
P5 EQU 0ABH
FP53 EQU P5.3
FP52 EQU P5.2
FP51 EQU P5.1
FP50 EQU P5.0
P0UR EQU 0ACH
P1UR EQU 0ADH
P4UR EQU 0B0H
P5UR EQU 0B1H
T0M EQU 0B2H
FT0ENB EQU T0M.7
FT0RATE2 EQU T0M.6
FT0RATE1 EQU T0M.5
FT0RATE0 EQU T0M.4
FT0TB EQU T0M.0
T0C EQU 0B3H
TC0M EQU 0B4H
FTC0ENB EQU TC0M.7
FTC0RATE2 EQU TC0M.6
FTC0RATE1 EQU TC0M.5
FTC0RATE0 EQU TC0M.4
FTC0CKS1 EQU TC0M.3
FTC0CKS0 EQU TC0M.2
FPWM0OUT EQU TC0M.0
TC0C EQU 0B5H
TC0R EQU 0B6H
TC0D EQU 0B7H
TC1M EQU 0B8H
FTC1ENB EQU TC1M.7
FTC1RATE2 EQU TC1M.6
FTC1RATE1 EQU TC1M.5
FTC1RATE0 EQU TC1M.4
FTC1CKS1 EQU TC1M.3
FTC1CKS0 EQU TC1M.2
FPWM1OUT EQU TC1M.0
TC1C EQU 0B9H
TC1R EQU 0BAH
TC1D EQU 0BBH
TC2M EQU 0BCH
FTC2ENB EQU TC2M.7
FTC2RATE2 EQU TC2M.6
FTC2RATE1 EQU TC2M.5
FTC2RATE0 EQU TC2M.4
FTC2CKS1 EQU TC2M.3
FTC2CKS0 EQU TC2M.2
FPWM2OUT EQU TC2M.0
TC2C EQU 0BDH
TC2R EQU 0BEH
TC2D EQU 0BFH
T1M EQU 0C0H
FT1ENB EQU T1M.7
FT1RATE2 EQU T1M.6
FT1RATE1 EQU T1M.5
FT1RATE0 EQU T1M.4
FT1CKS EQU T1M.3
T1CL EQU 0C1H
T1CH EQU 0C2H
CPTM EQU 0C3H
FCPTEN EQU CPTM.7
FCPTMD EQU CPTM.3
FCPTSTART EQU CPTM.2
FCPTG1 EQU CPTM.1
FCPTG0 EQU CPTM.0
CPTCL EQU 0C4H
CPTCH EQU 0C5H
P4CON EQU 0C6H
P5CON EQU 0C7H
ADM EQU 0C8H
FADENB EQU ADM.7
FADS EQU ADM.6
FEOC EQU ADM.5
FGCHS EQU ADM.4
FCHS3 EQU ADM.3
FCHS2 EQU ADM.2
FCHS1 EQU ADM.1
FCHS0 EQU ADM.0
ADB EQU 0C9H
FADB9 EQU ADB.7
FADB8 EQU ADB.6
FADB7 EQU ADB.5
FADB6 EQU ADB.4
FADB5 EQU ADB.3
FADB4 EQU ADB.2
FADB3 EQU ADB.1
FADB2 EQU ADB.0
ADR EQU 0CAH
FADCKS1 EQU ADR.6
FADLEN EQU ADR.5
FADCKS0 EQU ADR.4
FADB1 EQU ADR.1
FADB0 EQU ADR.0
ADT EQU 0CBH
FADTS1 EQU ADT.7
FADTS0 EQU ADT.6
FADT4 EQU ADT.4
FADT3 EQU ADT.3
FADT2 EQU ADT.2
FADT1 EQU ADT.1
FADT0 EQU ADT.0
PECMD EQU 0DBH
PEROML EQU 0DCH
PEROMH EQU 0DDH
PERAML EQU 0DEH
PERAMCNT EQU 0DFH
SIOM EQU 0E0H
FSENB EQU SIOM.7
FSTART EQU SIOM.6
FSRATE1 EQU SIOM.5
FSRATE0 EQU SIOM.4
FMLSB EQU SIOM.3
FSCKMD EQU SIOM.2
FCPOL EQU SIOM.1
FCPHA EQU SIOM.0
SIOR EQU 0E1H
SIOB EQU 0E2H
SIOC EQU 0E3H
FSIOBZ EQU SIOC.2
FSCSEN EQU SIOC.1
FSCSP EQU SIOC.0
URTX EQU 0E4H
FUTXEN EQU URTX.7
FUTXPEN EQU URTX.6
FUTXPS EQU URTX.5
FUTXBRK EQU URTX.4
FURXBZ EQU URTX.3
FUTXBZ EQU URTX.2
URRX EQU 0E5H
FURXEN EQU URRX.7
FURXPEN EQU URRX.6
FURXPS EQU URRX.5
FURXPC EQU URRX.4
FUFMER EQU URRX.3
FURS2 EQU URRX.2
FURS1 EQU URRX.1
FURS0 EQU URRX.0
URCR EQU 0E6H
UTXD EQU 0E7H
URXD EQU 0E8H
MSPSTAT EQU 0EAH
FCKE EQU MSPSTAT.6
FD_A EQU MSPSTAT.5
FP EQU MSPSTAT.4
FS EQU MSPSTAT.3
FRED_WRT EQU MSPSTAT.2
FBF EQU MSPSTAT.0
MSPM1 EQU 0EBH
FWCOL EQU MSPM1.7
FMSPOV EQU MSPM1.6
FMSPENB EQU MSPM1.5
FCKP EQU MSPM1.4
FSLRXCKP EQU MSPM1.3
FMSPWK EQU MSPM1.2
FMSPC EQU MSPM1.0
MSPM2 EQU 0ECH
FGCEN EQU MSPM2.7
FACKSTAT EQU MSPM2.6
FACKDT EQU MSPM2.5
FACKEN EQU MSPM2.4
FRCEN EQU MSPM2.3
FPEN EQU MSPM2.2
FRSEN EQU MSPM2.1
FSEN EQU MSPM2.0
MSPBUF EQU 0EDH
FMSPBUF7 EQU MSPBUF.7
FMSPBUF6 EQU MSPBUF.6
FMSPBUF5 EQU MSPBUF.5
FMSPBUF4 EQU MSPBUF.4
FMSPBUF3 EQU MSPBUF.3
FMSPBUF2 EQU MSPBUF.2
FMSPBUF1 EQU MSPBUF.1
FMSPBUF0 EQU MSPBUF.0
MSPADR EQU 0EEH
FMSPADR7 EQU MSPADR.7
FMSPADR6 EQU MSPADR.6
FMSPADR5 EQU MSPADR.5
FMSPADR4 EQU MSPADR.4
FMSPADR3 EQU MSPADR.3
FMSPADR2 EQU MSPADR.2
FMSPADR1 EQU MSPADR.1
FMSPADR0 EQU MSPADR.0
STKP EQU 0EFH
FGIE EQU STKP.7
FLVD24 EQU STKP.6
FLVD33 EQU STKP.5
FSTKPB2 EQU STKP.2
FSTKPB1 EQU STKP.1
FSTKPB0 EQU STKP.0
STK7L EQU 0F0h
STK7H EQU 0F1h
STK6L EQU 0F2h
STK6H EQU 0F3h
STK5L EQU 0F4h
STK5H EQU 0F5h
STK4L EQU 0F6h
STK4H EQU 0F7h
STK3L EQU 0F8h
STK3H EQU 0F9h
STK2L EQU 0FAh
STK2H EQU 0FBh
STK1L EQU 0FCh
STK1H EQU 0FDh
STK0L EQU 0FEh
STK0H EQU 0FFh
@RST_WDT macro
MOV A, #0x5A
B0MOV WDTR, A
endm
SleepMode macro
B0BSET FCPUM0
endm
GreenMode macro
B0BSET FCPUM1
NOP
NOP
endm
SlowMode macro
B0BSET FCLKMD
B0BSET FSTPHX
endm
Slow2Normal macro
B0BCLR FSTPHX
NOP
NOP
NOP
B0BCLR FCLKMD
endm
endif