
[General]
ChipName=SN8P2947
Description=8 Bit MCU - SN8P2947


[Register]
;Item# = Index, Name, Address, Size, FormatMask, DefaultValue, ReadMask, WriteMask, CanDisplay
;if Address == NULL, means general register, none-addressable
;Address, FormatMask, DefaultValue, also can be presented by hexadecimal style, ie. 0xffff
Count=54
Item0=0,A,NULL,8,0xff,0x0,0xff,0xff,1
Item1=1,R,0x82,8,0xff,0x0,0xff,0xff,1
Item2=2,Z,0x83,8,0xff,0x0,0xff,0xff,1
Item3=3,Y,0x84,8,0xff,0x0,0xff,0xff,1
Item4=4,PFLAG,0x86,3,0x7,0x0,0x7,0x7,1
Item5=5,RBANK,0x87,1,0x1,0x0,0x1,0x1,1
Item6=6,LCDM1,0x89,8,0xff,0x3,0xff,0xff,1
Item7=7,LCDM2,0x8a,5,0x1f,0x3,0x1f,0x1f,1
Item8=8,VREG,0x90,8,0xfc,0x50,0xfc,0xfc,1
Item9=9,AMPM1,0x91,8,0xef,0xae,0xef,0xef,1
Item10=10,AMPM2,0x92,8,0xf3,0x10,0xf3,0xf3,1
Item11=11,ADCM1,0x93,8,0xff,0xd2,0xff,0xff,1
Item12=12,ADCM2,0x94,8,0xff,0x76,0xff,0xff,1
Item13=13,LBTM,0x95,6,0x3f,0x0,0x3f,0x3f,1
Item14=14,ADCDH,0x96,8,0xff,0x0,0xff,0x0,1
Item15=15,ADCDM,0x97,8,0xff,0x0,0xff,0x0,1
Item16=16,ADCDL,0x98,8,0xff,0x0,0xff,0x0,1
Item17=17,ROMADRH,0xa0,8,0x87,0x0,0x87,0x7,1
Item18=18,ROMADRL,0xa1,8,0xff,0x0,0xff,0xff,1
Item19=19,ROMDAH,0xa2,8,0xff,0x0,0xff,0xff,1
Item20=20,ROMDAL,0xa3,8,0xff,0x0,0xff,0xff,1
Item21=21,ROMCNT,0xa4,2,0x3,0x0,0x0,0x3,1
Item22=22,P0M,0xb8,8,0xff,0x0,0xff,0xff,1
Item23=23,PEDGE,0xbf,5,0x18,0x0,0x18,0x18,1
Item24=24,P1M,0xc1,2,0x3,0x0,0x3,0x3,1
Item25=25,INTRQ,0xc8,8,0x91,0x0,0x91,0x91,1
Item26=26,INTEN,0xc9,8,0x91,0x0,0x91,0x91,1
Item27=27,OSCM,0xca,5,0x1e,0x0,0x1e,0x1e,1
Item28=28,WDTR,0xcc,8,0xff,0x0,0x0,0xff,1
Item29=29,PCL,0xce,8,0xff,0x0,0xff,0xff,1
Item30=30,PCH,0xcf,8,0xff,0x0,0xff,0xff,1
Item31=31,P0,0xd0,8,0xff,0x0,0xff,0xff,1
Item32=32,P1,0xd1,2,0x3,0x0,0x3,0x3,1
Item33=33,T0M,0xd8,8,0xf0,0x0,0xf0,0xf0,1
Item34=34,T0C,0xd9,8,0xff,0x0,0xff,0xff,1
Item35=35,STKP,0xdf,8,0x87,0x7,0x87,0x87,1
Item36=36,P1UR,0xe1,2,0x3,0x0,0x0,0x3,1
Item37=37,@YZ,0xe7,8,0xff,0x0,0xff,0xff,1
Item38=38,STK7L,0xf0,8,0xff,0x0,0xff,0xff,1
Item39=39,STK7H,0xf1,8,0xff,0x0,0xff,0xff,1
Item40=40,STK6L,0xf2,8,0xff,0x0,0xff,0xff,1
Item41=41,STK6H,0xf3,8,0xff,0x0,0xff,0xff,1
Item42=42,STK5L,0xf4,8,0xff,0x0,0xff,0xff,1
Item43=43,STK5H,0xf5,8,0xff,0x0,0xff,0xff,1
Item44=44,STK4L,0xf6,8,0xff,0x0,0xff,0xff,1
Item45=45,STK4H,0xf7,8,0xff,0x0,0xff,0xff,1
Item46=46,STK3L,0xf8,8,0xff,0x0,0xff,0xff,1
Item47=47,STK3H,0xf9,8,0xff,0x0,0xff,0xff,1
Item48=48,STK2L,0xfa,8,0xff,0x0,0xff,0xff,1
Item49=49,STK2H,0xfb,8,0xff,0x0,0xff,0xff,1
Item50=50,STK1L,0xfc,8,0xff,0x0,0xff,0xff,1
Item51=51,STK1H,0xfd,8,0xff,0x0,0xff,0xff,1
Item52=52,STK0L,0xfe,8,0xff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2,2,3,3,4,4,5,5,6,6,7,7
STK3H=0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7
STK2L=0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7
STK2H=0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7
STK1L=0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7
STK1H=0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7
STK0L=0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7
STK0H=0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7

[Rom]
;Measurement = size
Measurement=16
;EntireSize = size, can use 'k', 'K', 'm', 'M', 'g', 'G' to represent measurement
EntireSize=2K

ForbiddenCount=0
;Forbidden = start address, end address
Forbidden0=0, 0

;Banked = 0/1 means false/true
Banked=1
BankStartAddr=0
;BankSize = size, can use 'k', 'K', 'm', 'M', 'g', 'G' to represent measurement
BankSize=16K


[Ram]
;Measurement = size
Measurement=8
;EntireSize = size, can use 'k', 'K', 'm', 'M', 'g', 'G' to represent measurement
EntireSize=256

ForbiddenCount=1
;Forbidden# = start address, end address
Forbidden0=0x100, 0xEFF

;Banked = 0/1 means false/true
Banked=1
BankStartAddr=0
;BankSize = size, can use 'k', 'K', 'm', 'M', 'g', 'G' to represent measurement
BankSize=256


[PC]
;Name=PC
;if Address == NULL, means none-addressable
Address=0xce
Size=11


[Stack]
;Name=STKP
;if Address == NULL, means none-addressable
Address=0xdf
;if size == 0, means no limitation
Size=8
IsIncrease=1


[I/O Port]
;Item# = Name, Size, Bit Mask, Input Bit Mask, Output Bit Mask
Count=2
Item0=P0, 8, 0xff, 0xff, 0xff
Item1=P1, 2, 0x03, 0x03, 0x03


[Timer]
Count=2
Item0=WDT
Item1=T0


[Interrupt]
;Item# = Source Name, Priority, ISR Entry
Count=3
Item0=T0, 1, 0x08
Item1=ADC, 1, 0x08
Item2=INT0, 1, 0x08


[LCDInformation]
;LCD information in the section
RamSize=12
StartAddr=0xf00
COMNum=4
SEGNum=12
;number of COM per byte
COMNumPerByte=4


