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

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

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

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

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

XC2287 HOT. Exercise CAN_1 Communication using the CAN Module

XC866 Getting Started on EasyKit & Toolkits

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

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

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

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

Application Note, V2.0, April 2010 AP16174 XE164

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

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

A Seamless Tool Access Architecture from ESL to End Product

XMC4700/XMC4800 RelaxKit HelloWorld (USB)

VX-Toolset for TriCore

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

Programming in the MAXQ environment

Getting Started in C Programming with Keil MDK-ARM Version 5

Getting Started in C Programming with Keil MDK-ARM Version 5

As CCS starts up, a splash screen similar to one shown below will appear.

Getting Started with the TASKING VX-toolset for ARM

Release Notes for Device Access Server (DAS)

Getting Started in C Programming with Keil MDK-ARM Version 5

NEW CEIBO DEBUGGER. Menus and Commands

A Seamless Tool Access Architecture from ESL to End Product. Albrecht Mayer (Infineon Microcontrollers) S4D Conference Sophia Antipolis, Sept.

EKK-LM3S811 QUICKSTART

Evaluation Board and Kit Getting Started

BASICS OF THE RENESAS SYNERGY PLATFORM

Getting Started Guide RS-EDP & XC167 CPU Module. Version 2 10th June 2010

Exercise: PWM Generation using the N2HET

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

Evaluation Board Getting Started. TLE984x_EVB_1.x TLE9845_EVB_1.x

As CCS starts up, a splash screen similar to one shown below will appear.

Getting acquainted with the development tools June 27, 2006 ELE492 Embedded System Design Exercise 1

Evaluation Board Getting Started

BASICS OF THE RENESAS SYNERGY TM

LAB1. Get familiar with Tools and Environment

IAR EWARM Quick Start for. Holtek s HT32 Series Microcontrollers

IAR C-SPY Hardware Debugger Systems User Guide

AURIX family and AUDO Future, AUDO MAX

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

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

XC800 Family AP Application Note. Microcontrollers. Capacitive-Touch Color Wheel Implementation V1.0,

Debugging Linux With LinuxScope-JTD

XMC4800 EtherCAT APP SSC Firmware Update Slave Example. Getting Started Version 3.0

Getting Started Guide: TMS-FET470A256 IAR Kickstart Development Kit

Implementing In-Application Programming on the ADuC702x

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

Embedded Development Platform Getting Started Guide for XC167 Command Module

AN1369 APPLICATION NOTE

XMC4800 EtherCAT APP SSC Slave Example. Getting Started V3.0

Keil TM MDK-ARM Quick Start for. Holtek s HT32 Series Microcontrollers

VORAGO VA108x0 Bootloader application note

Evaluation Board Getting Started. Toolchain Setup for: TLE9869_EVALKIT TLE986x_EVALB_JLINK TLE9879_EVALKIT TLE987x_EVALB_JLINK

APPENDIX A. CODE COMPOSER STUDIO (CCS) v5: A BRIEF TUTORIAL FOR THE DSK6713

Controller Continuum. for Microcontrollers V6.3. Quick Start

Using Code Composer Studio IDE with MSP432

LAB #1: The CSM12C32 Module and PBMCUSLK Project Board

Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio

SEGGER J-Scope. User Guide. Document: UM08028 Software Version: 5.10 Revision: 0 Date: November 26, 2015

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

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

Micrium uc/probe XMC getting started. XMC TM microcontrollers July 2016

NIOS CPU Based Embedded Computer System on Programmable Chip

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

Introduction to Embedded Systems

Getting started with software and firmware environments for the

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

MB95260H/MB95270H. MB95280H Series. MB95260H Series/MB95270H Series/

Getting Started with the TASKING VX-toolset for C166

F 2 MC-8FX Family. 8-bit Microcontroller. MB95200 Series

Parallel Debugging. ª Objective. ª Contents. ª Learn the basics of debugging parallel programs

XE166 family Easy Kit

Quick Start Guide Demo Distance2Go. July 2018

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

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

Application Note, V1.0, November AP XC2000/XE166 family. ADC Result Handling on XC2000/XE166 family of Microcontrollers.

Software Setup and Introductory Assembly programs for the MSP430 *

Preparations. Creating a New Project

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

F28069 ControlCard Lab1

Migrating from CubeSuite+ to Eclipse RL78 Family

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

)8-,768'HY.LW 2YHUYLHZ. )XMLWVX0LNURHOHNWURQLN*PE+ Am Siebenstein Dreieich-Buchschlag, Germany

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

Quick Start Guide: RL78G14 Motor Control Starter Kit

Create and Debug a CCSv5.5 Project for DSK6713- or DUETT-Board1

Reduce SW Development Time with DAVE 3. March, 2012

