XC2287M HOT. Solution CAN_2 Serial Communication using the CAN with external CAN BUS

Similar documents
XC2287M HOT Solution CAN Serial Communication using the CAN. Device: XC2287M-104F80 Compiler: Tasking Viper 2.4r1 Code Generator: DAvE 2.

XC2287M HOT. Solution ASC. Uses a timer triggered LED to toggle with ASC Interrupt

XC2287 HOT. Exercise CAN_1 Communication using the CAN Module

XC2287M HOT Getting Started Exercise 1 Get familiar with the tool chain and uses a timer triggered LED toggle

XC2287M HOT. Solution GPT12. Uses a timer triggered LED s to toggle. Device: XC2287M-104F80 Compiler: Tasking Viper 2.4r1 Code Generator: DAvE 2.

XC866 Getting Started on EasyKit & Toolkits

USB-COMi-TB USB to Industrial Single RS-422 / 485 Adapter Manual. Specifications and Features

Note that FLIP is an Atmel program supplied by Crossware with Atmel s permission.

USB-16COMi-M 16-Port RS-422/485 USB Serial Adapter User Manual. Features and Specifications. Power Supply

This 4-port RS-422/485 Adapter is provided with an external switching power adapter in the package.

Application Note, V2.0, April 2010 AP16174 XE164

Application Note, V2.0, August 2007 AP08067 XC886/XC888

XE166 family Easy Kit

Installation Guide of Hi-Speed USB to Octal RS-232/422/485 Adapter

XC886/888CLM Getting Started on MCAN - ADC

XC2000 series Board Manual, V.1.0, June XC2000 Easy Kit. Board REV. V1.0. Microcontrollers. Never stop thinking.

Maxim > Design Support > Technical Documents > Application Notes > Microcontrollers > APP 4465

Installation Guide of Hi-Speed USB to Industrial Single RS-422/485 Adapter

Programming in the MAXQ environment

Introduction & Specifications of Hi-Speed USB to Industrial Dual Ports RS-422/485 Adapter

EKK-LM3S811 QUICKSTART

Infineon Flash Programmer Memtool for XMC1000 Family. XMC Microcontrollers January 2016

XE166 Family AP Application Note. Microcontrollers. UConnect XE162N Hardware Description V1.0,

USB to DB25 RS232 Adapter User Manual. Features. Windows 7/ Vista / 2003 / XP / 2000 Driver Installation

PSIM Tutorial. How to Use SCI for Real-Time Monitoring in F2833x Target. February Powersim Inc.

DAVE 3 Hands on / Quick Start Tutorial. Presentation Tutorial Start 1 v1.1: Creating a simple Project using PWM and Count Apps

8 Port USB to RS- 232/422/485 Octal Adapter. Product Manual. Coolgear, Inc. Version 1.1 April 2018 Model Number: USB-8COMi-RM.

USBG-8COM-PRO 8-Port USB to RS-232, 422, 485 Auto Setup Adapter Manual. Features & Specifications. Specifications

Easy Kit Board Manual

XC800 Family AP Application Note. Microcontrollers. Programming the BMI value in the XC82x and XC83x products V1.0,

Installation Guide of Hi-Speed USB to Industrial I/O Adapter

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

USB485. USB to RS485 Converter Card. User Manual for connecting with Windows Vista Version 1.01

XE164 UConnect Manual, V.1.1, February XE164 UConnect. Board REV. 2007/40. Microcontrollers. Never stop thinking.

USB485 USB to RS485 Converter Card

Updating Reader Firmware

PCI Express 4-Port Industrial Serial I/O Cards

3.1 I-7560 Pin Assignment and Specifications: Introduction

Installation and Quick Start of isystem s winidea Open in DAVE. Tutorial Version 1.0, May, 2014

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Cookery-Book, V1.0, February XMC1400 BootKit HelloWorld

Installation Guide of Hi-Speed USB-to-Optically Isolated RS-422/485 Adapter

