AVR-CAN development board Users Manual Rev.
INTRODUCTION: AVR-CAN is inexpensive way to learn AT90CAN128 microcontroller from Atmel. It's in very compact form 60x55mm and the presence of both CAN and RS232 allows the customer to make a bridge between UART and CAN networks. All AVR pins are available on extension connectors and the board can be easily a snap-on prototype or other mother board where additional circuits are built.
had suggested to fix the bug by “AVR Studio 4.13 SP2 JTAGICE Fix” available from http://www.atmel.
o Output Compare Modulation 8-channel, 10-bit SAR ADC o 8 Single-ended Channels o 7 Differential Channels o 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 o 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
BLOCK DIAGRAM: MEMORY MAP: Page 5
Page 6
20pF C4 Page 7 C5 AVCC ADC0/PF0 ADC1/PF1 ADC2/PF2 ADC3/PF3 ADC4/TCK/PF4 ADC5/TMS/PF5 ADC6/TDO/PF6 ADC7/TDI/PF7 AT90CAN128 AGND NA 1 AVREF 62 AVREF AVREF_E 63 2 64 61 60 59 58 57 56 55 54 G ND PG2/ALE PG1/#RD PG0/#WR NC PB7/OC0A/OC1C PB6/OC1B PB5/OC1A PB4/OC2A PB3/MISO PB2/MOSI PB1/SCK PB0/#SS 43 34 33 1 17 16 15 14 13 12 11 10 35 36 37 38 39 40 41 42 51 50 49 48 47 46 45 44 EXT1-32 EXT1-33 EXT1-34 EXT2-27 EXT2-28 EXT2-29 EXT2-30 EXT2-31 EXT2-32 EXT2-33 EXT2-34 EXT2-18 EXT2-17 EXT2-16 EXT
BOARD LAYOUT: POWER SUPPLY CIRCUIT: Power should be applied to CON2PV2-2.5MM connector. AVR-CAN could be powered by applying up to 12VDC (7 to 12 VDC) to EXT1-1 and EXT1-2 and GND to EXT1-3 and EXT1-4 or if you supply 7 to 12 VDC to CON2PV2-2.5MM pin 2 (VIN) and GND to CON2PV2-2.5MM pin 1 . The consumption of AVR-CAN is about 40-50 mA. RESET CIRCUIT: AVR-CAN reset circuit is made with R6 (10k) pull-up and button RST.
CLOCK CIRCUIT: Quartz crystal 16 MHz is connected to AT90CAN128 pin 24 (XTAL1) and pin 23 (XTAL2). Quartz crystal 32.768 kHz is connected to AT90CAN128 pin 19 (TOSC1/PG4) and pin 18 (TOSC2/PG3) and supplies the internal Asynchronous Timer/Counter (Timer/Counter2 in asynchronous operation). JUMPER DESCRIPTION: CAN_D CAN Disable. If this Default state is open. CAN_T jumper is closed, the CAN is disabled. This jumper assures correct work of the CAN. At each end of the bus it should be closed.
EXTERNAL CONNECTORS DESCRIPTION: JTAG: Pin # TDI TDO the TMS TCK Signal Name 1 TCK 2 GND 3 TDO 4 +5V 5 TMS 6 RESET 7 +5V 8 NC 9 TDI 10 GND Input Test Data In. This is the serial data input for the shift register. Output Test Data Out. This is the serial data output for the shift register. Data is shifted out of device on the negative edge of the TCK signal. Input Test Mode Select. The TMS pin selects the next state in the TAP state machine. Input Test Clock.
Pin # Signal Name 1 NC 2 TXD0 3 RXD0 4 NC (not connected through R14 to pin 6) 5 GND 6 NC (not connected through R14 to pin 4) 7 NC (not connected through R13 to pin 8) 8 NC (not connected through R13 to pin 7) 9 NC TXD0 Output Transmit Data. This is the asynchronous serial data output (RS232) for the shift register on the UART controller. RXD0 Input Receive Data. This is the asynchronous serial data input (RS232) for the shift register on the UART controller.
CAN: Pin # Signal Name 1 NC 2 CANL 3 GND 4 NC 5 NC 6 GND 7 CANH 8 NC 9 VIN CANL and CANH are either deferential input, or differential output depending on the function of the MCP2551 CAN controller (receiving or transmitting data).
EXT1: Pin # Signal Name Pin # Signal Name 1 VIN 2 VIN 3 GND 4 GND 5 +5V 6 +5V 7 - 8 ICP3/INT7/PE7 9 T3/INT6/PE6 10 OC3C/INT5/PE5 11 OC3B/INT4/PE4 12 OC3A/AIN1/PE3 13 XCK0/AIN0/PE2 14 TXD0/PDO/PE1 15 RXD0/PDI/PE0 16 ADC0/PF0 17 ADC1/PF1 18 ADC2/PF2 19 ADC3/PF3 20 ADC4/TCK/PF4 21 ADC5/TMS/PF5 22 ADC6/TDO/PF6 23 ADC7/TDI/PF7 24 PA0/AD0 25 PA1/AD1 26 PA2/AD2 27 PA3/AD3 28 PA4/AD4 29 PA5/AD5 30 PA6/AD6 31 PA7/AD7 32 PG2/ALE 33 PG1/#RD 34 PG0
Pin # Signal Name Pin # Signal Name 1 VDDA 2 VDDA 3 AVREF 4 AGND 5 AGND 6 +5V 7 GND 8 GND 9 TXD1_OUT 10 RXD1_IN 11 PC7/A15/CLK0 12 PC6/A14 13 PC5/A13 14 PC4/A12 15 PC3/A11 16 PC2/A10 17 PC1/A9 18 PC0/A8 19 T0/PD7 20 RXCAN/T1/PD6 21 TXCAN/XCK1/P5 22 ICP1/PD4 23 TXD1/INT3/PD3 24 RXD1/INT2/PD2 25 SDA/INT1/PD1 26 SCL/INT0/PD0 27 PB7/OC0A/OC1C 28 PB6/OC1B 29 PB5/OC1A 30 PB4/OC2A 31 PB3/MISO 32 PB2/MOSI 33 PB1/SCK 34 PB0/#SS Page 14
MECHANICAL DIMENSIONS: Page 15
AVAILABLE DEMO SOFTWARE: You could download AVR-CAN software form www.olimex.com/dev : AVR-CAN Blinking LED demo code (C source and HEX) AVR-CAN Button read demo code (C source and HEX) AVR-CAN RS232 demo code (C source and HEX) ORDER CODE: AVR-CAN – assembled and tested (no kit, no soldering required) 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.
Disclaimer: © 2011 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.