See also
The wiring of the radio and the ATmega is shown below:
AVR RF230
--- -----
PB4 --> SLPTR
PE5 <-- IRQ (INT5)
PA7 --> RSTN
PB0 --> SS
PB2 --> MOSI
PB3 <-- MISO
PB1 --> SCK
XTAL1 <-- MCLK
Meshbit - AVR
Key1 - IRQ6 - PE6 (INT6)
Key2 - IRQ7 - PE7 (INT7)
SW1 - GPIO3 - PG0
SW2 - GPIO4 - PG1
SW3 - GPIO5 - PG1
LED1 - GPIO0 - PB5
LED2 - GPIO1 - PB6
LED3 - GPIO2 - PB7
Fuses/Locks:
uracoli settings:
LF: 0xe2 - 8MHz internal RC Osc.
HF: 0x11 - without boot loader
HF: 0x10 - with boot loader
EF: 0xff
LOCK: 0xef - protection of boot section
original settings
LF: 0x62 - ... ? todo
HF: 0x1d - ... ?
EF: 0xff
Bootloader:
Start at byte=0x1e000, address=0xf000, size = 4096 instructions/ 8192 bytes
Defines | |
| #define | HIF_TYPE (HIF_UART_1) |
| #define | HWTMR_PRESCALE (1) |
| #define | LED_DDR DDRB |
| #define | LED_MASK 0xe0 |
| #define | LED_NUMBER (3) |
| #define | LED_PORT PORTB |
| #define | LED_SHIFT (5) |
| #define | LEDS_INVERSE (0) |
| #define | MAX_FRAME_SIZE (127) |
| #define HIF_TYPE (HIF_UART_1) |
On the Meshbean board UART1 is routed either via a FT232BM USB converter to connector CN1 or via a RS232 level shifter to header P2. The selection is done with jumper J3.
| #define HWTMR_PRESCALE (1) |
Timer is clocked at F_CPU, and TIMER_IRQ_vect is called every 65535 ticks.
| #define LED_DDR DDRB |
DDR register for LED
| #define LED_MASK 0xe0 |
MASK value for LED
| #define LED_NUMBER (3) |
number of LEDs for this board
| #define LED_PORT PORTB |
PORT register for LED
| #define LED_SHIFT (5) |
SHIFT value for LED
| #define LEDS_INVERSE (0) |
a 1 at the PORT means the LED is off
| #define MAX_FRAME_SIZE (127) |
maximum allowed frame size
1.5.5