HALCoGen TMS570LS31x Help: example_sci_uart_9600.c

Similar documents
Open Source Used In TSP

ANZ TRANSACTIVE MOBILE for ipad

ColdFusion Builder 3.2 Third Party Software Notices and/or Additional Terms and Conditions

MUMPS IO Documentation

Ecma International Policy on Submission, Inclusion and Licensing of Software

IETF TRUST. Legal Provisions Relating to IETF Documents. Approved November 6, Effective Date: November 10, 2008

Table of Contents Overview...2 Selecting Post-Processing: ColorMap...3 Overview of Options Copyright, license, warranty/disclaimer...

Copyright PFU LIMITED 2016

System Log NextAge Consulting Pete Halsted

IETF TRUST. Legal Provisions Relating to IETF Documents. February 12, Effective Date: February 15, 2009

Open Source Used In Cisco Configuration Professional for Catalyst 1.0

Ecma International Policy on Submission, Inclusion and Licensing of Software

Intel Stress Bitstreams and Encoder (Intel SBE) 2017 AVS2 Release Notes (Version 2.3)

HYDROOBJECTS VERSION 1.1

MagicInfo Express Content Creator

Copyright PFU LIMITED

ProgressBar Abstract

NemHandel Referenceklient 2.3.1

User Manual. Date Aug 30, Enertrax DAS Download Client

pyserial-asyncio Documentation

NemHandel Referenceklient 2.3.0

LabVIEW Driver. User guide Version

Open Source Used In c1101 and c1109 Cisco IOS XE Fuji

Preface. Audience. Cisco IOS Software Documentation. Organization

Documentation Roadmap for Cisco Prime LAN Management Solution 4.2

Open Source and Standards: A Proposal for Collaboration

Static analysis for quality mobile applications

Fujitsu ScandAll PRO V2.1.5 README

Internet Connection Guide

HYDRODESKTOP VERSION 1.4 QUICK START GUIDE

Data Deduplication Metadata Extension

Package fst. December 18, 2017

Grouper UI csrf xsrf prevention

CSCE Inspection Activity Name(s):

The Cron service allows you to register STAF commands that will be executed at a specified time interval(s).

iphone/ipad Connection Manual

About This Guide. and with the Cisco Nexus 1010 Virtual Services Appliance: N1K-C1010

Definiens. Image Miner bit and 64-bit Editions. Release Notes

