summaryrefslogtreecommitdiff
path: root/contrib/howto-program-zigbit.txt
blob: ac247f20cb3511b4440634fdfabda26fb491ab25 (plain) (blame)
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
***** How to program Zigbit? *******

It is possible to programming Zigbits with

    ISP
    JTAG
    Using pre-programmed serial bootloader


Using JTAG will give the flexibility to debug the device with a debugger like JTAGICEmkII, wherein with ISP only programming is possible.

The microcontroller that is part of the Zigbit module is the ATmega1281. So, it is possible to use JTAG or ISP programming.

JTAG :

Connectivity JTAG Header(Pin) <--> ZigBit module (Pin)

TCK (1) ---TCK (pin 29)
TMS (5) ---TMS (pin 26)
TDI (9) ---TDI (pin 27)
TDO (3) ---TDO (pin 28)
nTRST (8) ---NC
nSRST (6) ---RESET (pin 8)
VTref (4) ---vCC (pins 24-25)
GND (2,10) --- GND (pins 22-23)


ISP:

Connectivity ISP Header (Pin)<--> ZigBit module (Pin)

MOSI(pin 1) --- USART0_TXD (pin 39)
MISO(pin 4) --- USART0_RXD (pin 38)
SCK (pin 3) --- SPI_CLK (pin 1)
RESET(pin 5) --- RESET (pin 8)
GND (pin 6) --- GND (pins 22-23)
VCC (pin 2) --- VCC (pins 24-25)


Serial Bootloader:

The Zigbit modules are preprogrammed with a serial bootloader. It is possible to use this serial bootloader to program the application code.

The Serial Bootloader is a stand alone package that comes with the Serial Bootloader User Guide(AVR2054) and a software package that
contains a Bootloader PC tool,bootloader source files and precompiled bootloader firmware images.
Click on the CD-icon [1] to download the serial bootloader software package.


[1] ... http://www.atmel.com/Images/AVR2054.zip