3
3
;==========================================================================
4
; $Id: p18f66j16.inc 448 2006-08-19 02:52:41Z craigfranklin $
5
4
; MPASM PIC18F66J16 processor include
7
; (c) Copyright 1999-2006 Microchip Technology, All rights reserved
6
; (c) Copyright 1999-2008 Microchip Technology, All rights reserved
8
7
;==========================================================================
298
;----- PMPENL Bits -----------------------------------------------------
309
;----- PMPENH Bits -----------------------------------------------------
320
;----- PMPMODEL Bits -----------------------------------------------------
300
;----- PMEL Bits -----------------------------------------------------
311
;----- PMEH Bits -----------------------------------------------------
322
;----- PMMODEL Bits -----------------------------------------------------
321
323
WAITE0 EQU H'0000'
322
324
WAITE1 EQU H'0001'
323
325
WAITM0 EQU H'0002'
353
;----- PMPCONH Bits -----------------------------------------------------
355
;----- PMCONH Bits -----------------------------------------------------
354
356
PTRDEN EQU H'0000'
355
357
PTWREN EQU H'0001'
356
358
PTBEEN EQU H'0002'
357
359
ADRMUX0 EQU H'0003'
358
360
ADRMUX1 EQU H'0004'
359
361
PSIDL EQU H'0005'
361
362
PMPEN EQU H'0007'
364
;----- PMPADDRH Bits -----------------------------------------------------
365
;----- PMADDRH Bits -----------------------------------------------------
370
;----- CMSTAT Bits -----------------------------------------------------
369
375
;----- CMSTATUS Bits -----------------------------------------------------
370
376
COUT1 EQU H'0000'
371
377
COUT2 EQU H'0001'
1340
1418
ADFM EQU H'0007'
1343
;----- ADPCFGL Bits -----------------------------------------------------
1421
;----- ANCON0 Bits -----------------------------------------------------
1344
1422
PCFG0 EQU H'0000'
1345
1423
PCFG1 EQU H'0001'
1346
1424
PCFG2 EQU H'0002'
1347
1425
PCFG3 EQU H'0003'
1348
1426
PCFG4 EQU H'0004'
1350
1427
PCFG6 EQU H'0006'
1351
1428
PCFG7 EQU H'0007'
1354
;----- ADCON1 Bits -----------------------------------------------------
1431
;----- ADCON0 Bits -----------------------------------------------------
1355
1432
DONE EQU H'0001'
1357
1434
GO_DONE EQU H'0001'
1734
1840
; FCMEN = ON Fail-Safe Clock Monitor enabled
1736
1842
; Oscillator Selection bits:
1737
; FOSC = INTOSCIO Internal oscillator, port function on RA6 and RA7
1738
; FOSC = INTOSC Internal oscillator, CLKOUT on RA6 and port function on RA7
1739
; FOSC = INTOSCPLLIO_HSINTOSC with PLL enabled, port function on RA6 and RA7
1740
; FOSC = INTOSCPLL_HS INTOSC with PLL enabled,CLKOUT on RA6 and port function on RA7
1741
; FOSC = HS HS oscillator, HS enabled
1742
; FOSC = HSPLL_HS HS oscillator, PLL enabled
1843
; FOSC = INTOSC Internal oscillator, port function on RA6 and RA7
1844
; FOSC = INTOSCO Internal oscillator, CLKOUT on RA6 and port function on RA7
1845
; FOSC = INTOSCPLL INTOSC with PLL enabled, port function on RA6 and RA7
1846
; FOSC = INTOSCPLLO INTOSC with PLL enabled,CLKOUT on RA6 and port function on RA7
1847
; FOSC = HS HS oscillator
1848
; FOSC = HSPLL HS oscillator, PLL enabled
1743
1849
; FOSC = EC EC Oscillator with clock out on RA6
1744
; FOSC = ECPLL_EC EC Oscillator with PLL , CLKOUT on RA6
1850
; FOSC = ECPLL EC Oscillator with PLL
1746
1852
; Watchdog Timer Postscaler Select bits:
1747
1853
; WDTPS = 1 1:1
1761
1867
; WDTPS = 16384 1:16384
1762
1868
; WDTPS = 32768 1:32768
1764
; External Bus Wait Enable bit:
1765
; WAIT = ON Wait states for operations on external memory bus enabled
1766
; WAIT = OFF Wait states for operations on external memory bus disabled
1768
; Data Bus Width Select bit:
1769
; BW = 8 8-bit external bus mode
1770
; BW = 16 16-bit external bus mode
1772
; Processor Mode Selection:
1773
; MODE = XM20 Extended Microcontroller mode - 20-bit Address mode
1774
; MODE = XM16 Extended Microcontroller mode - 16-bit Address mode
1775
; MODE = XM12 Extended Microcontroller mode - 12-bit Address mode
1776
; MODE = MM Microcontroller mode - External bus disabled
1778
; External Address Bus Shift Enable bit:
1779
; EASHFT = OFF Address shifting disabled, address on external bus reflects the PC value
1780
; EASHFT = ON Address shifting enabled, address on external bus is offset to start at 000000h
1782
; MSSP address select:
1783
; MSSPSEL = ALTERNATE 5 Bit address mode
1784
; MSSPSEL = MSSPPADDRX 7 Bit address mode
1787
; PMPMX = ALTERNATE PMP port pins not connected to EMB
1788
; PMPMX = DEFAULT PMP port pins connected to EMB
1791
; ECCPMX = ALTERNATE ECCP1 outputs (P1B/P1C) are multiplexed with RH7 and RH6; ECCP3 outputs (P3B/P3C) are multiplexed with RH5 and RH4
1792
; ECCPMX = DEFAULT ECCP1 outputs (P1B/P1C) are multiplexed with RE6 and RE5; ECCP3 outputs (P3B/P3C) are multiplexed with RE4 and RE3
1870
; MSSP Address Mask:
1871
; MSSPMSK = MSK5 5 Bit address masking
1872
; MSSPMSK = MSK7 7 Bit address masking
1794
1874
; ECCP2 MUX bit:
1795
1875
; CCP2MX = ALTERNATE ECCP2/P2A is multiplexed with RE7 in Microcontroller mode or with RB3 in Extended Microcontroller mode