-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconnectCDR5k_14k50.jal
57 lines (47 loc) · 2.5 KB
/
connectCDR5k_14k50.jal
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
-- futaba CDR-5000 interface adaptor
-- based on jalib usb sereal library demo program (18f14k50_usb_serial.jal) released under the BSD license
-- this is hardware definition of pic18f14k50
-- chip setup
include 18f14k50
-- target frequency to 48 MHz
pragma target clock 48_000_000
-- fuses
pragma target CPUDIV P1 -- NO_CPU_SYSTEM_CLOCK_DIVIDE
pragma target USBDIV P1 -- USB_CLOCK_COMES_DIRECTLY_FROM_THE_OSC1_OSC2_OSCILLATOR_BLOCK_NO_DIVIDE
pragma target OSC HS
pragma target PLLEN P4 -- OSCILLATOR_MULTIPLIED_BY_4
pragma target FCMEN DISABLED
pragma target IESO DISABLED
pragma target PWRTE DISABLED -- power up timer
pragma target BROWNOUT DISABLED -- no brownout detection
pragma target VOLTAGE V30 -- brown out voltage
pragma target WDT DISABLED -- no watchdog
pragma target WDTPS P32K -- watch dog saler setting
pragma target MCLR EXTERNAL -- external reset
pragma target LVP DISABLED -- no low-voltage programming
pragma target XINST ENABLED -- extended instruction set
pragma target DEBUG DISABLED -- background debugging
pragma target CP0 DISABLED -- code block 0 not protected
pragma target CP1 DISABLED -- code block 1 not protected
pragma target CPB DISABLED -- bootblock code not write protected
pragma target WRT0 DISABLED -- table writeblock 0 not protected
pragma target WRT1 DISABLED -- table write block 1 not protected
pragma target WRTB DISABLED -- bootblock not write protected
pragma target WRTC DISABLED -- config not write protected
pragma target EBTR0 DISABLED -- table read block 0 not protected
pragma target EBTR1 DISABLED -- table read block 1 not protected
pragma target EBTRB DISABLED -- boot block not protected
pragma target HFOFST ENABLED -- THE_SYSTEM_CLOCK_IS_HELD_OFF_UNTIL_THE_HFINTOSC_IS_STABLE
alias rx is pin_b7 -- not used
alias rx_direction is pin_b7_direction
rx_direction = input
pin_CCP1_direction = input
alias mon0 is LATC_LATC7
alias mon0_direction is pin_C7_direction
mon0 = 0
mon0_direction = output
alias mon1 is LATC_LATC6
alias mon1_direction is pin_C6_direction
mon1 = 0
mon1_direction = output
include connectCDR5k