AVR-H128-CAN

AVR- H128-CAN development board
Users Manual
All boards produced by Olimex are ROHS compliant
Rev.A, January 2005
Copyright(c) 2009, OLIMEX Ltd, All rights reserved
Page1
INTRODUCTION
AVR-H128-CAN is inexpensive way to develop and prototype circuits with
AT90CAN128 without need to deal with SMD soldering. All microcontroller pins are available on extension header with 0.1" and power supply, oscillators, ICSP,
JTAG are wired, so all you need to do is to connect your additional components to the AVR ports, as the step is 0.1" these headers perfectly fit the prototype sea of pad boards with 0.1" step.
BOARD FEATURES
–
–
–
–
–
–
–
–
–
–
–
AT90CAN128-16AU microcontroller with 128KB Flash, 4KB RAM, 4KB
EEPROM, CAN controller
ICSP 5x2 pin connector for in-circuit programming with AVR-PG1 or AVR-PG2 or STK500 compatible programmer
JTAG 5x2 pin connector for in-circuit debugging with AVR-JTAG-L or AVR-
JTAG-USB
16MHz scillator circuit
32768 Hz oscillator circuit
Reset IC ZM33064
+5V voltage regulator LM78L05 power supply filtering capacitors extension pin headers for each uC pin
FR-4, 1.5 mm (0,062"), green soldermask, white silkscreen component print dimensions 47x47 mm (1.85x1.85")
ELECTROSTATIC WARNING
The AVR-H128-CAN board is shipped in protective anti-static packaging. The board must not be subject to high electrostatic potentials. General practice for working with static sensitive devices should be applied when working with this board.
BOARD USE REQUIREMENTS
Cables:
The cable you will need depends on the programmer/debugger you use. If you use AVR-JTAG or AVR-PG1 you will need RS232, if you use AVR-USB-JTAG or AVR-ISP500/TINY/ISO you will need 1.8 m A-B USB cable, if you use AVR-
PG2, you will need LPT cable.
Hardware:
One of OLIMEX Programmers/Debuggers – AVR-JTAG , AVR-USB-
JTAG , AVR-ISP500 , AVR-ISP500-TINY , AVR-ISP500-ISO , AVR-PG1 , AVR-PG2 .
Software:
AVR C compiler.
Page2
PROCESSOR FEATURES
AVR-H128-CAN
board use High-performance, Low-power AVR® 8-bit
Microcontroller – AT90CAN128 from Atmel Corporation with these features:
–
Advanced RISC Architecture
–
–
133 Powerful Instructions – Most Single Clock Cycle Execution
32 x 8 General Purpose Working Registers + Peripheral Control
Registers
–
–
–
–
Fully Static Operation
Up to 16 MIPS Throughput at 16 MHz
–
On-chip 2-cycle Multiplier
Non volatile Program and Data Memories
128K Bytes of In-System Reprogrammable Flash
–
–
Endurance: 10,000 Write/Erase Cycles
Optional Boot Code Section with Independent Lock Bits
–
–
Selectable Boot Size: 1K Bytes, 2K Bytes, 4K Bytes or 8K Bytes
In-System Programming by On-Chip Boot Program (CAN,
UART, ...)
–
–
–
–
–
–
–
–
True Read-While-Write Operation
4K Bytes EEPROM (Endurance: 100,000 Write/Erase Cycles)
4K Bytes Internal SRAM
Up to 64K Bytes Optional External Memory Space
Programming Lock for Software Security
JTAG (IEEE std. 1149.1 Compliant) Interface
–
Boundary-scan Capabilities According to the JTAG Standard
–
–
Programming Flash (Hardware ISP), EEPROM, Lock & Fuse Bits
Extensive On-chip Debug Support
CAN Controller 2.0A & 2.0B - ISO 16845 Certified
–
–
–
–
15 Full Message Objects with Separate Identifier Tags and Masks
Transmit, Receive, Automatic Reply and Frame Buffer Receive Modes
1Mbits/s Maximum Transfer Rate at 8 MHz
Time stamping, TTC & Listening Mode (Spying or Autobaud)
Peripheral Features
–
–
Programmable Watchdog Timer with On-chip Oscillator
8-bit Synchronous Timer/Counter-0
–
–
–
10-bit Prescaler
External Event Counter
Output Compare or 8-bit PWM Output
Page3
–
–
–
–
–
–
–
–
–
–
8-bit Asynchronous Timer/Counter-2
–
10-bit Prescaler
–
–
–
External Event Counter
Output Compare or 8-Bit PWM Output
–
32Khz Oscillator for RTC Operation
Dual 16-bit Synchronous Timer/Counters-1 & 3
10-bit Prescaler
–
–
–
–
Input Capture with Noise Canceler
External Event Counter
3-Output Compare or 16-Bit PWM Output
Output Compare Modulation
8-channel, 10-bit SAR ADC
–
–
8 Single-ended Channels
7 Differential Channels
–
2 Differential Channels With Programmable Gain at 1x, 10x, or 200x
On-chip Analog Comparator
Byte-oriented Two-wire Serial Interface
–
–
–
Dual Programmable Serial USART
Master/Slave SPI Serial Interface
–
Programming Flash (Hardware ISP)
Special Microcontroller Features
Power-on Reset and Programmable Brown-out Detection
–
–
–
–
Internal Calibrated RC Oscillator
8 External Interrupt Sources
5 Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down
& Standby
Software Selectable Clock Frequency
–
Global Pull-up Disable
Operating Voltages: 2.7 – 5.5V
Operating temperature: Industrial (-40°C to +85°C)
Maximum Frequency: 8 MHz at 2.7V, 16 MHz at 4.5V
53 Programmable I/O Lines
Page4
BLOCK DIAGRAM
Page5
MEMORY MAP:
Page6
Page7
SCHEMATIC
+5V
POWER
2
1
R1
D1
1N4148
C6
100n
U2
78L05
IN OUT
GND
4.7K
EPWR
C7
100n
+5V
C3
100n
C4
100n
PE0
RESET
PB1
PE1
1
3
5
7
9
ICSP
2
4
6
8
10
+5V
U1
ZM33064
2
VCC RESET
GND
3
CON1
1
13
14
15
16
9
10
11
12
7
8
5
6
2
3
4
C1
20pF
Q1
16.000MHz/20pF
C2
20pF
PEN
PE0
PE1
PE2
PE3
PE4
PE5
PE6
PE7
PB0
PB1
PB2
PB3
PB4
PB5
PB6
CON2
12
13
14
15
16
8
9
10
11
6
7
4
5
1
2
3
PB7
TOSC2
TOSC1
RESET
+5V
GND
XTAL2
XTAL1
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
+5V
C5
100n
RESET
XTAL1
XTAL2
TOSC1
TOSC2
PF0
PF1
PF2
PF3
TCK
TMS
TDO
TDI
PE0
PE1
PE2
PE3
PE4
PE5
PE6
PE7
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
+5V
AREF
GND
+5V
+5V
JTAG
20
24
23
61
60
59
58
57
56
55
54
7
8
5
6
9
2
3
4
29
30
31
32
25
26
27
28
IC1
RESET/
RXD-PE0
TXD-PE1
AC+_PE2
AC-_PE3
INT4-PE4
INT5-PE5
INT6-PE6
INT7-PE7
PD0-INT0
PD1-INT1
PD2-INT2
PD3-INT3
PD4-IC1
PD5
PD6-T1
PD7-T2
VCC
TCK
TDO
TMS
TDI
5
7
1
3
9
6
8
2
4
10
RESET
19
18
64
62
63
XTAL1
XTAL2
TOSC1
TOSC2
ADC0-PF0
ADC1-PF1
ADC2-PF2
ADC3-PF3
ADC4-PF4
ADC5-PF5
ADC6-PF6
ADC7-PF7
AVCC
AVREF
AGND
ATMEGA128CAN
AD0-PA0
AD1-PA1
AD2-PA2
AD3-PA3
AD4-PA4
AD5-PA5
AD6-PA6
AD7-PA7
A8-PC0
A9-PC1
A10-PC2
A11-PC3
A12-PC4
A13-PC5
A14-PC6
A15-PC7
51
50
49
48
47
46
45
44
39
40
41
42
35
36
37
38
PC0
PC1
PC2
PC3
PC4
PC5
PC6
PC7
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
TMS
TCK
PF3
PF2
PF1
PF0
AREF
GND
+5V
PA2
PA1
PA0
+5V
GND
TDI
TDO
13
14
15
16
9
10
11
12
7
8
5
6
1
2
3
4
CON4
OC2-PB7
OC1B-PB6
OC1A-PB5
OC0-PB4
MISO-PB3
MOSI-PB2
SCK-PB1
SS-PB0
GND
ALE
RD/
WR/
PEN/
17
16
15
14
13
12
11
10
43
34
33
1
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
ALE
RD
WR
PEN
+5V
R2
1K
PC4
PC5
PC6
PC7
ALE
PA7
PA6
PA5
PA4
PA3
WR
RD
PC0
PC1
PC2
PC3
12
13
14
15
16
10
11
8
9
6
7
4
5
1
2
3
CON3
AVR-H128-CAN
Rev. A
COPYRIGHT(C), 2005 http://www.olimex.com/dev
Page8
BOARD LAYOUT
Page9
POWER SUPPLY CIRCUIT
The board is power supplied from POWER connector pin 1 and pin 2 with 9-12 V
DC.
RESET CIRCUIT
AVR-H128-CAN
reset circuit includes pin 6 of JTAG connector, pin 5 of ICSP connector, Extension connector CON2 – pin 4 and AT90CAN128 pin 20.
CLOCK CIRCUIT
Quartz crystal 16MHz is connected to AT90CAN128 pin 23 (XTAL2) and pin 24
(XTAL1).
Quartz crystal 32kHz is connected to AT90CAN128 pin 18 (TOSC2) and pin 19
(TOSC1).
JUMPER DESCRIPTION
EPWR
Enable target power supply.
Page10
CONNECTOR DESCRIPTIONS
JTAG
5
6
3
4
1
2
9
10
7
8
Pin #
+5V
NC
TDI
GND
Signal Name
TCK
GND
TDO
+5V
TMS
RESET
ICSP
5
6
7
3
4
1
2
8
9
10
Pin #
PE0
+5V
Signal Name
NC
GND
RESET
GND
PB1
GND
PE1
GND
Page11
CON1
CON2
5
7
9
11
13
15
Pin #
1
3
Signal Name
PEN
PE1
PE3
PE5
PE7
PB1
PB3
PB5
6
8
10
12
14
16
Pin #
2
4
Signal Name
PE0
PE2
PE4
PE6
PB0
PB2
PB4
PB6
27
29
31
Pin #
17
19
21
23
25
Signal Name
PB7
TOSC1
+5V
XTAL2
PD0
PD2
PD4
PD6
28
30
32
Pin #
18
20
22
24
26
Signal Name
TOSC2
RESET
GND
XTAL1
PD1
PD3
PD5
PD7
Page12
CON3
CON4
Pin #
33
43
45
47
35
37
39
41
Signal Name
WR
PC0
PC2
PC4
PC6
ALE
PA6
PA4
Pin #
34
44
46
48
36
38
40
42
Signal Name
RD
PC1
PC3
PC5
PC7
PA7
PA5
PA3
55
57
59
Pin #
49
51
53
61
63
Signal Name
PA2
PA0
GND
TDO
TCK
PF2
PF0
GND
POWER CONNECTOR
Pin #
1 (+)
2 (-)
Signal Name
VCC
GND
56
58
60
Pin #
50
52
54
62
64
Page13
Signal Name
PA1
+5V
TDI
TMS
PF3
PF1
AREF
+5V
MECHANICAL DIMENSIONS
Page14
AVAILABLE DEMO SOFTWARE
–
–
Blinking LED C source for WinAVR
UART initialization C source for WinAVR
Page15
ORDER CODE
AVR-H128-CAN
– assembled and tested board, includes AT90CAN128-16 microcontroller.
How to order?
You can order to us directly or by any of our distributors.
Check our web www.olimex.com/dev for more info.
Revision history:
REV.A
- create January 2005
Page16
Disclaimer
:
© 2009 Olimex Ltd. All rights reserved. Olimex®, logo and combinations thereof, are registered trademarks of
Olimex Ltd. Other terms and product names may be trademarks of others.
The information in this document is provided in connection with Olimex products. No license, express or implied or otherwise, to any intellectual property right is granted by this document or in connection with the sale of
Olimex products.
Neither the whole nor any part of the information contained in or the product described in this document may be adapted or reproduced in any material from except with the prior written permission of the copyright holder.
The product described in this document is subject to continuous development and improvements. All particulars of the product and its use contained in this document are given by OLIMEX in good faith. However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded.
This document is intended only to assist the reader in the use of the product. OLIMEX Ltd. shall not be liable for any loss or damage arising from the use of any information in this document or any error or omission in such information or any incorrect use of the product.
Page17
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project