Rev 1415 | Rev 1748 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1415 | Rev 1640 | ||
|---|---|---|---|
| Line 21... | Line 21... | ||
| 21 | # This number should be unique on your network (for nodes with HW_ID it's not clear if this id is needed) |
21 | # This number should be unique on your network (for nodes with HW_ID it's not clear if this id is needed) |
| 22 | 22 | ||
| 23 | # F_CPU is the clock frequency of your microcontroller, check fuses below for external/internal clock source |
23 | # F_CPU is the clock frequency of your microcontroller, check fuses below for external/internal clock source |
| 24 | F_CPU=8000000UL |
24 | F_CPU=8000000UL |
| 25 | 25 | ||
| 26 | #---MEGA8--- |
- | |
| 27 | #MCU=atmega8 |
- | |
| 28 | #HIGHFUSE=0xd4 |
- | |
| 29 | #LOWFUSE=0x24 |
- | |
| 30 |
|
26 | # Device parameters |
| 31 | - | ||
| 32 | #---MEGA88--- |
- | |
| 33 | #MCU=atmega88 |
- | |
| 34 | #HIGHFUSE=0xdc |
- | |
| 35 | #LOWFUSE=0xe2 |
- | |
| 36 | #EXTFUSE=0x04 |
- | |
| 37 | #BOOT_START=0x1e00 |
- | |
| 38 | - | ||
| 39 | #---MEGA168--- |
- | |
| 40 | MCU=atmega168 |
27 | MCU=atmega168 |
| 41 | HIGHFUSE=0xdc |
28 | HIGHFUSE=0xdc |
| 42 | LOWFUSE=0xe2 |
29 | LOWFUSE=0xe2 |
| 43 | EXTFUSE=0x02 |
30 | EXTFUSE=0x02 |
| 44 | BOOT_START=0x3c00 |
31 | BOOT_START=0x3c00 |
| 45 | - | ||
| 46 | #---MEGA328P--- |
- | |
| 47 | #MCU=atmega328p |
- | |
| 48 | #HIGHFUSE=0xdc |
- | |
| 49 | #LOWFUSE=0xe2 |
- | |
| 50 | #EXTFUSE=0x04 |
- | |
| 51 | #BOOT_START=0x7c00 |
- | |
| 52 | 32 | ||
| 53 | # CAN configuration (old nodes: PORTB, DDRB, PB2) |
33 | # CAN configuration (old nodes: PORTB, DDRB, PB2) |
| 54 | CAN_CONTROLLER=MCP2515 |
34 | CAN_CONTROLLER=MCP2515 |
| 55 | MCP_CS_PORT=PORTC |
35 | MCP_CS_PORT=PORTC |
| 56 | MCP_CS_DDR=DDRC |
36 | MCP_CS_DDR=DDRC |
| Line 58... | Line 38... | ||
| 58 | MCP_CAN_BITRATE_KBPS=250 |
38 | MCP_CAN_BITRATE_KBPS=250 |
| 59 | MCP_CLOCK_FREQ_MHZ=20 |
39 | MCP_CLOCK_FREQ_MHZ=20 |
| 60 | MCP_CLOCK_PRESC=1 |
40 | MCP_CLOCK_PRESC=1 |
| 61 | 41 | ||
| 62 | 42 | ||
| 63 | 43 | ||
| - | 44 | ################################################################################ |
|
| 64 | # Everything below is just help |
45 | # Everything below is just help |
| - | 46 | ################################################################################ |
|
| 65 | 47 | ||
| 66 | # For MCP_CLOCK_FREQ_MHZ=20 MCP_CLOCK_FREQ_MHZ=16 |
48 | # For MCP_CLOCK_FREQ_MHZ=20 MCP_CLOCK_FREQ_MHZ=16 |
| 67 | # MCP_CLOCK_PRESC external clock external clock |
49 | # MCP_CLOCK_PRESC external clock external clock |
| 68 | # 1 20MHz 16MHz |
50 | # 1 20MHz 16MHz |
| 69 | # 2 10MHz 8MHz |
51 | # 2 10MHz 8MHz |
| 70 | # 4 5MHz 4MHz |
52 | # 4 5MHz 4MHz |
| 71 | # 8 2.5MHz 2MHz |
53 | # 8 2.5MHz 2MHz |
| 72 | # Make sure to change F_CPU accordingly if using external clock on AVR (LOWFUSE) |
54 | # Make sure to change F_CPU accordingly if using external clock on AVR (LOWFUSE) |
| - | 55 | ||
| - | 56 | ||
| - | 57 | #---MEGA8--- |
|
| - | 58 | #MCU=atmega8 |
|
| - | 59 | #HIGHFUSE=0xd4 |
|
| - | 60 | #LOWFUSE=0x24 |
|
| - | 61 | #BOOT_START=0x1e00 |
|
| - | 62 | ||
| - | 63 | #---MEGA88--- |
|
| - | 64 | #MCU=atmega88 |
|
| - | 65 | #HIGHFUSE=0xdc |
|
| - | 66 | #LOWFUSE=0xe2 |
|
| - | 67 | #EXTFUSE=0x04 |
|
| - | 68 | #BOOT_START=0x1e00 |
|
| - | 69 | ||
| - | 70 | #---MEGA168--- |
|
| - | 71 | #MCU=atmega168 |
|
| - | 72 | #HIGHFUSE=0xdc |
|
| - | 73 | #LOWFUSE=0xe2 |
|
| - | 74 | #EXTFUSE=0x02 |
|
| - | 75 | #BOOT_START=0x3c00 |
|
| - | 76 | ||
| - | 77 | #---MEGA328P--- |
|
| - | 78 | #MCU=atmega328p |
|
| - | 79 | #HIGHFUSE=0xdc |
|
| - | 80 | #LOWFUSE=0xe2 |
|
| - | 81 | #EXTFUSE=0x04 |
|
| - | 82 | #BOOT_START=0x7c00 |
|
| 73 | 83 | ||
| 74 | 84 | ||
| 75 | #Some common settings of fuses |
85 | #Some common settings of fuses |
| 76 | #LOWFUSE for mega88 and mega168 |
86 | #LOWFUSE for mega88 and mega168 |
| 77 | #0xe7 #CKDIV8=1, external crystal |
87 | #0xe7 #CKDIV8=1, external crystal |