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

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 CAN_2 Serial Communication using the CAN with external CAN BUS

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

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

XC2287 HOT. Exercise CAN_1 Communication using the CAN Module

XC866 Getting Started on EasyKit & Toolkits

Application Note, V2.0, April 2010 AP16174 XE164

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

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

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

XE166 family Easy Kit

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

EKK-LM3S811 QUICKSTART

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

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

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

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

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

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

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

Programming in the MAXQ environment

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

Development Board (Quick start) LDM-MCp Q208 Evolution

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

EPM900 - Overview. Features. Technical Data

XMC4700/XMC4800 RelaxKit HelloWorld (USB)

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

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

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

VORAGO VA108x0 Bootloader application note

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

Release Notes for Device Access Server (DAS)

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

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

Exercise: PWM Generation using the N2HET

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

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

Debugging in AVR32 Studio

CoLinkEx_LPC11C14 EVB Kit User Guide

3.1 I-7560 Pin Assignment and Specifications: Introduction

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

A Seamless Tool Access Architecture from ESL to End Product

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

BASICS OF THE RENESAS SYNERGY PLATFORM

USB232 board EB Technical datasheet

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

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

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

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

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

Codewarrior for ColdFire (Eclipse) 10.0 Setup

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

Emulating an asynchronous serial interface (ASC0) via software routines

SOFTWARE UART MANAGEMENT

AMS COCKPIT USERS GUIDE. AMS Cockpit Version 1.1 USERS GUIDE

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

Updating Reader Firmware

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

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

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

Application Note, V3.0, June 2006 AP TC179x. TC179x Examples Collection. Microcontrollers

BASICS OF THE RENESAS SYNERGY TM

USB485 USB to RS485 Converter Card

EE475 Lab #3 Fall Memory Placement and Interrupts

PS Telematik-Projekt: Wireless Embedded Systems

Embedded Development Platform

Bluetooth V4.1 BLE RS-232 Serial Adapter Model: BLE-232B Bluetooth V4.2 BLE RS-232 Serial Adapter Model: BLE-232C

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

Spartan-3 MicroBlaze Sample Project

Saab TransponderTech. R4 Display SW Update Instruction

Troubleshooting & Repair

PI Scanner User Guide

Rocky Gang Programmer User Guide

NEW CEIBO DEBUGGER. Menus and Commands

LAB1. Get familiar with Tools and Environment

Implementing a Serial Download Manager for Two 256K Byte Flash Memories

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

Embedded Systems Laboratory Manual ARM 9 TDMI

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

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

ShortStack 2.1 ARM7 Example Port User s Guide

PCI Express 16-Port Serial I/O Cards

Quick Start Guide: RL78G14 Motor Control Starter Kit

LM058 Bluetooth Serial Adapter

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

Implementing In-Application Programming on the ADuC702x

C8051F700-DK C8051F700 DEVELOPMENT KIT USER S GUIDE. 1. Relevant Devices. 2. Kit Contents. 3. Hardware Setup

GEM80 & ewon Setup Quick Guide

VX-Toolset for TriCore

BASCOM51. Quick Start Guide

Emulating an asynchronous serial interface (USART) via software routines

Easy Kit Board Manual

Embedded Development Platform Getting Started Guide for XC167 Command Module

Firmware Reprogramming Guide

esi-risc Development Suite Getting Started Guide

PL2303TB USB-to-Serial Bridge Controller Demo Board User Manual

System Ace Tutorial 03/11/2008

Introduction USART & AVR EVK1100

AURIX family and AUDO Future, AUDO MAX

keyestudio Keyestudio MEGA 2560 R3 Board

Transcription:

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

XC2287M HOT Exercise ASC Hello World with ASC Let s get started now! Page 2

XC2287M HOT Exercise ASC 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 ASC Hello World with ASC In this exercise you will: Configure the XC2287M with DAvE Configure USIC 0 Channel 0 as a UART Receive a character from a PC and generate a receive interrupt Transmit the received data back to the PC Toggle one of the LED s on the board on receipt of every character Page 4

