Rev 585 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 585 | Rev 628 | ||
|---|---|---|---|
| 1 | ## Node specific configuration file for bios |
1 | ## Node specific configuration file for bios |
| 2 | 2 | ||
| 3 | HW_NAME=NodeEssential |
3 | HW_NAME=NodeEssential |
| 4 | HW_VERSION=2 |
4 | HW_VERSION=2 |
| 5 | 5 | ||
| 6 | # Uncomment to make node autostart after X time-msgs has been sent to node |
6 | # Uncomment to make node autostart after X time-msgs has been sent to node |
| 7 | # Do not choose 0 as X, also 1 is a bad choice |
7 | # Do not choose 0 as X, also 1 is a bad choice |
| 8 | # This should not be used on nodes with application under developement |
8 | # This should not be used on nodes with application under developement |
| 9 | #AUTOSTART=5 |
9 | #AUTOSTART=5 |
| 10 | 10 | ||
| 11 | # This number should be unique on your network |
11 | # This number should be unique on your network |
| 12 | NODE_ID=0x02 |
12 | NODE_ID=0x02 |
| 13 | # F_CPU is the clock frequency of your microcontroller, check fuses below for external/internal clock source |
13 | # F_CPU is the clock frequency of your microcontroller, check fuses below for external/internal clock source |
| 14 | F_CPU=8000000UL |
14 | F_CPU=8000000UL |
| 15 | 15 | ||
| 16 | #---MEGA8--- |
16 | #---MEGA8--- |
| 17 | #MCU=atmega8 |
17 | #MCU=atmega8 |
| 18 | #HIGHFUSE=0xd4 |
18 | #HIGHFUSE=0xd4 |
| 19 | #LOWFUSE=0x24 |
19 | #LOWFUSE=0x24 |
| 20 | #BOOT_START=0x1e00 |
20 | #BOOT_START=0x1e00 |
| 21 | 21 | ||
| 22 | #---MEGA88--- |
22 | #---MEGA88--- |
| 23 | #MCU=atmega88 |
23 | #MCU=atmega88 |
| 24 | #HIGHFUSE=0xdc |
24 | #HIGHFUSE=0xdc |
| 25 | #LOWFUSE=0xe2 |
25 | #LOWFUSE=0xe2 |
| 26 | #EXTFUSE=0x04 |
26 | #EXTFUSE=0x04 |
| 27 | #BOOT_START=0x1e00 |
27 | #BOOT_START=0x1e00 |
| 28 | 28 | ||
| 29 | #---MEGA168--- |
29 | #---MEGA168--- |
| 30 | #MCU=atmega168 |
30 | #MCU=atmega168 |
| 31 | #HIGHFUSE=0xdc |
31 | #HIGHFUSE=0xdc |
| 32 | #LOWFUSE=0xe2 |
32 | #LOWFUSE=0xe2 |
| 33 | #EXTFUSE=0x02 |
33 | #EXTFUSE=0x02 |
| 34 | #BOOT_START=0x3c00 |
34 | #BOOT_START=0x3c00 |
| 35 | 35 | ||
| 36 | # CAN configuration |
36 | # CAN configuration |
| 37 | CAN_CONTROLLER=MCP2515 |
37 | CAN_CONTROLLER=MCP2515 |
| 38 |
|
38 | MCP_CS_PORT=PORTB |
| - | 39 | MCP_CS_DDR=DDRB |
|
| - | 40 | MCP_CS_BIT=PB2 |
|
| 39 | MCP_CAN_BITRATE_KBPS=250 |
41 | MCP_CAN_BITRATE_KBPS=250 |
| - | 42 | MCP_CLOCK_FREQ_MHZ=20 |
|
| - | 43 | MCP_CLOCK_PRESC=1 |
|
| - | 44 | ||
| - | 45 | # For MCP_CLOCK_FREQ_MHZ=20 MCP_CLOCK_FREQ_MHZ=16 |
|
| - | 46 | # MCP_CLOCK_PRESC external clock external clock |
|
| - | 47 | # 1 20MHz 16MHz |
|
| - | 48 | # 2 10MHz 8MHz |
|
| - | 49 | # 4 5MHz 4MHz |
|
| - | 50 | # 8 2.5MHz 2MHz |
|
| - | 51 | # Make sure to change F_CPU accordingly if using external clock on AVR (LOWFUSE) |
|
| 40 | 52 | ||
| 41 | 53 | ||
| 42 | #Some common settings of fuses |
54 | #Some common settings of fuses |
| 43 | #LOWFUSE for mega88 and mega168 |
55 | #LOWFUSE for mega88 and mega168 |
| 44 | #0xe7 #CKDIV8=1, external crystal |
56 | #0xe7 #CKDIV8=1, external crystal |
| 45 | #0xe0 #CKDIV8=1, external clock (used if mcu is clocked from can-controller, F_CPU should be 16MHz or 20MHz) |
57 | #0xe0 #CKDIV8=1, external clock (used if mcu is clocked from can-controller, F_CPU should be 16MHz or 20MHz) |
| 46 | #0xe2 #CKDIV8=1, internal RC (internal AVR-clock, F_CPU should be 8MHz) |
58 | #0xe2 #CKDIV8=1, internal RC (internal AVR-clock, F_CPU should be 8MHz) |
| 47 | #LOWFUSE for mega8 |
59 | #LOWFUSE for mega8 |
| 48 | #0x24 #BODLEVEL = 4.0V, BODEN=enabled, internal 8MHz |
60 | #0x24 #BODLEVEL = 4.0V, BODEN=enabled, internal 8MHz |
| 49 | #0x20 #BODLEVEL = 4.0V, BODEN=enabled, external clock |
61 | #0x20 #BODLEVEL = 4.0V, BODEN=enabled, external clock |