PCI Express 16-Port Serial I/O Cards

Release Notes for Device Access Server (DAS)

This manual provides information for the final user application developer on how to use SPC57S-Discovery microcontroller evaluation board.

NIOS CPU Based Embedded Computer System on Programmable Chip

CoLinkEx_LPC11C14 EVB Kit User Guide

Emulating an asynchronous serial interface (ASC0) via software routines

AURIX family and AUDO Future, AUDO MAX

Getting Started Guide: TMS-FET470A256 IAR Kickstart Development Kit

TriCore Free Entry Tool Chain. AURIX family and AUDO Future, AUDO MAX

Features: Analog to Digital: 12 bit resolution TTL outputs, RS-232 tolerant inputs 4.096V reference (1mV/count) 115K max speed

AP16050 SAB C161V/K/O. Emulating an asynchronous serial interface (ASC) via software routines. Microcontrollers. Application Note, V 1.0, Feb.

Evaluation & Development Kit for Freescale PowerPC MPC5517 Microcontroller

Zigbee Development Board (Z- DB001) with Z-001 or Z-002 Module

Mini USB to RS-232 Serial Adapter DB-9 Male Converter. Product Manual. Coolgear Version 1.0 January 2018 Model Number: USBG-232MINI.

EPM900 - Overview. Features. Technical Data

NIOS CPU Based Embedded Computer System on Programmable Chip

Section 2: Getting Started with a FPU Demo Project using EK-LM4F232

Exercise: PWM Generation using the N2HET

USB TO SERIAL CONVERTER

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing

Quick Start Guide: RL78G14 Motor Control Starter Kit

XMC4700/XMC4800 RelaxKit HelloWorld (USB)

Development Board (Quick start) LDM-MCp Q208 Evolution

Troubleshooting & Repair

IAR C-SPY Hardware Debugger Systems User Guide

Emulating an asynchronous serial interface (USART) via software routines

HandsOn Technology -- HT-MC-02 MODEL: HT-MC-02

ZFSM-201-KIT-1 Wireless UART Application User Guide

Product Manual. 2 Port USB to RS-422 /485 Optical Isolated Adapter. Coolgear, Inc. Version 1.1 March 2018 Model Number: USB-2COMi-Si-M

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

MEC-COM-M134. User s Manual

Homework / Exam. Return and Review Exam #1 Reading. Machine Projects. Labs. S&S Extracts , PIC Data Sheet. Start on mp3 (Due Class 19)

MSP430F149 P3.4/UTXD0 P3.5/URXD0 P1.5 P1.6 P1.7 MSP430F149 P1.0 P5.4 P5.3 P5.2 P5.1. Figure B-1. BSL Replicator Block Diagram

Introduction to the Altera SOPC Builder Using Verilog Designs. 1 Introduction

Introduction & Specifications of Hi-Speed USB to Serial Adapters

NEW CEIBO DEBUGGER. Menus and Commands

USB Port USB Serial DB-9 RS-232 Adapter FTDI Chipset. Product Manual. Coolgear Version 1.0 January 2018 Model Number: USB2-4COM-M

GRAVITECH GROUP

User Manual Revision: A04 June 23, QuEST Rail LLC.

keyestudio Keyestudio MEGA 2560 R3 Board

Using FlexIO to emulate communications and timing peripherals

Codewarrior for ColdFire (Eclipse) 10.0 Setup

April 4, 2001: Debugging Your C24x DSP Design Using Code Composer Studio Real-Time Monitor

RA Triage Procedure. Product: DM8050 & DM8600 series. 1.0 Useful Components & Accessories

IAR C-SPY Hardware Debugger Systems User Guide. for Renesas E30A/E30 Emulators

USB BF70x Bulk Library v.1.1 Users Guide Users Guide Revision 1.1. For Use With Analog Devices ADSP-BF70x Series Processors. Closed Loop Design, LLC

CF-850/F1K-144-S Hardware Manual

