projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* device/lib/_memset.c: assembler version for mcs51
[fw/sdcc]
/
device
/
include
/
pic16
/
p18fxxx.inc
1
#ifndef __P18FXXX__
2
#define __P18FXXX__ 1
3
4
5
list r=dec, n=96, st=off, mm=off
6
7
nolist
8
9
; This header file defines configurations, registers, and other useful bits of
10
; information common to all PIC18Fxxx microcontrollers.
11
12
FSR0 equ 0
13
FSR1 equ 1
14
FSR2 equ 2
15
16
FAST equ 1
17
18
W equ 0
19
A equ 0
20
ACCESS equ 0
21
BANKED equ 1
22
23
; Register Files
24
25
TOSU equ 0x0FFF
26
TOSH equ 0x0FFE
27
TOSL equ 0x0FFD
28
29
STKPTR equ 0x0FFC
30
31
PCLATU equ 0x0FFB
32
PCLATH equ 0x0FFA
33
PCL equ 0x0FF9
34
35
TBLPTRU equ 0x0FF8
36
TBLPTRH equ 0x0FF7
37
TBLPTRL equ 0x0FF6
38
TABLAT equ 0x0FF5
39
40
PRODH equ 0x0FF4
41
PRODL equ 0x0FF3
42
43
INDF0 equ 0x0FEF
44
POSTINC0 equ 0x0FEE
45
POSTDEC0 equ 0x0FED
46
PREINC0 equ 0x0FEC
47
PLUSW0 equ 0x0FEB
48
FSR0H equ 0x0FEA
49
FSR0L equ 0x0FE9
50
51
WREG equ 0x0FE8
52
53
INDF1 equ 0x0FE7
54
POSTINC1 equ 0x0FE6
55
POSTDEC1 equ 0x0FE5
56
PREINC1 equ 0x0FE4
57
PLUSW1 equ 0x0FE3
58
FSR1H equ 0x0FE2
59
FSR1L equ 0x0FE1
60
61
BSR equ 0x0FE0
62
63
INDF2 equ 0x0FDF
64
POSTINC2 equ 0x0FDE
65
POSTDEC2 equ 0x0FDD
66
PREINC2 equ 0x0FDC
67
PLUSW2 equ 0x0FDB
68
FSR2H equ 0x0FDA
69
FSR2L equ 0x0FD9
70
71
STATUS equ 0x0FD8
72
73
PORTC equ 0x0F82
74
PORTB equ 0x0F81
75
PORTA equ 0x0F80
76
77
; Status Register Bit Definitions
78
79
C equ 0
80
DC equ 1
81
Z equ 2
82
OV equ 3
83
N equ 4
84
85
list
86
#endif