2
; P16C923.INC Standard Header File, Version 1.02 Microchip Technology, Inc.
5
; This header file defines configurations, registers, and other useful bits of
6
; information for the PIC16C923 microcontroller. These names are taken to match
7
; the data sheets as closely as possible.
9
; Note that the processor must be selected before this file is
10
; included. The processor may be selected the following ways:
12
; 1. Command line switch:
13
; C:\ MPASM MYFILE.ASM /PIC16C923
14
; 2. LIST directive in the source file
16
; 3. Processor Type entry in the MPASM full-screen interface
18
;==========================================================================
22
;==========================================================================
26
;1.02 04/23/00 Added LCD controller bits
27
;1.01 05/12/97 Corrected ports F and G addresses
28
;1.00 04/10/96 Initial Release
30
;==========================================================================
34
;==========================================================================
37
MESSG "Processor-header file mismatch. Verify selected processor."
40
;==========================================================================
42
; Register Definitions
44
;==========================================================================
49
;----- Register Files------------------------------------------------------
75
OPTION_REG EQU H'0081'
112
;----- STATUS Bits --------------------------------------------------------
123
;----- INTCON Bits --------------------------------------------------------
134
;----- PIR1 Bits ----------------------------------------------------------
142
;----- T1CON Bits ---------------------------------------------------------
147
NOT_T1SYNC EQU H'0002'
148
T1INSYNC EQU H'0002' ; Backward compatibility only
152
;----- T2CON Bits ---------------------------------------------------------
162
;----- SSPCON Bits --------------------------------------------------------
173
;----- CCP1CON Bits -------------------------------------------------------
182
;----- OPTION Bits --------------------------------------------------------
193
;----- TRISE Bits ---------------------------------------------------------
203
;----- PIE1 Bits ----------------------------------------------------------
211
;----- PCON Bits ----------------------------------------------------------
215
;----- SSPSTAT Bits -------------------------------------------------------
220
NOT_ADDRESS EQU H'0005'
222
DATA_ADDRESS EQU H'0005'
226
I2C_START EQU H'0003'
230
NOT_WRITE EQU H'0002'
232
READ_WRITE EQU H'0002'
236
;----- LCDSE Bits ---------------------------------------------------------
247
;----- LCDPS Bits ---------------------------------------------------------
254
;----- LCDCON Bits --------------------------------------------------------
264
;==========================================================================
268
;==========================================================================
271
__BADRAM H'0D', H'18'-H'1F'
272
__BADRAM H'8D', H'8F'-H'91', H'95'-H'9F'
273
__BADRAM H'105', H'109', H'10C', H'120'-H'16F'
274
__BADRAM H'185', H'189', H'18C'-H'1EF'
276
;==========================================================================
280
;==========================================================================
286
_PWRTE_OFF EQU H'3FFF'
287
_PWRTE_ON EQU H'3FF7'