1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
opt nolist
;
; Device type definition for PIC16C710
;
__progmem_size equ 512
__data_eeprom_size equ 0
__config set 0x3fff
set_pic_type "PIC16C710", "14-bit"
__do_config macro ; keyword, value
if streqcase("\1", "wdte")| streqcase("\1", "wdt")
if streqcase("\2", "no") | streqcase("\2", "off")
__config set __config & 0xfffb
exitm
endif
if streqcase("\2", "yes") | streqcase("\2", "on")
__config set __config | 0x0004
exitm
endif
endif
if streqcase("\1", "pwrte")| streqcase("\1", "pwrt")
if streqcase("\2", "no") | streqcase("\2", "off")
__config set __config | 0x0008
exitm
endif
if streqcase("\2", "yes") | streqcase("\2", "on")
__config set __config & 0xfff7
exitm
endif
endif
if streqcase("\1", "boden")| streqcase("\1", "bod")
if streqcase("\2", "no") | streqcase("\2", "off")
__config set __config & 0xffbf
exitm
endif
if streqcase("\2", "yes") | streqcase("\2", "on")
__config set __config | 0x0040
exitm
endif
endif
if streqcase("\1", "cp")
if streqcase("\2", "no") | streqcase("\2", "off")
__config set __config | 0x3fb0
exitm
endif
if streqcase("\2", "yes") | streqcase("\2", "on")
__config set __config & 0xc04f
exitm
endif
endif
if streqcase("\1", "osc")
if streqcase("\2", "lp")
__config set (__config & 0xfffc) | 0x0000
exitm
endif
if streqcase("\2", "xt")
__config set (__config & 0xfffc) | 0x0001
exitm
endif
if streqcase("\2", "hs")
__config set (__config & 0xfffc) | 0x0002
exitm
endif
if streqcase("\2", "rc")
__config set (__config & 0xfffc) | 0x0003
exitm
endif
endif
endm
opt list
|