HOT Exercise ASC Block Diagram 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 ASC RX Interrupt = Transfer by Interrupt handler Received Character -> U0C0 ASC TX (Sends Received character) Clear ASC status register Exit Page 5

HOT Exercise ASC 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 6

HOT Exercise ASC Select Device 1 2 3 Page 7

HOT Exercise ASC - DAvE Configurations Project Settings Project Settings Close the window Page 8

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

HOT Exercise ASC - DAvE Configurations Save DAvE Project Save your DAvE Project File 1 2 3 4 Page 10

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

HOT Exercise ASC - DAvE Configurations ASC Settings (cont.) Configure Protocol Select ASC for USIC0 (U0C0) Close the windows by pressing Page 12

HOT Exercise ASC - DAvE Configurations ASC settings (cont.) XC2287M USIC0, CH0 : Click on the Page 13

HOT Exercise ASC - DAvE Configurations ASC Settings (cont.) Configure ASC General Enable module Pin selection Transmit (TxD) P7.3, Receive (RxD) P7.4 Others- default 1 2 Page 14

HOT Exercise ASC - DAvE Configurations ASC Settings (cont.) Configure ASC Control Click on Receive Interrupt 2 1 Page 15

HOT Exercise ASC - DAvE Configurations ASC Settings (cont.) Configure ASC Interrupts Drag U0C0 OIC INT from Level 0 to Level 3, Group 0 1 2 3 Page 16

HOT Exercise ASC - DAvE Configurations ASC Settings (cont.) Configure ASC Functions Click on U0C0_ASC_vInit Click on U0C0_ASC_vSendData Click on 4 3 1 2 Page 17

HOT Exercise ASC - DAvE Configurations Port settings XC2287M Port: Click on the Page 18

HOT Exercise ASC - DAvE Configurations Port settings Parallel Ports Ports: Configure Port 10 Page 19

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

HOT Exercise ASC - DAvE Configurations Port settings Parallel Ports Functions: Include IO_vInit Include IO_vTogglePin Page 21

HOT Exercise ASC - 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\asc\asc.dav Page 22

HOT Exercise ASC - 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 U0C0.C, U0C0.H USIC0.C, USIC0.H IO.C, IO.H SCS.C, SCS.H XC22XXREGS.H Page 23

HOT Exercise ASC Tasking VX Toolset Create New Work Space Click on Filename: c:\ifx_hot\xc2287m\examples Click OK 1 2 Page 24

HOT Exercise ASC Tasking VX Toolset Create New Project Click on Workbench Page 25

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

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

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

HOT Exercise ASC 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 29

HOT Exercise ASC 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 30

HOT Exercise ASC Tasking VX Toolset Add User Code U0C0.C (ISR) _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) IO_vTogglePin(IO_P10_0); 1 U0C0_ASC_vSendData (U0C0_RBUF); // USER CODE END U0C0_PSCR = 0x4000; // clear PSR_RIF } // USER CODE BEGIN (ASC0IC,15) // USER CODE END } // End of function U0C0_ASC_vi0IC Page 31

HOT Exercise ASC Tasking VX Toolset Build Project Click on Build Project ASC 1 Page 32

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

HOT Exercise ASC - 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 34

HOT Exercise ASC - 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 35

HOT Exercise ASC - 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 36

HOT Exercise ASC Tasking VX Toolset Connect XC2287M Easy Kit Connect XC2287M Board to PC Modify The DIP Switch Settings, 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 37

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

HOT Exercise ASC Start HyperTerminal 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 Page 39

HOT Exercise ASC Start HyperTerminal 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 Page 40

HOT Exercise ASC Running the program Start typing Enter ASCII characters in the HyperTerminal The characters you enter are sent to the XC2287M 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! Hold the reset button down to verify that the screen no longer displays the typed characters Page 41

HOT Exercise ASC See Result The yellow LED will toggle when the ASC sending the data back LED blinking Page 42

HOT Exercise ASC Tasking VX Toolset Run Debugger Verifications Click on Suspend Click on Restart The LED no longer toggles when a key is pressed Click on Resume LED toggles again when a key is pressed Page 43

Page 44