cs50.c /**************************************************************************** * CS50 Library 6 *

Watch 4 Size v1.0 User Guide By LeeLu Soft 2013

Enterprise Payment Solutions. Scanner Installation April EPS Scanner Installation: Quick Start for Remote Deposit Complete TM

DAP Controller FCO

FLAMEBOSS 300 MANUAL

iwrite technical manual iwrite authors and contributors Revision: 0.00 (Draft/WIP)

US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

HIS document 2 Loading Observations Data with the ODDataLoader (version 1.0)

PageScope Box Operator Ver. 3.2 User s Guide

This file includes important notes on this product and also the additional information not included in the manuals.

APPLICATION NOTE. Atmel AT03261: SAM D20 System Interrupt Driver (SYSTEM INTERRUPT) SAM D20 System Interrupt Driver (SYSTEM INTERRUPT)

Definiens. Image Miner bit and 64-bit Edition. Release Notes

calio / form-input-nginx-module

Conettix Universal Dual Path Communicator B465

FLAME BOSS 200V2 & 300 MANUAL. Version 2.6 Download latest at FlameBoss.com/manuals

SAM4 Reset Controller (RSTC)

This file includes important notes on this product and also the additional information not included in the manuals.

PTZ Control Center Operations Manual

AT11512: SAM L Brown Out Detector (BOD) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

TheGreenBow VPN Client ios User Guide

AccuTerm 7 Internet Edition Connection Designer Help. Copyright Schellenbach & Assoc., Inc.


Definiens. Tissue Studio Release Notes

HYDRODESKTOP VERSION 1.1 BETA QUICK START GUIDE

SW MAPS TEMPLATE BUILDER. User s Manual

TWAIN driver User s Guide

User Guide. Calibrated Software, Inc.

Business Rules NextAge Consulting Pete Halsted

Scott Auge

License, Rules, and Application Form

openresty / array-var-nginx-module

Denkh XML Reporter. Web Based Report Generation Software. Written By Scott Auge Amduus Information Works, Inc.

AT03262: SAM D/R/L/C System Pin Multiplexer (SYSTEM PINMUX) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

Taking the LPC800 into the delta quadrant :)

RPly Documentation. Release Alex Gaynor

Package fst. June 7, 2018

Packet Trace Guide. Packet Trace Guide. Technical Note

Distinction Import Module User Guide. DISTINCTION.CO.UK

PyWin32ctypes Documentation

Explaining & Accessing the SPDX License List

User Manual for Video Codec

Remote Divert User Interface DI. Instruction Manual

Trimble. ecognition. Release Notes

Migration Tool. Migration Tool (Beta) Technical Note

Anybus Wireless Bridge Ethernet Bluetooth Access Point Product Guide

Pulse Check User Guide and Technical Guide. Quick Start Framework. Version Name: Winter 16 Version Number: 1.5 Date:

SMS2CMDB Project Summary v1.6

QuarkXPress Server Manager 8.0 ReadMe

Bar Code Discovery. Administrator's Guide

SNP Launchpad. Version: December SNP Schneider-Neureither & Partner AG

Note: The version the Event service must be 1.10 or later (but less than 3.0.0).

<!--Released: February > <!--====================================================================--> <!--March > <!--

NTLM NTLM. Feature Description

Tenable Hardware Appliance Upgrade Guide

Copyright 2010 by Microtek International, Inc. Trademarks. Important. All rights reserved.

VMware vcenter Log Insight Manager. Deployment Guide

RSA Two Factor Authentication

SkyPilot OS Installation: Fedora Core 5

Flask-Sitemap Documentation

Flask Gravatar. Release 0.5.0

Splunk. Splunk. Deployment Guide

Adobe Connect. Adobe Connect. Deployment Guide

Transcription:

Page 1 of 6 example_sci_uart_9600.c This example code configures SCI and transmits a set of characters. An UART receiver can be used to receive this data. The scilin driver files should be generated with deafult settings. Execution: Connect the SCI port of the micro to the COM port of the personal computer with MS Windows. Configure the MS Windows Hytermenal as COM port with the following Port Settings: Bits per second : 9600, Data Bits : 8 Parity : None Stop Bits : 2 Step 1: Create a new project. Navigate: -> File -> New -> Project Figure: Create a new Project Step 2: Navigate: -> TMS570LSxx /RM4x -> Enable Drivers Configure driver code generation: Enable SCILIN driver Disable others

Page 2 of 6 Figure: SCI Enable Driver Step 3: Configure SCI:

Page 3 of 6 Navigate: -> TMS570LSxx /RM4x -> SCI Figure: SCI Global settings

Page 4 of 6 Figure: SCI Data Format Step 4: Click on Generate code icon. Navigate: -> File -> Generate Code

Page 5 of 6 Figure: Click Generate Code Step 5: Copy the source code below into your sys_main.c (or) replace sys_main.c with this file. The example file can also be found in the examples folder:../halcogen/examples Note HALCoGen generates an empty main function in sys_main.c, / Copyright (C) 2009-2015 Texas Instruments Incorporated - www.ti.com Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Page 6 of 6 / / USER CODE BEGIN (0) / / USER CODE END / / Include Files / #include "sys_common.h" #include "system.h" / USER CODE BEGIN (1) / #include "sci.h" #define TSIZE1 10 uint8 TEXT1[TSIZE1]= 'H','E','R','C','U','L','E','S',' ',' '}; #define TSIZE2 18 uint8 TEXT2[TSIZE2]= 'M','I','C','R','O','C','O','N','T','R','O','L','L','E','R','S',' ',' '}; #define TSIZE3 19 uint8 TEXT3[TSIZE3]= 'T','E','X','A','S',' ','I','N','S','T','R','U','M','E','N','T','S','\n','\r'}; void scidisplaytext(scibase_t sci, uint8 text, uint32 length); void wait(uint32 time); #define UART scilinreg / USER CODE END / / USER CODE BEGIN (2) / / USER CODE END / void main(void) / USER CODE BEGIN (3) / sciinit(); / initialize sci/sci-lin / / even parity, 2 stop bits / while(1) / continious desplay / scidisplaytext(uart,&text1[0],tsize1); / send text code 1 / scidisplaytext(uart,&text2[0],tsize2); / send text code 2 / scidisplaytext(uart,&text3[0],tsize3); / send text code 3 / wait(200); }; / USER CODE END / } / USER CODE BEGIN (4) / void scidisplaytext(scibase_t sci, uint8 text,uint32 length) while(length--) while ((UART->FLR & 0x4) == 4); / wait until busy / scisendbyte(uart,text++); / send out text / }; } void wait(uint32 time) time--; } / USER CODE END / Generated on Wed Oct 5 2016 14:07:50 for HALCoGen TMS570LS31x Help by 1.8.10