Home

AVR-CAN User Manual

image

Contents

1. TXDO Output Transmit Data This is the asynchronous serial data output RS232 for the shift register on the UART controller RXDO Input Receive Data This is the asynchronous serial data input RS232 for the shift register on the UART controller Page 11 CAN CANL and CANH are either deferential input or differential output depending on the function of the MCP2551 CAN controller receiving or transmitting data Page 12 EXT1 246 8 10 12 14 16 18 20 22 24 26 28 30 32 34 LI CT EXT2 Page 13 14 16 18 20 22 24 26 28 30 32 34 E pem E m pe CNN ERN Page 14 MECHANICAL DIMENSIONS AUR CAN 38 5 D f 90800 5V 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 Petree 99 AIL boards produced by Olimex are RoHS compliant Revision history Board REV A created January 2010 Users Manual Rev A created February 2011 added latest revision of the scheme changed supply voltage add p
2. 0x0000 0x001F 0x0020 0x005F 0x0060 OxOOFF ISRAM start ISRAM end XMem start pl X3Wi10 0102 2 1H9IHAdOO NVO MAV 01 21 3 6 21 3 ae N 8 21 3 80 2 21 3 ina 9 21 3 098 9 21 9 HON 7 Sy 108 Ver cu c1x3 yor en MOL 2 21 3 4 L c1X3 9H 172 V 9 9 L1X3 Nat S LIX3 v L1X3 m L1X3 Z LLXA 4 L L1X3 vas 19S 095 Ly 1001 Ta wef sogopesq 1915 vH SH AS Ne ASt o 952 e 96 1 066 gt 3 ks Mie du 1 5 AF e uj 9 915 5 8H lt m 022 6v E AS nO NI NIA AS LYA ao NI LAX m 1no aay d paN9v ONQGA 5V NIA e WANS Z CAdCNOO NIC NILH 17024 10021 NIZL NILL 820 0061 SN9V 3900 _1 on dz vt L1x3
3. AVR CAN development board Users Manual Rev A January 2010 Copyright c 2011 OLIMEX Ltd All rights reserved Page 1 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 5232 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 BOARD FEATURES MCU AT90CANI128 128Kb Flash 4Kb EEPROM 4Kb SRAM 52 GPIO 32 working registers a CAN controller Real Time Clock four Timer Counters with PWM 2 UARTs Two wire Serial Interface an 8 channel 10 bit ADC Watchdog Timer SPI serial port JTAG interface five selectable power saving modes 5 2 pin JTAG connector for programming and debugging with AVR JTAG L or AVR JTAG USB RS232DEB9 female connector and driver controller and interface User button Status LED 16 MHz oscillator circuit 32768 Hz oscillator circuit Reset button and circuit Onboard voltage regulator 5V Power supply LED Power supply connector Extension pin headers for every uC pin 4 1 5 mm 0 062 soldermask white silkscreen component print Dimension 60x50 mm 2 36x1 96 ELECTROSTATIC WARNING The AVR CAN board is shipped in protective anti static packaging The board must
4. gj AMOSA LLIX3 1 26 11 3 d 44 204 T 94d OQL 9OQV odi S3d SL SOQV hye ve 7LX4 oj 55 084 fe 5 7 6 21 3 4d 9QV po rn 7 c ClX3 2 SOWesd gc 16 21 3 OSiWead pg 0 ZLX3 Ti vcoO rad 0 02 IS 62 21 4 VLOO SEd 82 21 3 a 8 20 983 10401 py 22 1 9 9 90 v020 28d 9Qd LLINVOXH SQd EMOXINVOXL 2 23 dd ELNILOXL bo TE 7 oH EU pz Nds a LLV Od pe 105 79 134 1 649 gd 9V od 93d 91NU E L sg 8V 09d S3d S1NI 200 e 16 11 3 40 2 0 LIX3 90 9 gp 62 L1X3 gp 2OViSVd 82 LLX4 E oo 12 11 3 4H 92 11 3 ER 4 501 GZ LLX4 od vOd LOSOL z 11 id 00709 vix E zi THIOL aoz ZO LO 99 Lasau Oggi TIN Ato LA 1 1 34 18534 NI LOXY 100 001 G 26258 e 5 8 05 992 00 oral v 8 Z 8 2 9 9 oY AS NYO c L w 2 1001 MOL 0 0 OLY NIA Page 7 BOAR
5. 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 RS232 cable in case you want to use the RS232 and or CAN interface You might need other cables depending on the programming debugging tool you use Hardware Programmer Debugger AVR JTAG L or AVR JTAG USB or other compatible programming debugging tool Software AVR Studio 4 13 or later WinAVR latest version or IAR AVR AVR Studio and WinAVR are free to download and use Take a note that AVR Studio 4 13 has a bug and doesn t read the fuses correctly On our request to Atmel support they had confirmed the bug and Page 2 had suggested to fix the bug by AVR Studio 4 13 SP2 Fix available from http www atmel no beta ware PROCESSOR FEATURES AVR CAN board use MCU AT90CAN128 from Atmel with these features High performance Low power AVR 8 bit Microcontroller 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 o Endurance 10 000 Write Erase Cycles Optional Boot Code Section with Independent Lock Bits o Selectable B
6. D LAYOUT extension button WWW 3333 Zr A 25 ums das ues 2 wi 6 2 cean CS db Rev A HfjauREF E Wen Pe 4 17 71 _ 5232 mm 2 0 2 4 2 x od y 45 4 4 9504 6 IRL6BYD Pi extension 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 On the board there is a place for the voltage supervisory device MCP120 T but we sell it without MCP120 T Page 8 CLOCK CIRCUIT Quartz crystal 16 MHz is connected to 90 128 24 XTAL1 and pin 23 XTAL2 Quartz crystal 32 768 kHz is connected to ATIOCAN128 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 jumper is closed the CAN is disabled Default state is open ONDES CAN T This jumper assures correct work of the CAN At each end of the bus it should be closed This means that if you have only two devices with CAN the jumper
7. age numbers added more detailed mechanical dimensions Page 16 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 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 Page 17
8. ferential Channels o 2Differential 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 I Oa 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 amp Standby Software Selectable Clock Frequency Global Pull up Disable nd Packages 53 Programmable I O Lines 64 lead TOFP and 64 lead OFN 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 Page 4 BLOCK DIAGRAM PFO PAT PAD PCO z z x x I miii JTAG TAP ON CHIP DEBUG PROGRAMMING LOGIC MEMORY MAP PORTF DRIVERS PORTA DRIVERS PORTC DRIVERS BOUNDARY INSTRUCTION TE DATA DIR REG PORTC PROGRAM FLASH INSTRUCTION DECODER STATUS REGISTER WO WIRE SERIAL INTERFACE DATA DIR DATA REG R DATA DIR DATA DIR REG PORTE PORTB REG PORTB REG PORTD PORTE DRIVERS PORTD DRIVERS PORTG DRIVERS Page 5 Program Memory Application Flash Section Boot Flash Section 0x0000 Flash end Data Memory 32 Reaisters 64 I O Registers Page 6
9. oot Size 1K Bytes 2K Bytes 4K Bytes or 8K Bytes o In System Programming by On Chip Boot Program CAN UART o True Read While Write Operation 4K Bytes EEPROM Endurance 100 000 Write Erase Cycles 4K Bytes Internal SRAM AT90CAN32 64 128 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 amp Fuse Bits Extensive On chip Debug Support CAN Controller 2 0A amp 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 amp Listening Mode Spying or Autobaud Peripheral Features Programmable Watchdog Timer with On chip Oscillator 8 bit Synchronous Timer Counter 0 o 10 bit Prescaler o External Event Counter o Output Compare or 8 bit PWM Output 8 bit Asynchronous Timer Counter 2 o 10 bit Prescaler o External Event Counter o Output Compare or 8 Bit PWM Output o 32Khz Oscillator for RTC Operation Dual 16 bit Synchronous Timer Counters 1 amp o 10 bit Prescaler o Input Capture with Noise Canceler o External Event Counter o 3 Output Compare or 16 Bit PWM Output Page 3 o Output Compare Modulation 8 channel 10 bit SAR ADC o 8Single ended Channels o 7 Dif
10. s of both devices should be closed If you have more than two devices only the two end devices should be closed Default state is closed AVREF_E This jumper when closed supplies VDDA reference to the AVREF If this jumper is open the desired reference voltage should be applied at 2 3 Default state is open INPUT OUTPUT Status LED red with name STAT connected to 128 pin 6 OC3B INT4 PE4 Power on LED red with name PWR_LED this LED shows that 5V is applied to the board User button with name BUT connected to 128 pin 7 OC3C INT5 PE5 Reset button with name RST connected to AT90CAN128 pin 20 amp RESET Page 9 EXTERNAL CONNECTORS DESCRIPTION TAG 1 3 5 7 9 TDI Input Test Data In This is the serial data input for the shift register TDO Output Test Data Out This is the serial data output for the shift register Data is shifted out of the device on the negative edge of the TCK signal TMS Input Test Mode Select The TMS pin selects the next state in the TAP state machine TCK Input Test Clock This allows shifting of the data in on the TMS and TDI pins It is a positive edge triggered clock with the TMS and TCK signals that define the internal state of the device JTAG is used to to program and debug the MCU PWR 1 2 m NN VIN Voltage In you should supply 7 to 12 VDC RS232 Page 10 Signal Name NC not connected e R14 to pin 6

Download Pdf Manuals

image

Related Search

Related Contents

Software Licence Agreement_neu  Philips Low Voltage Spot 871829112807600  Netra 240 Server Service Manual  Toastmaster 1170S Bread Maker User Manual  Formation SORTIESCOL : Mode d`emploi  Fisher-Price K3800 User's Manual  User Manual  

Copyright © All rights reserved.
Failed to retrieve file