,$5$SSOLFDWLRQ1RWH$95 (IILFLHQWSURJUDPPLQJRI$WPHO V $95 PLFURFRQWUROOHUV

XMC1200 Boot Kit. Getting Started

Evaluation board for NXP LPC2103. User Guide. Preliminary Version updated 27 th Aug TechToys Company All Rights Reserved

DOMAIN TECHNOLOGIES. Getting Started Guide Version 1.1. BoxView IDE. Integrated Development Environment

System Ace Tutorial 03/11/2008

TASKING Embedded Profiler User Guide

Design UART Loopback with Interrupts

Codewarrior for ColdFire (Eclipse) 10.0 Setup

Migrating from Keil µvision for 8051 to IAR Embedded Workbench for 8051

An introduction to MTV

Quick Start Guide Demo Distance2Go. September 2017

Transcription:

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

XC2287M HOT Exercise GPT12 Hardware Triggering of GPT12 Let s get started now! Page 2

HOT Exercise GPT12 Interaction of Development Tools 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 Page 3

HOT Exercise GPT12 Hardware Triggering of GPT In this exercise you will: Configure the XC2287M with DAvE Configure the GPT timer T6 The GPT timer overflow would be used to interface to CAPCOM2 in the later exercise. Page 4

HOT Exercise GPT12 Start DAvE 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 Page 5

HOT Exercise GPT12 Select Device 1 2 3 Page 6

HOT Exercise GPT12 - DAvE Configurations Project Settings Project Settings Close the window Page 7

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

HOT Exercise GPT12 - DAvE Configurations Save DAvE Project Save your DAvE Project File 1 2 3 4 Page 9

HOT Exercise GPT12 - DAvE Configurations GPT Settings Click on GPT2 module Page 10

HOT Exercise GPT12 - DAvE Configurations GPT Settings (cont.) Configure GPT2 module Enable module Set prescaler for the timer block 2 till 8 1 2 Page 11

HOT Exercise GPT12 - DAvE Configurations GPT Settings (cont.) T6 Settings 1 6 5 3 2 4 7 8 9 Page 12

HOT Exercise GPT12 - DAvE Configurations GPT Settings (cont.) Click on Capture/Reload tab CAPREL reload value = 0x3FFF 1 2 Page 13

HOT Exercise GPT12 - DAvE Configurations GPT Settings (cont.) Configure GPT2 Interrupts Drag GPT2 T6 INT from Level 0 to Level 8, Group 0 1 2 3 Page 14

HOT Exercise GPT12 - DAvE Configurations GPT Settings (cont.) Configure GPT2 Functions Click on GPT2_vInit Click on GPT2_vStartTmr, _vsettogglatch _vclrtogglatch Click on 4 1 2 3 Page 15

HOT Exercise GPT12 - DAvE Configurations Port Settings Click on Port Page 16

HOT Exercise GPT12 - DAvE Configurations Port Settings (cont.) Configure Ports Ports Click on Configure Port 10 Page 17

HOT Exercise GPT12 - DAvE Configurations Port Settings (cont.) Configure Ports Port 10 Functionality - click on P10.0( to P10.7) as general IO Direction click on Out Output Value click high Click on 4 1 2 3 Page 18

HOT Exercise GPT12 - DAvE Configurations Port Settings (cont.) Configure Ports Functions Initialization Function - click on IO_vInit, IO_vTogglepin Click on 3 1 2 Page 19

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

HOT Exercise GPT12 - DAvE Configurations Code Generation Let DAvE Generate Code for You Go to File generate Code or click on DAvE generated code files are MAIN.C, MAIN.H GPT2.C, GPT2.H IO.C, IO.H SCS.C, SCS.H XC22XXREGS.H Page 21

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

HOT Exercise GPT12 Tasking VX Toolset Create New Project Click on Workbench (if not already there ) Page 23

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

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

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

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

HOT Exercise GPT12 Tasking VX Toolset Software Hint DAvE doesn t change code that is inserted in the USER CODE sections if you let DAvE regenerate the code. 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: while(1) { // USER CODE BEGIN (Main,4) BlinkLED(); // USER CODE END } Page 28

HOT Exercise GPT12 Tasking VX Toolset Add User Code GPT2.C (ISR) // USER CODE BEGIN (Tmr6,1) // USER CODE END _interrupt(t6int) void GPT2_viTmr6(void) { // USER CODE BEGIN (Tmr6,2) IO_vTogglePin(IO_P10_0); IO_vTogglePin(IO_P10_1); IO_vTogglePin(IO_P10_2); IO_vTogglePin(IO_P10_3); // USER CODE END } // End of function GPT2_viTmr6 // USER CODE BEGIN (GPT2_General,10) // USER CODE END Page 29

HOT Exercise GPT12 Tasking VX Toolset Build Project Click on Build Project GPT12 Page 30

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

HOT Exercise GPT12 - Device Access Server 1.) Checking USB connections 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 32

HOT Exercise GPT12 - 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 33

HOT Exercise GPT12 - 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 Page 34

HOT Exercise GPT12 Tasking EDE Connect XC2287M Easy Kit Connect XC2287M Board to PC Check the DIP Switch Settings on S102: OFF-OFF-OFF-OFF-OFF (Start from Internal Flash) Reset The Board (Press The Reset Button) S102 Standard Internal Start configuration ON 1 2 3 4 DIP 5 USB Reset button Page 35

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

HOT Exercise GPT12 Tasking VX Toolset Run Debugger See Results LED s toggle when the GPT2 interrupt takes place. Page 37

HOT Exercise GPT12 Tasking VX Toolset Run Debugger Verifications Click on Suspend Click on Restart LEDs change ON/OFF States Click on Resume Page 38

Page 39