Locus Engineering Inc

CEIBO FE-5131A Development System

QUICKSTART CODE COMPOSER STUDIO Stellaris Development and Evaluation Kits for Code Composer Studio

C-DIAS Serial Interface CSI 021

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

CF-850/F1KM-176-S Hardware Manual

Manual 601: : USB/RS232. Specifications. Contents. Options

HI 3593 ARINC V Dual Receiver, Single Transmitter with SPI Application Note AN 161 June 13, 2012

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

SKP16C26 Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

Transcription:

XC2287M HOT Solution CAN_2 Serial Communication using the CAN with external CAN BUS Device: XC2287M-104F80 Compiler: Tasking Viper 2.4r1 Code Generator: DAvE 2.1

Page 2 XC2287M HOT Exercise CAN_2 Serial Communication using the CAN_2 with external CAN-BUS Let s get started now!

XC2287M HOT Exercise CAN_2 Interaction of Development Tools Page 3 DAvE Compiler Compiler Assembler Assembler Linker Linker Locator Locator IDE Programming Tool Debugger int main(){ char a; long b; Debugger/Emulator Target SW SW HW HW

HOT Exercise CAN_2 Objective Page 4 Use a terminal program to send ASCII characters via the serial port Receive these ASCII characters using ASC0 Forward to CAN Node 0 and transmit to CAN Node 1 via external CAN-Bus Forward from CAN Node 1 back to ASC0 Transmit the received ASCII characters back to the PC PC Terminal XC2287M ASC 0 CAN Node 0 CAN Node 1

HOT Exercise CAN_2 Block Diagram Page 5 PC TxD RxD RXD: P7.4 TXD: P7.3 RxD TxD Receive Buffer Transmit Buffer USIC 0 ASC 0 U0C0 U0C0 Receive IRQ IRQ Priority Priority 3 RS 232 via USB 19200 Baud 8 n 1 RX interrupt CAN Node 0 CAN MSG OBJ 2 ID=0x11 CAN_L CAN_H Transfer by = Ext. CAN Bus Interrupt handler CAN_L CAN_H CAN Node 1 CAN MSG OBJ 5 MO5 MO5 Receive IRQ IRQ Priority Priority 5 ID=0x11 RX: P2.6 TX: P2.5 RX: P2.4 TX: P2.2

HOT Exercise CAN_2 Flow Chart 1/2 Page 6 Init CAN Module Module enable Module Clock EINIT write protected register Init CAN Node Enable node and interrupts Configure pin connections Set baud rate Assign Message Objects to node Init Message Objects (MO) RX/TX mode data length INT pointer and enable Identifier Data content Enable MO Start Node on CAN Bus CAN_2 Init Main fsys=80mhz Init USIC Init MultiCAN Module Node 0 Node 1 Message Objects Start nodes While(1)

Page 7 HOT Exercise CAN_2 Flow Chart 2/2 USIC 0 Channel 0 (ASC) Interrupt ASC RX Interrupt Clear ASC status register Received Character -> MOData2 Sent MOData2 Exit CAN 1 Message Object 5 Interrupt CAN1 MO5 RX Interrupt Clear CAN status register Received Character -> U0C0 ASC TX Sent U0C0 ASC Exit

HOT Exercise CAN_2 - DAvE Configurations Start DAvE Page 8 Start DAvE Click on the Create a new project (Startup Dialog pop up automatically) Click on Create a new project or select File -> New Select microcontroller: XC2287M

HOT Exercise CAN _2 Start DAvE (cont.) Page 9 1 2 3

HOT Exercise CAN_2- DAvE Configurations Project Settings Page 10 Project Settings Close the window

HOT Exercise CAN_2 - DAvE Configurations Save DAvE Project Page 11 Save your DAvE project Path: C:\IFX_HOT\XC2287M\Examples\CAN_2 Project name: CAN_2\CAN_2.dav

HOT Exercise CAN_2 - DAvE Configurations Save DAvE Project Page 12 Save your DAvE Project File 1 2 3 4

HOT Exercise CAN_2 - DAvE Configurations ASC settings Page 13 RS232 Settings Baud Rate = 19200 Baud 8 bit data, 1 stop bit, no parity Receive interrupt RXD:P7.4 TXD: P7.3

HOT Exercise CAN_2 - DAvE Configurations ASC settings Page 14 XC2287M USIC0 : Click on the

HOT Exercise CAN_2 - DAvE Configurations ASC settings Page 15 XC2287M USIC0 : Select ASC for U0C0 protocol Click to exit

HOT Exercise CAN_2 - DAvE Configurations ASC settings Page 16 XC2287M USIC0, CH0 : Click on the

HOT Exercise CAN_2 - DAvE Configurations ASC settings Page 17 Configure CH0 ASC ASC General: Enable module clock Select P7.3 for TxD and P7.4 for RxD 1 2

HOT Exercise CAN_2 - DAvE Configurations ASC settings Page 18 Configure CH0 ASC Control: Enable Receive Interrupt 2 1

HOT Exercise CAN_2 - DAvE Configurations ASC settings Page 19 Configure CH0 ASC Interrupts: Drag U0C0_0IC INT and drop it to Interrupt Level 3, Group 0 1 2 3

HOT Exercise CAN_2 - DAvE Configurations ASC settings Page 20 Configure CH0 ASC Functions: Include U0C0_ASC_vInit Include U0C0_ASC_vSendData 3 1 2

HOT Exercise CAN_2 - DAvE Configurations Port settings Page 21 XC2287M Port: Click on the

HOT Exercise CAN_2 - DAvE Configurations Port settings Page 22 Parallel Ports Ports: Configure Port 10

HOT Exercise CAN_2 - DAvE Configurations Port settings Page 23 Configure Port 10 Port 10: Use P10.0 as general IO Set Direction to Out Close the window 2 1

HOT Exercise CAN_2 - DAvE Configurations Port settings Page 24 Parallel Ports Functions: Include IO_vInit Include IO_vTogglePin 3 1 2

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 25 CAN Settings Baud Rate = 500 kbaud Message Object 2 : CAN node 0, transmit, 1 byte, 11-bit ID = 0x11 Message Object 5 : CAN node 1, receive, 1 byte, 11-bit ID = 0x11 RX-interrupt, level 5 CAN 0: RX: P2.6, TX P2.5 CAN 1; RX: P2.4, TX P2.2

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 26 XC2287M MultiCAN : Click on the

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 27 Configure MultiCAN General: Enable module

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 28 Configure MultiCAN General: Select Node 0

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 29 Configure CAN Node 0 General: Select P2.6 for Receive Input and P2.5 for Transmit Output Initialize the CAN node 0 automatically

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 30 Configure CAN Node 0 Baud Rate: Required baud rate : 500 Kbaud Modify TSeg1/TSeg2 to get Real baud rate at 500 Kbaud 5 1 2 3 4

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 31 Configure MultiCAN General: Select Node 1

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 32 Configure CAN Node 1 General: Select P2.4 for Receive Input and P2.2 for Transmit Output Initialize the CAN node 1 automatically

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 33 Configure CAN Node 1 Baud Rate: Required baud rate : 500 Kbaud Modify TSeg1/TSeg2 to get Real baud rate at 500 Kbaud 5 1 2 3 4

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 34 Configure MultiCAN List1, 2: Drag M02 and drop it to List 1 (Node 0) Drag M05 and drop it to List 2 (Node 1) 1 3 4 2

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 35 Configure MultiCAN M0s: Select M02 2 1

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 36 Configure CAN Message Object (M02) Object: Enable MO2, Select Transmit data frames Identifier: 0x011, Data Length: 1 data bytes 5 1 4 3 2

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 37 Configure MultiCAN M0s: Select M05 1 2

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 38 Configure CAN Message Object (M05) Object: Enable MO5, Select Receive data frames Identifier: 0x011, Data Length: 1 data bytes 5 1 4 2 3

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 39 Configure CAN Message Object (M05) Interrupt: Enable receive interrupt Use CAN SRN 0 4 1 2 3

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 40 Configure MultiCAN Interrupts : Drag CAN INT 0 and drop it to Interrupt Level 4, Group 0 1 2 3

HOT Exercise CAN_2 - DAvE Configurations MultiCAN settings Page 41 Configure MultiCAN Functions: Include CAN_vInit Include CAN_vTransmit and CAN_vLoadData 4 1 2 3

HOT Exercise CAN_2 - DAvE Configurations Save DAvE Project Page 42 Save your DAvE Project File Go to File Save (or Save As) or click on Filename entered previously: 1 c:\ifx_hot\xc2287m\examples\can_2\can_2.dav

HOT Exercise CAN_2 - DAvE Configurations Code Generation Page 43 Let DAvE Generate Code for You Go to File generate Code or click on DAvE generated code files are 1 CAN.c, CAN.h U0C0.c, U0C0.h IO.c, IO.h USIC0.c, USIC0.h MAIN.c, MAIN.h SCS.c, SCS.h XC22xxREGS.h In general: if the included function is a macro it is included in the.h file if the included function is a function it is included in the.c file

HOT Exercise CAN_2 Tasking VX Toolset Page 44 Open Project Work Space Click on Filename: browse to c:\ifx_hot\xc2287m\examples 1 Click OK 1 2

HOT Exercise CAN_2 Tasking VX Toolset Page 45 Create New Project Click on Workbench (if not already there ) 1

HOT Exercise CAN_2 Tasking VX Toolset Page 46 Import DAVE Project 1 Click on File -> Import Select Tasking VX-toolset for C166 Click OK 2

HOT Exercise CAN_2 Tasking VX Toolset Page 47 Import DAVE Project Click `Infineon DAvE C166 Project Click Next CAN_1 1 2

HOT Exercise CAN_2 Tasking VX Toolset Page 48 Import DAvE Project Add Dave Project CAN_2 Click `Finish 2 1 3

HOT Exercise CAN_2 Tasking VX Toolset Page 49 Configure Target Board 1 Select the project in the navigator Select Project/Target Board Configuration 2 Select Infineon XC2000/XE166 Easykit Board Choose `XC2287M-104F 3 Click `Finish 4

HOT Exercise CAN_2 Tasking VX Toolset Page 50 Software Hint DAvE doesn t change code that is inserted in the USER CODE sections if you let DAvE regenerate the code. 1 Therefore, whenever adding code to the generated code, write it into a USER CODE section. The code you really have to add looks like this: 1 while(1) { // USER CODE BEGIN (Main,4) BlinkLED(); // USER CODE END }

HOT Exercise CAN_2 - Complete code Edit File U0C0.C Page 51 In the ISR function U0C0_ASC_vi0IC(void) (almost at the end) _interrupt(u0c0_0int) void U0C0_ASC_vi0IC(void) { // USER CODE BEGIN (ASC0IC,2) // USER CODE END if (U0C0_PSR & 0x4000) { // USER CODE BEGIN (ASC0IC,4) CAN_MODATA2LL = U0C0_RBUF; //store received character in MO2 CAN_vTransmit(2); // USER CODE END U0C0_PSCR = 0x4000; // clear PSR_RIF } // USER CODE BEGIN (ASC0IC,15) // USER CODE END } // End of function U0C0_ASC_vi0IC

HOT Exercise CAN_2 - Complete code Edit File CAN.C Page 52 In the ISR function CAN_viSRN0(void) (almost at the end) _interrupt(can_srn0int) void CAN_viSRN0(void) { : : while (CAN_MSID0!= 0x0020) { switch(can_msid0){ case 5: // message object 5 interrupt uwsrn0objhandler = CAN_HWOBJ[5].uwMOCTRL; if(uwsrn0objhandler & MOSTAT_RXPND) // if message object 5 receive interrupt { // USER CODE BEGIN (SRN0_OBJ5,1) IO_vTogglePin(IO_P10_0); U0C0_ASC_vSendData (CAN_MODATA5LL); // USER CODE END : : }

Page 53 HOT Exercise CAN_2 Tasking VX Toolset Build Project 1 Click on Build Project CAN

HOT Exercise CAN_2 - Device Access Server Check for the latest DAS version Page 54 Note: It is recommended to use the latest DAS version. Download the latest version at www.infineon.com\das

HOT Exercise CAN_2 - Device Access Server 1.) Checking USB connections Page 55 This gets identified only when COM port is used Via the USB interface on the Easykit with FTDI chip The DAS JTAG composite device gets identified When miniwiggler is connected When USB Wiggler Box is connected Via the USB interface on the Easykits with FTDI chip

Page 56 HOT Exercise CAN_2 - Device Access Server 2.) Check DAS status 1. Start DAS device scanner 2. Start DAS Server Control panel 3. If DAS device scanner does not show any device, start the appropriate DAS server Incase you are connected via the USB Wiggler box, then start JTAG over USB Box Incase you are connected via the FTDI chip or mini wiggler, then start UDAS

Page 57 HOT Exercise CAN_2 - Device Access Server 3.) Starting the servers manually 4. Incase UDAS server is started and XC2000 easykit is connected via on-chip FTDI or via separate miniwiggler, following status changes could be noted 5. Incase JTAG over USB Box server is started and XC2000 starter kit is connected via Wiggler box, following status changes could be noted

HOT Exercise CAN_2 Connect XC2287M Board Page 58 Disconnect power supply from the board Connect CAN nodes: Connect wires from node A to node B (connect CAN1_L to CAN2_L and CAN1_H to CAN2_H) CAN 1 1 USB CAN 2 1 Infineon XC2287M

HOT Exercise CAN_2 Connect XC2287M Board Page 59 Internal start from Flash Connect XC2287M Board to PC Modify the DIP switch settings, S102: OFF-OFF-OFF-OFF-OFF Reset the board (press the reset button) S102 Standard Internal Start configuration ON 1 2 3 4 DIP 5 USB DC power supply Reset button

Page 60 HOT Exercise CAN_2 Tasking VX Toolset Run Debugger Click on 1 2 Click on Resume and start program

HOT Exercise CAN_2 Start HyperTerminal Page 61 With the FTDI chip an on board, USB interface can be used for UART. FTDI device will converts the USB protocol the ASC protocol. Both USB and UART can be used at the same time. Open Device Manger and check which COM port is activated for the FTDI chip

HOT Exercise CAN_2 Start HyperTerminal Page 62 1. Start->Programs->Accessories->Communications->HyperTerminal 2. Enter any name and click OK 3. Connect using: COMx (COM port activated for the FTDI chip) 4. Click Configure to enter Port settings 5. Select 19200 baud, no Parity, 8 Data Bits and 1 Stop Bit 6. Click OK

HOT Exercise CAN_2 Running the program Page 63 Start typing Enter ASCII characters in the HyperTerminal The characters you enter are sent to the XC2287M, through the CAN bus and back to the Terminal Program so that you can read them on the screen The characters are not sent directly from the keyboard to the screen!

HOT Exercise CAN_2 See Result Page 64 The yellow LED will toggle when data is receive in CAN Node1 LED blinking

HOT Exercise CAN_2 Verification Page 65 Verification 1: (stop the program) Go to Tasking debugger Click on Suspend Go back to the terminal program and start typing again: you will no longer see what you are typing. Verification 2: (start the program) Go to Tasking debugger and start the program. Go back to the terminal program and start typing again: Pull out the CAN cable you will no longer see what you are typing

Page 66 CAN Bonus Exercise 1 (Unidirectional) TxD PC PC 1 RxD RxD TxD Receive Receive Buffer Buffer Transmit Transmit Buffer Buffer USIC 0 ASC 0 U0C0 U0C0 Receive Receive IRQ IRQ Priority Priority 3 3 USIC 0 ASC 0 U0C0 U0C0 Receive Receive IRQ IRQ Priority Priority 3 3 Receive Receive Buffer Buffer Transmit Transmit Buffer Buffer TxD PC PC 2 RxD RS 232 via USB CAN Node 0 EK-1 CAN CAN MSG MSG OBJ OBJ 2 2 CAN CAN MSG MSG OBJ OBJ 2 2 CAN Node 0 EK-2 RS 232 via USB ID=0x11 CAN_L CAN_H CAN_L CAN_H Ext. CAN Bus CAN Node 1 EK-1 CAN_L CAN_H CAN CAN MSG MSG OBJ OBJ 5 5 ID=0x11 CAN_L CAN_H CAN CAN MSG MSG OBJ OBJ 5 5 ID=0x11 CAN Node 1 EK-2 MO5 Receive IRQ MO5 Receive IRQ Priority 5 Priority 5 MO5 Receive IRQ MO5 Receive IRQ Priority 5 Priority 5

Page 67 CAN Bonus Exercise 2 (Bidirectional) TxD PC PC 1 RxD RxD TxD Receive Receive Buffer Buffer Transmit Transmit Buffer Buffer USIC 0 ASC 0 U0C0 U0C0 Receive Receive IRQ IRQ Priority Priority 3 3 USIC 0 ASC 0 U0C0 U0C0 Receive Receive IRQ IRQ Priority Priority 3 3 Receive Receive Buffer Buffer Transmit Transmit Buffer Buffer TxD PC PC 2 RxD RS 232 via USB CAN Node 0 EK-1 CAN CAN MSG MSG OBJ OBJ 2 2 CAN CAN MSG MSG OBJ OBJ 2 2 CAN Node 0 EK-2 RS 232 via USB ID=0x11 ID=0x12 CAN_L CAN_H CAN_L CAN_H Ext. CAN Bus CAN Node 1 EK-1 ID=0x12 CAN_L CAN_H CAN CAN MSG MSG OBJ OBJ 5 5 ID=0x11 CAN_L CAN_H CAN CAN MSG MSG OBJ OBJ 5 5 ID=0x11 CAN Node 1 EK-2 MO5 Receive IRQ MO5 Receive IRQ Priority 5 Priority 5 MO5 Receive IRQ MO5 Receive IRQ Priority 5 Priority 5

Tasking Viper "Profile Storage Space Exceeded" Page 68 Edit config.ini C:\Program Files\TASKING\C166-VX v2.4r1\eclipse\configuration\... # The default configuration location for this run of the platform. The configuration # determines what plug-ins will run as well as various other system settings. # osgi.configuration.area = @user.home/.eclipse_c166_v2.4r/config osgi.configuration.area = C:/UserData/_login-name_/.eclipse_c166_v2.4r/config # The default location of the user area. The user area contains data (e.g., preferences) # specific to the OS user and independent of any Eclipse install, configuration or instance. # osgi.user.area = @user.home/.eclipse_c166_v2.4r osgi.user.area = C:/UserData/_login-name_/.eclipse_c166_v2.4r # The default workspace location # osgi.instance.area.default = @user.home/workspace_c166_v2.4r osgi.instance.area.default = C:/UserData/_login-name_/workspace_c166_v2.4r # TASKING plugins require at least Java runtime environment v1.5 osgi.requiredjavaversion = 1.5.0 # The build identifier eclipse.buildid=i20070625-1500 # End of file marker - must be here eof=eof

Tasking Viper "Profile Storage Space Exceeded" Page 69 Delete old directories in profile space C:\Documents and Settings\_login-name_\.eclipse_c166_v2.4r Rescan Profile Storage (double click; OK)