;   87LPC768 processor definition file
;   ==================================
;
;   Modified from 83c762 by AOS 2001-07-03
;   Last modified: W.W. Heinz,  2002-04-01

P0	DATA	080H    ;SFR
SP	DATA	081H
DPL	DATA	082H
DPH	DATA	083H
P0M1	DATA	084H
P0M2	DATA	085H
KBI	DATA	086H
PCON	DATA	087H
TCON	DATA	088H
TMOD	DATA	089H
TL0	DATA	08AH
TL1	DATA	08BH
TH0	DATA	08CH
TH1	DATA	08DH
P1	DATA	090H
P1M1	DATA	091H
P1M2	DATA	092H
DIVM	DATA	095H
SCON	DATA	098H
SBUF	DATA	099H
P2	DATA	0A0H
AUXR1	DATA	0A2H
P2M1	DATA	0A4H
P2M2	DATA	0A5H
WDRST	DATA	0A6H
WDCON	DATA	0A7H
IEN0	DATA	0A8H
SADDR	DATA	0A9H
CMP1	DATA	0ACH
CMP2	DATA	0ADH
IP0H	DATA	0B7H
IP0	DATA	0B8H
SADEN	DATA	0B9H
ADCON	DATA	0C0H
DAC0	DATA	0C5H
I2CFG	DATA	0C8H
PSW	DATA	0D0H
CNSW0	DATA	0D1H
CNSW1	DATA	0D2H
CPSW0	DATA	0D3H
CPSW1	DATA	0D4H
CPSW2	DATA	0D5H
CPSW3	DATA	0D6H
CPSW4	DATA	0D7H
I2CON	DATA	0D8H
I2DAT	DATA	0D9H
PWMCON0	DATA	0DAH
PWMCON1	DATA	0DBH
ACC	DATA	0E0H
IEN1	DATA	0E8H
B	DATA	0F0H
PT0AD	DATA	0F6H
IP1H	DATA	0F7H
IP1	DATA	0F8H

CMP_2	BIT	080H	;Port 0
PWM3	BIT	080H
CIN2B	BIT	081H
PWM0	BIT	081H
CIN2A	BIT	082H
BRAKE	BIT	082H
CIN1B	BIT	083H
AD0	BIT	083H
CIN1A	BIT	084H
AD1	BIT	084H
CMPREF	BIT	085H
AD2	BIT	085H
CMP_1	BIT	086H    ;Pins CMP1 and CMP2 renamed to CMP_1 and CMP_2,
AD3	BIT	086H    ;because of name conflicts with SFR!
T1	BIT	087H

I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