Download Print this page

Advertisement

Quick Links

LAWICEL AB
CAN232
CAN232 Manual
LAWICEL AB
Box 3
SE-282 21 Tyringe
SWEDEN
CAN232
Version 3
Manual
Embedded Tools, Starterkits & Consulting
AVR • 8051 • PICmicro • HC08 • HC11 • HC12 • MSP430 • C166
CAN (Controller Area Network) • CANopen • USB • Compilers
Single Board Computers • Programmers • Software
www.can232.com
Last updated:
May 2012
Version 3.0A
Phone: +46 (0)451 598 77
Fax: +46 (0)451 598 78
support@can232.com
www.can232.com

Advertisement

loading

Summary of Contents for LAWICEL CAN232

  • Page 1 CAN232 CAN232 Version 3 Manual Last updated: May 2012 CAN232 Manual Version 3.0A LAWICEL AB Embedded Tools, Starterkits & Consulting Phone: +46 (0)451 598 77 Box 3 Fax: +46 (0)451 598 78 AVR • 8051 • PICmicro • HC08 • HC11 • HC12 • MSP430 • C166 SE-282 21 Tyringe support@can232.com...
  • Page 2 LAWICEL AB reserves the right to change the information contained herin without prior notification. Further, LAWICEL AB offers no guarantee nor accepts any liability for damages for improper usage or improper installation of the hardware described herein. Finally LAWICEL AB reserves the right to change the hardware or design without prior notification and accepts no liability for doing so.
  • Page 3 CAN232 1.0 Introduction The LAWICEL CAN232 is a low cost and easy to use dongle, that could be used together with any O/S without drivers since it is an RS232 to CAN gateway. Simply connect it to any PC running DOS, Windows95/98/ME, NT4/2000/XP/Vista/Windows 7, Mac or Linux and ”talk”...
  • Page 4 (or your favourite terminal software) and set it up to e.g. 57600baud, 8 databits, no parity, 1 stop bit (if the CAN232 is set to 57,600baud), also set local echo on so you can see what you type and set the check flag so that it appends a line feed when it receive and end of line.
  • Page 5: Version Information

    RS232 or queued in the FIFO if the RS232 is full. Then once in a while send the F command to see if there are any errors (e.g. each 100-500mS or if you get an error back from the CAN232). If you...
  • Page 6 CAN232 2.0 Availible CAN232 ASCII Commands: Note: All commands to the CAN232 must end with [CR] (Ascii=13) and they are CASE sensitive. Sn[CR] Setup with standard CAN bit-rates where n is 0-8. This command is only active if the CAN channel is closed.
  • Page 7 CR (Ascii 13) for OK or BELL (Ascii 7) for ERROR. tiiildd...[CR] Transmit a standard (11bit) CAN frame. This command is only active if the CAN232 is open in normal mode. Identifier in hex (000-7FF) Data length (0-8) Byte value in hex (00-FF). Numbers of dd pairs must match the data length, otherwise an error occur.
  • Page 8 LAWICEL AB www.can232.com CAN232 Tiiiiiiiildd...[CR] Transmit an extended (29bit) CAN frame. This command is only active if the CAN232 is open in normal mode. iiiiiiii Identifier in hex (00000000-1FFFFFFF) Data length (0-8) Byte value in hex (00-FF). Numbers of dd pairs must match the data length.
  • Page 9 LAWICEL AB www.can232.com CAN232 P[CR] Poll incomming FIFO for CAN frames (single poll) This command is only active if the CAN channel is open. NOTE: This command is disabled in the new AUTO POLL/SEND feature from version V1220. It will then reply BELL if used.
  • Page 10 It is set to OFF by default, to be compatible with old programs written for CAN232. Setting it to ON, will disable the P and A command plus change the reply back from using the t and T command (see these commands for more information on the reply).
  • Page 11 LAWICEL AB www.can232.com CAN232 Mxxxxxxxx[CR] Sets Acceptance Code Register (ACn Register of SJA1000). This command is only active if the CAN channel is initiated and not opened. xxxxxxxx Acceptance Code in hex with LSB first, AC0, AC1, AC2 & AC3.
  • Page 12 CAN232 for a quick reference, but could e.g. be used in a program to identify a CAN232 so the program know that it is set up in the correct way (for parameters saved in EEPROM). LAWICEL AB Embedded Tools, Starterkits &...
  • Page 13 It is set to OFF by default, to be compatible with old programs written for CAN232. Setting it to ON, will add 4 bytes sent out from CAN232 with the A and P command or when the Auto Poll/Send feature is enabled.
  • Page 14 Auto Startup feature (from power on). Command works only when CAN channel is open. Use this function when you have set up CAN speed and filters and you want the CAN232 to boot up with these settings automatically on every power on. Perfect for logging etc. or when no master is availible to set up the CAN232.