ECE 103 In-Class Exercise L1 Guide

Size: px
Start display at page:

Download "ECE 103 In-Class Exercise L1 Guide"

Transcription

1 ECE 10 In-Class Exercise L1 Guide Hardware and software needed to complete this lab exercise LabJack U, USB cable, and screwdriver (Qty 1) Red LED (Light Emitting Diode) Short lead is cathode (negative) (Qty 2) 1 kω resistor, Color bands: BROWN, BLACK, RED (Qty 1) 74LS00 2-input NAND gate IC (Qty 2) Push-button switch Protoboard & Jumper Wires Microsoft Visual Studio on a computer with a LabJack driver + Programming Reference ljerror = eget (ljhandle, LJ_ioGET_DIGITAL_BIT, FIO#, &InState, 0); Read from digital FIO Write to digital FIO Read from analog FIO Write to analog DAC Example: Read the logic state on FIO5 and save it to variable ival ljerror = eget (ljhandle, LJ_ioGET_DIGITAL_BIT, 5, &ival, 0); Variable ival will be either 0 (logic Low) or 1 (logic High) as measured by channel FIO5 ljerror = eput (ljhandle, LJ_ioPUT_DIGITAL_BIT, FIO#, OutState, 0); Example: Output a 1 (logic High) on FIO4 ljerror = eput (ljhandle, LJ_ioPUT_DIGITAL_BIT, 4, 1, 0); Syntax for enabling a channel for analog input: ljerror = eput (ljhandle, LJ_ioPUT_ANALOG_ENABLE_BIT, FIO#, 1, 0); Syntax for reading from an analog channel: ljerror = eget (ljhandle, LJ_ioGET_AIN, FIO#, &InVolt, 0); Example: Read the analog voltage on FIO2 and assign the voltage to variable ival ljerror = eput (ljhandle, LJ_ioPUT_ANALOG_ENABLE_BIT, 2, 1, 0); ljerror = eget (ljhandle, LJ_ioGET_AIN, 2, &ival, 0); ljerror= eput (ljhandle, LJ_ioPUT_DAC, DAC#, VDAC, 0); Example: Generate 2.5V on DAC0 channel ljerror = eput (ljhandle, LJ_ioPUT_DAC, 0, 2.5, 0); Input args: FIO# = 0 to 19, DAC# = 0 or 1, VDAC = 0 to 5 V, OutState = 0 (low) or 1 (high) Output args: InState = 0 (low) or 1 (high), InVolt = 0 to 2.44 V ljhandle LabJack ID handle, ljerror error status after operation 1

2 A Note on Microsoft Visual C Language Extensions For this In-Class Exercise, you will use certain Microsoft Visual C functions to accomplish tasks that would be difficult or impossible to do with pure C90/C99 code. Prototypes for three useful extensions are: int _kbhit ( void ); Checks console for keyboard input. It examines the input buffer directly and does not pause. Parameters : None Returns : A nonzero value if a key has been pressed. Otherwise, it returns 0. Remarks : The _kbhit function checks the console for a recent keystroke. If the function returns a nonzero value, a keystroke is waiting in the buffer. The program can then call _getch or _getche to get the keystroke code value. Header : <conio.h> void Sleep ( unsigned long Timeout ); Suspends (pauses) the execution of the current thread until the time-out interval elapses. Parameters : Time-out interval in milliseconds Returns : None Header : <Windows.h> Example : Sleep(200); /* Pause program for 200 milliseconds */ unsigned long GetTickCount ( void ); Retrieves the number of milliseconds that have elapsed since the system was started (up to 49.7 days ago). Parameters : None Returns : Elapsed time in milliseconds Header : <Windows.h> Example : t = GetTickCount(); /* If t contained 1245, it would mean 12,45 ms */ /* had elapsed since the system was started. */ 2

3 Part 1: Monitor switches using a LabJack and a C program In this section, you will create a C program that controls a LabJack to monitor two mechanical pushbutton switches. One switch will be configured for digital input, while the other will use analog input. If the digital switch is pressed, the LED will turn on. If the analog switch is pressed, the LED will turn off. The program will also update a count up/down variable on each switch press. Exercise 1A: Use a digital input channel on the LabJack to sense Switch #1 Construct the first switch circuit and LED circuit (see Figure 1) on the protoboard. LabJack FIO4 Switch #1 R pull-up +. V FIO5 + Red LED Sense FIO4 Figure 1: Connection diagram Figure 2: Internal FIO circuit Figure : Switch Pinout How does the digital input switch circuit work? (See Figure 2) a) FIO4 is configured as a digital input channel. b) The momentary contact switch in the LabJack parts kit is a mini push-button. The switch is normally open, so no electrical current will flow through it until the button is pressed. c) When the switch is closed (button pressed), the ground connection pulls the FIO4 input level down to 0 V. This is sensed as a logic low state. d) When the switch is opened (button not pressed), the internal pull-up resistor in FIO4 pulls the input level up to +. V. This is sensed as a logic high state. Summary: Button pressed 0 (logic low) is sensed. Button not pressed 1 (logic high) is sensed. FIO5 is configured as digital output. A low output turns off the LED, while a high output turns on the LED. An extra resistor is not needed due to the channel s internal current-limiting resistor.

4 C Project Setup Create a Microsoft Visual C/C++ Project 1. If it is not already running, start Microsoft Visual Studio (or Visual Studio Express). 2. The main Visual Studio window will appear. If the Solution Explorer pane is not visible, select View Solution Explorer from the menu bar. Click the New Project option on the Start Page. (Alternate method: Select File New Project from the menu bar.). The New Project window will appear. On the left side of this window, select "Visual C++" under Templates. In the center section, select "Win2 Console Application". In the Name input box, enter a name you would like to use for your project. In the Location input box, enter a directory where you would like to save your project. Click [OK]. 4. The Win2 Application Wizard window will appear. Click [Next >] to show the next wizard page. On the left-side of this window, select Application Settings. Under Application type, select Console application. Under Additional options, check Empty project. (The Precompiled header option will be grayed-out automatically.) Click [Finish]. 5. The Solution Explorer pane will show your newly created project. These folders should be visible: Header Files, Resource Files, and Source Files. Right-click the Source Files folder in the solution explorer. Select Add New Item from the pop-up menu. 6. The Add New Item window will appear. On the left side of this window, select "Visual C++" under Installed. In the center section, select "C++ File (.cpp)". Note: Don t worry that you chose.cpp instead of.c. This is fixed in the next step. In the Name input box, enter a source filename with a.c extension (e.g., prog.c). Click [Add]. If the file is successfully added, you will see the name of the newly created file inside the Source Files folder. 4

5 Add the LabJack Library This step specifies that the LabJack library file should be linked to the project. The library contains the low-level code needed to interface your program to the LabJack hardware. 1. Right-click the name of your project in the Solution Explorer pane. 2. Select Add Existing Item from the pop-up menu.. The Add Existing Item window will appear. Using the pop-up window s browser, navigate to and select the following file: C:\Program Files\LabJack\Drivers\LabJackUD.lib Click [Add]. If a message appears that asks if you want to create a new rule file, click [No]. If the file is successfully added, you will see its name below (not inside) the Source Files folder. Get the following file from the course website: Switch_LED_program.c 1. Copy and paste the contents of the file into the editor window. 2. Select File Save from the menu bar to save the source code. Compiling the Program 1. If the Output pane is not visible, select View > Output from the menu bar. 2. To build (compile) your program, choose one of these methods: Select Build > Build Solution from the menu bar -or- press the F7 key on the keyboard. The output of the build is displayed in the Output pane. If the code compiled successfully, the last line should be: "Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped" If the code did not compile successfully, the Output pane will show a list of errors. Double-click an error in the list to move the cursor to the offending line in the source code. Fix any problems and rebuild. Running the Program For a console application, output will appear in a separate pop-up window. To run your program and keep the output window open after it is done: Select Debug > Start Without Debugging from the menu bar. Press CTRL+F5 on the keyboard. Verify that your circuit and the program work as expected. 5

6 Exercise 1B: Use an analog input channel on the LabJack to sense Switch #2 Add the second switch circuit (see Figure 4) to the other circuit you already built on the protoboard. VS = +5 V LabJack FIO6 Rpull-up = 1 kω Switch #2 Figure 4: (Other switch & LED not shown) How does the analog input switch circuit work? a) FIO6 is configured as an analog input channel. b) When the switch is closed (button pressed), the ground connection pulls the FIO6 input level down to 0 V. c) When the switch is opened (button not pressed), the external resistor pulls the FIO6 input level up to +5 V. Note: When a LabJack U-LV FIO channel is configured for analog input, it is designed to accept overvoltages of up to +10 V without damage. However, the LV model can only accurately read voltages up to V. Hence, the +5 V input level will register as between 2.44 to 2.5 V. The LabJack U-HV AIN channel is designed to accept over-voltages of up to+40 V without damage. However, the HV model can only accurately read voltages up to +10 V. The +5 V input level should register as about 5 V. Since an analog input is used, it will sense the actual voltage present on the channel. To decide whether the switch is open or closed, you need to test if the measured voltage is above or below a selected threshold value (e.g., midway between 0 V and the maximum expected voltage). Perform the Part 1 Exercise 1B tasks in the Exercise Worksheet. 6

7 Part 2: Monitor a NAND Gate Circuit You will make the LabJack sense the output logic state of a 2-input NAND gate Exercise 2A Disassemble and remove the components from Part 1. Construct the circuit below (see Figure 5) on the protoboard. VS Switch #1 1 kω 1 kω 74LS FIO4 LabJack DAC0 Red LED + Switch #2 Figure 5: Connection diagram o o o Use two push-button switches for the NAND gate inputs. Add 1 kω resistors to the NAND inputs to pull the voltage high when the switches are open. Use one of the 2-input NAND gates in the 74LS00 IC chip (see Figure 5). For example, use Pin 1 and Pin 2 as the NAND inputs and Pin as the NAND output. notch V CC Figure 6: 74LS00 NAND gate pinout Connect Pin 14 (V CC) to VS (+5 V) on the LabJack. Connect Pin 7 () to on the LabJack. Do not connect VS to the output pins on the gate. It will damage the IC chip! Get the following file from the course website: NAND_program.c 1. Copy and paste the contents of the file into the editor window. 2. Select File Save from the menu bar to save the source code. Perform the Part 2 Exercise 2A tasks in the Exercise Worksheet. 7

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2005

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2005 CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2005 The process of creating a project with Microsoft Visual Studio 2005.Net is similar to the process in Visual

More information

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2003

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2003 CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2003 The process of creating a project with Microsoft Visual Studio 2003.Net is to some extend similar to the process

More information

Thursday, September 15, electronic components

Thursday, September 15, electronic components electronic components a desktop computer relatively complex inside: screen (CRT) disk drive backup battery power supply connectors for: keyboard printer n more! Thursday, September 15, 2011 integrated

More information

Introduction. Key features and lab exercises to familiarize new users to the Visual environment

Introduction. Key features and lab exercises to familiarize new users to the Visual environment Introduction Key features and lab exercises to familiarize new users to the Visual environment January 1999 CONTENTS KEY FEATURES... 3 Statement Completion Options 3 Auto List Members 3 Auto Type Info

More information

Finite State Machine Lab

Finite State Machine Lab Finite State Machine Module: Lab Procedures Goal: The goal of this experiment is to reinforce state machine concepts by having students design and implement a state machine using simple chips and a protoboard.

More information

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2010

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2010 CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2010 The process of creating a project with Microsoft Visual Studio 2010.Net is similar to the process in Visual

More information

Visual C++ Tutorial. For Introduction to Programming with C++ By Y. Daniel Liang

Visual C++ Tutorial. For Introduction to Programming with C++ By Y. Daniel Liang 1 Introduction Visual C++ Tutorial For Introduction to Programming with C++ By Y. Daniel Liang Visual C++ is a component of Microsoft Visual Studio 2012 for developing C++ programs. A free version named

More information

Outline for Today. Lab Equipment & Procedures. Teaching Assistants. Announcements

Outline for Today. Lab Equipment & Procedures. Teaching Assistants. Announcements Announcements Homework #2 (due before class) submit file on LMS. Submit a soft copy using LMS, everybody individually. Log onto the course LMS site Online Assignments Homework 2 Upload your corrected HW2-vn.c

More information

Compiling MapleSim C-Code in Visual C Express

Compiling MapleSim C-Code in Visual C Express Compiling MapleSim C-Code in Visual C++ 2010 Express Introduction This tutorial will guide you through the steps involved in generating C code from a MapleSim 5 model, and then compiling the code in Visual

More information

REQUIRED MATERIALS Epiphany-DAQ board Wire Jumpers Switch LED Resistors Breadboard Multimeter (if needed)

REQUIRED MATERIALS Epiphany-DAQ board Wire Jumpers Switch LED Resistors Breadboard Multimeter (if needed) Page 1/6 Lab 1: Intro to Microcontroller Development, 06-Jan-16 OBJECTIVES This lab will introduce you to the concept of developing with a microcontroller while focusing on the use of General Purpose Input/Output

More information

Setting up a Project and Debugging with Visual Studio

Setting up a Project and Debugging with Visual Studio Setting up a Project and Debugging with Visual Studio Contents Setup Visual Studio to compile a DLL ---------------------------------------------------------------- 1 Step 1: Install Visual Studio Express

More information

IME-100 Interdisciplinary Design and Manufacturing

IME-100 Interdisciplinary Design and Manufacturing IME-100 Interdisciplinary Design and Manufacturing Introduction Arduino and Programming Topics: 1. Introduction to Microprocessors/Microcontrollers 2. Introduction to Arduino 3. Arduino Programming Basics

More information

Getting Started with Visual Studio

Getting Started with Visual Studio Getting Started with Visual Studio Visual Studio is a sophisticated but easy to use integrated development environment (IDE) for C++ (and may other languages!) You will see that this environment recognizes

More information

Prototyping & Engineering Electronics Kits Basic Kit Guide

Prototyping & Engineering Electronics Kits Basic Kit Guide Prototyping & Engineering Electronics Kits Basic Kit Guide odysseyboard.com Please refer to www.odysseyboard.com for a PDF updated version of this guide. Guide version 1.0, February, 2018. Copyright Odyssey

More information

Engr 123 Spring 2018 Notes on Visual Studio

Engr 123 Spring 2018 Notes on Visual Studio Engr 123 Spring 2018 Notes on Visual Studio We will be using Microsoft Visual Studio 2017 for all of the programming assignments in this class. Visual Studio is available on the campus network. For your

More information

StenBOT Robot Kit. Stensat Group LLC, Copyright 2018

StenBOT Robot Kit. Stensat Group LLC, Copyright 2018 StenBOT Robot Kit 1 Stensat Group LLC, Copyright 2018 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and documentation. There is a 90 day warranty for the

More information

WRITING CONSOLE APPLICATIONS IN C

WRITING CONSOLE APPLICATIONS IN C WRITING CONSOLE APPLICATIONS IN C with Visual Studio 2017 A brief step-by-step primer for ME30 Bryan Burlingame, San José State University The Visual Studio 2017 Community Edition is a free integrated

More information

Procedure: Determine the polarity of the LED. Use the following image to help:

Procedure: Determine the polarity of the LED. Use the following image to help: Section 2: Lab Activity Section 2.1 Getting started: LED Blink Purpose: To understand how to upload a program to the Arduino and to understand the function of each line of code in a simple program. This

More information

EECE 2411/2211-Introduction to Electrical and Computer Engineering Lab. Lab 3

EECE 2411/2211-Introduction to Electrical and Computer Engineering Lab. Lab 3 EECE 2411/2211-Introduction to Electrical and Computer Engineering Lab Lab 3 Building Multi-Gate Logic Circuits Introduction: In this lab we will look at combining the simple logic gates we used in the

More information

Opening Microsoft Visual Studio. On Microsoft Windows Vista and XP to open the visual studio do the following:

Opening Microsoft Visual Studio. On Microsoft Windows Vista and XP to open the visual studio do the following: If you are a beginner on Microsoft Visual Studio 2008 then you will at first find that this powerful program is not that easy to use for a beginner this is the aim of this tutorial. I hope that it helps

More information

Laboratory 10. Programming a PIC Microcontroller - Part II

Laboratory 10. Programming a PIC Microcontroller - Part II Laboratory 10 Programming a PIC Microcontroller - Part II Required Components: 1 PIC16F88 18P-DIP microcontroller 1 0.1 F capacitor 3 SPST microswitches or NO buttons 4 1k resistors 1 MAN 6910 or LTD-482EC

More information

ECE 2036 Lab 4 Setup and Test mbed I/O Hardware Check-Off Deadline: Thursday, March 17, Name:

ECE 2036 Lab 4 Setup and Test mbed I/O Hardware Check-Off Deadline: Thursday, March 17, Name: ECE 2036 Lab 4 Setup and Test mbed I/O Hardware Check-Off Deadline: Thursday, March 17, 2016 Name: Item Part 1. (40%) Color LCD Hello World Part 2. (10%) Timer display on Color LCD Part 3. (25%) Temperature

More information

GEORGIA INSTITUTE OF TECHNOLOGY School of Electrical and Computer Engineering ECE 2020 Fall 2017 Lab #1: Digital Logic Module

GEORGIA INSTITUTE OF TECHNOLOGY School of Electrical and Computer Engineering ECE 2020 Fall 2017 Lab #1: Digital Logic Module GEORGIA INSTITUTE OF TECHNOLOGY School of Electrical and Computer Engineering ECE 2020 Fall 2017 Lab #1: Digital Logic Module GOAL To introduce the physical implementation of digital logic circuits including

More information

Revision Notes: July2004 Generate tutorial for single transistor analysis. Based on existing schematic entry tutorial developed for ECE410

Revision Notes: July2004 Generate tutorial for single transistor analysis. Based on existing schematic entry tutorial developed for ECE410 Cadence Analog Tutorial 1: Schematic Entry and Transistor Characterization Created for the MSU VLSI program by Professor A. Mason and the AMSaC lab group. Revision Notes: July2004 Generate tutorial for

More information

DC Circuit Simulation

DC Circuit Simulation Chapter 2 DC Circuit Simulation 2.1 Starting the Project Manager 1. Select Project Manager from the Start All Program Cadence Release 16.5 Project Manager. 2. Select Allegro PCB Designer (Schematic) from

More information

Xilinx Tutorial Basic Walk-through

Xilinx Tutorial Basic Walk-through Introduction to Digital Logic Design with FPGA s: Digital logic circuits form the basis of all digital electronic devices. FPGAs (Field Programmable Gate Array) are large programmable digital electronic

More information

Lab 2: Introduction to Verilog HDL and Quartus

Lab 2: Introduction to Verilog HDL and Quartus Lab 2: Introduction to Verilog HDL and Quartus September 16, 2008 In the previous lab you designed simple circuits using discrete chips. In this lab you will do the same but by programming the CPLD. At

More information

University of Hull Department of Computer Science C4DI Interfacing with Arduinos

University of Hull Department of Computer Science C4DI Interfacing with Arduinos Introduction Welcome to our Arduino hardware sessions. University of Hull Department of Computer Science C4DI Interfacing with Arduinos Vsn. 1.0 Rob Miles 2014 Please follow the instructions carefully.

More information

MAXREFDES24EVSYS User Manual

MAXREFDES24EVSYS User Manual MAXREFDES24EVSYS User Manual Rev 1; 1/15 ADCLITE2 ANALOG SIGNAL CAPTURE GUI Windows PC REFDES24 4-CHANNEL ANALOG OUTPUT GUI 20 30VDC (>150mA) MAXREFDES24 MAX1659 LDO MAX17498 FLYBACK CONTROL MAX6126 VREF

More information

TREX Set-Up Guide: Creating a TREX Executable File for Windows

TREX Set-Up Guide: Creating a TREX Executable File for Windows TREX Set-Up Guide: Creating a TREX Executable File for Windows Prepared By: HDR 1 International Boulevard, 10 th Floor, Suite 1000 Mahwah, NJ 07495 May 13, 2013 Creating a TREX Executable File for Windows

More information

BASICS OF THE RENESAS SYNERGY TM

BASICS OF THE RENESAS SYNERGY TM BASICS OF THE RENESAS SYNERGY TM PLATFORM Richard Oed 2018.11 02 CHAPTER 9 INCLUDING A REAL-TIME OPERATING SYSTEM CONTENTS 9 INCLUDING A REAL-TIME OPERATING SYSTEM 03 9.1 Threads, Semaphores and Queues

More information

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

Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio ECE2049 Embedded Computing in Engineering Design Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio In this lab, you will be introduced to the Code Composer Studio

More information

ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University. Laboratory Exercise #1 Using the Vivado

ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University. Laboratory Exercise #1 Using the Vivado ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University Prof. Sunil P Khatri (Lab exercise created and tested by Ramu Endluri, He Zhou, Andrew Douglass

More information

F28069 ControlCard Lab1

F28069 ControlCard Lab1 F28069 ControlCard Lab1 Toggle LED LD2 (GPIO31) and LD3 (GPIO34) 1. Project Dependencies The project expects the following support files: Support files of controlsuite installed in: C:\TI\controlSUITE\device_support\f28069\v135

More information

USB Type A Female Breakout Hookup Guide

USB Type A Female Breakout Hookup Guide Page 1 of 7 USB Type A Female Breakout Hookup Guide Introduction If you have a microcontroller that can act as a USB host, then you will need a way to plug in USB cables and devices. The USB Type A Female

More information

MSP430 Interface to LMP91000 Code Library

MSP430 Interface to LMP91000 Code Library Application Note 2230 Vishy Viswanathan July 13, 2012 MSP430 Interface to LMP91000 Code 1.0 Abstract The MSP430 is an ideal microcontroller solution for low-cost, low-power precision sensor applications

More information

University of California, Davis Department of Electrical and Computer Engineering. Lab 1: Implementing Combinational Logic in the MAX10 FPGA

University of California, Davis Department of Electrical and Computer Engineering. Lab 1: Implementing Combinational Logic in the MAX10 FPGA 1 University of California, Davis Department of Electrical and Computer Engineering EEC180B DIGITAL SYSTEMS II Winter Quarter 2018 Lab 1: Implementing Combinational Logic in the MAX10 FPGA Objective: This

More information

Creating and Simulate/Emulating an ASM Project in Atmel Introduction Procedure File New Project Assembler

Creating and Simulate/Emulating an ASM Project in Atmel Introduction Procedure File New Project Assembler Page 1/9 Revision 0 Introduction The purpose of this document is to enable a student to quickly create a project under Atmel Studio, to simulate the program, and then to emulate the program. To complete

More information

IME-100 ECE. Lab 3. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE,

IME-100 ECE. Lab 3. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE, IME-100 ECE Lab 3 Electrical and Computer Engineering Department Kettering University 3-1 1. Laboratory Computers Getting Started i. Log-in with User Name: Kettering Student (no password required) ii.

More information

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

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter C8051F38X DEVELOPMENT KIT USER S GUIDE 1. Kit Contents The C8051F38x Development Kit contains the following items: C8051F380 Target Board C8051Fxxx Development Kit Quick-start Guide Silicon Laboratories

More information

Value (dbl): This is usually the actual value passed in and/or out of the function. Sometimes special value constants are used.

Value (dbl): This is usually the actual value passed in and/or out of the function. Sometimes special value constants are used. LabJack UD Driver for Windows Quick Reference U3 Mar 14, 2008 Other resources: LabJack U3 User s Guide, LabJack UD header file ( labjackud.h ), and DAQFactory-LabJack Application Guide. 1.0 Function Reference

More information

Mercury Baseboard Reference Manual

Mercury Baseboard Reference Manual Mercury Baseboard Reference Manual www.micro-nova.com OVERVIEW The Baseboard is a great addition to the Mercury Module, providing a host of on-board components that can be used to design and test a wide

More information

Lesson 8: Digital Input, If Else

Lesson 8: Digital Input, If Else Lesson 8 Lesson 8: Digital Input, If Else Digital Input, If Else The Big Idea: This lesson adds the ability of an Arduino sketch to respond to its environment, taking different actions for different situations.

More information

Lab 1: Introduction to C Programming. (Creating a program using the Microsoft developer Studio, Compiling and Linking)

Lab 1: Introduction to C Programming. (Creating a program using the Microsoft developer Studio, Compiling and Linking) Lab 1: Introduction to C Programming (Creating a program using the Microsoft developer Studio, Compiling and Linking) Learning Objectives 0. To become familiar with Microsoft Visual C++ 6.0 environment

More information

NIOS CPU Based Embedded Computer System on Programmable Chip

NIOS CPU Based Embedded Computer System on Programmable Chip 1 Objectives NIOS CPU Based Embedded Computer System on Programmable Chip EE8205: Embedded Computer Systems This lab has been constructed to introduce the development of dedicated embedded system based

More information

EE 231 Fall EE 231 Lab 2

EE 231 Fall EE 231 Lab 2 EE 231 Lab 2 Introduction to Verilog HDL and Quartus In the previous lab you designed simple circuits using discrete chips. In this lab you will do the same but by programming the CPLD. At the end of the

More information

Cadence Tutorial A: Schematic Entry and Functional Simulation Created for the MSU VLSI program by Andrew Mason and the AMSaC lab group.

Cadence Tutorial A: Schematic Entry and Functional Simulation Created for the MSU VLSI program by Andrew Mason and the AMSaC lab group. Cadence Tutorial A: Schematic Entry and Functional Simulation Created for the MSU VLSI program by Andrew Mason and the AMSaC lab group. Revision Notes: Aug. 2003 update and edit A. Mason add intro/revision/contents

More information

2 TUTORIAL. Overview. VisualDSP Getting Started Guide 2-1 for SHARC DSPs

2 TUTORIAL. Overview. VisualDSP Getting Started Guide 2-1 for SHARC DSPs 2 TUTORIAL This chapter contains the following topics. Overview on page 2-1 Exercise One: Building and Running a C Program on page 2-3 Exercise Two: Calling an Assembly Routine and Creating an LDF on page

More information

How to debug Wcem.dll with.net Studio

How to debug Wcem.dll with.net Studio TYX Corporation Productivity Enhancement Systems Reference TYX_0051_17 Revision 1.0 Document dotnetdebug.doc Date June 21, 2005 How to debug Wcem.dll with.net Studio 1. Studio Version: This document is

More information

Appendix M: Introduction to Microsoft Visual C Express Edition

Appendix M: Introduction to Microsoft Visual C Express Edition Appendix M: Introduction to Microsoft Visual C++ 2005 Express Edition This book may be ordered from Addison-Wesley in a value pack that includes Microsoft Visual C++ 2005 Express Edition. Visual C++ 2005

More information

User Guide. Introduction. Requirements. Installing and Configuring. C Interface for NI myrio

User Guide. Introduction. Requirements. Installing and Configuring. C Interface for NI myrio User Guide C Interface for NI myrio Introduction The C interface for NI myrio is designed for users who want to program the NI myrio using the C programming language or a programming language other than

More information

CHAPTER 5. Voltage Regulator

CHAPTER 5. Voltage Regulator CHAPTER 5 Voltage Regulator In your robot, the energy is derived from batteries. Specifically, there are two sets of batteries wired up to act as voltage sources; a 9V battery, and two 1.5V batteries in

More information

Installing and getting started with Visual Studio for C programming in Windows.

Installing and getting started with Visual Studio for C programming in Windows. Installing and getting started with Visual Studio for C programming in Windows. 1. Download the free ("community") version VisualStudio tools. Go to https:// www.visualstudio.com/vs/community/. Choose

More information

HOW TO USE CODE::BLOCKS IDE FOR COMPUTER PROGRAMMING LABORATORY SESSIONS

HOW TO USE CODE::BLOCKS IDE FOR COMPUTER PROGRAMMING LABORATORY SESSIONS HOW TO USE CODE::BLOCKS IDE FOR COMPUTER PROGRAMMING LABORATORY SESSIONS INTRODUCTION A program written in a computer language, such as C/C++, is turned into executable using special translator software.

More information

The board is powered by the USB connection, so to turn it on or off you plug it in or unplug it, respectively.

The board is powered by the USB connection, so to turn it on or off you plug it in or unplug it, respectively. Lab 1 You may work in pairs or individually on this lab Lab Objectives Learn about the equipment we will be using and how to handle it safely. Learn the basics of using Xilinx ISE to develop hardware designs

More information

CS12020 (Computer Graphics, Vision and Games) Worksheet 1

CS12020 (Computer Graphics, Vision and Games) Worksheet 1 CS12020 (Computer Graphics, Vision and Games) Worksheet 1 Jim Finnis (jcf1@aber.ac.uk) 1 Getting to know your shield First, book out your shield. This might take a little time, so be patient. Make sure

More information

Maxim Integrated Products 1

Maxim Integrated Products 1 19-1883; Rev 1; 2/07 MAX1799 Evaluation System/ General Description The MAX1799 evaluation system (EV system) consists of a MAX1799 evaluation kit (EV kit) and a companion Maxim CMAXQUSB board. The MAX1799

More information

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server Chapter 3 SQL Server Management Studio In This Chapter c Introduction to SQL Server Management Studio c Using SQL Server Management Studio with the Database Engine c Authoring Activities Using SQL Server

More information

Lab 2.2 Ohm s Law and Introduction to Arduinos

Lab 2.2 Ohm s Law and Introduction to Arduinos Lab 2.2 Ohm s Law and Introduction to Arduinos Objectives: Get experience using an Arduino Learn to use a multimeter to measure Potential units of volts (V) Current units of amps (A) Resistance units of

More information

BASICS OF THE RENESAS SYNERGY PLATFORM

BASICS OF THE RENESAS SYNERGY PLATFORM BASICS OF THE RENESAS SYNERGY PLATFORM TM Richard Oed 2017.12 02 CHAPTER 9 INCLUDING A REAL-TIME OPERATING SYSTEM CONTENTS 9 INCLUDING A REAL-TIME OPERATING SYSTEM 03 9.1 Threads, Semaphores and Queues

More information

Code::Blocks Student Manual

Code::Blocks Student Manual Code::Blocks Student Manual Lawrence Goetz, Network Administrator Yedidyah Langsam, Professor and Theodore Raphan, Distinguished Professor Dept. of Computer and Information Science Brooklyn College of

More information

Physics 120/220 Lab Equipment, Hints & Tips

Physics 120/220 Lab Equipment, Hints & Tips Physics 120/220 Lab Equipment, Hints & Tips Solderless Breadboard... 2 Power supply... 4 Multimeters... 5 Function generator... 5 Oscilloscope... 6 10X probe... 7 Resistor color code... 7 Components...

More information

Digital Circuits. Page 1 of 5. I. Before coming to lab. II. Learning Objectives. III. Materials

Digital Circuits. Page 1 of 5. I. Before coming to lab. II. Learning Objectives. III. Materials I. Before coming to lab Read this handout and the supplemental. Also read the handout on Digital Electronics found on the course website. II. Learning Objectives Using transistors and resistors, you'll

More information

BASICS OF THE RENESAS SYNERGY PLATFORM

BASICS OF THE RENESAS SYNERGY PLATFORM BASICS OF THE RENESAS SYNERGY PLATFORM TM Richard Oed 2018.11 02 CHAPTER 11 EVENT ANALYSIS WITH TRACEX CONTENTS 11 EVENT ANALYSIS WITH TRACEX 03 11.1 An Introduction to TraceX 03 11.2 Built-in Views and

More information

Lab 01 Arduino 程式設計實驗. Essential Arduino Programming and Digital Signal Process

Lab 01 Arduino 程式設計實驗. Essential Arduino Programming and Digital Signal Process Lab 01 Arduino 程式設計實驗 Essential Arduino Programming and Digital Signal Process Arduino Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's

More information

Code::Blocks Student Manual

Code::Blocks Student Manual Code::Blocks Student Manual Lawrence Goetz, Network Administrator Yedidyah Langsam, Professor and Theodore Raphan, Distinguished Professor Dept. of Computer and Information Science Brooklyn College of

More information

Using the Dev C++ Compiler to Create a Program

Using the Dev C++ Compiler to Create a Program This document assumes that you have already installed the Dev-C++ Compiler on your computer and run it for the first time to setup the initial configuration. USING DEV-C++ TO WRITE THE POPULAR "HELLO WORLD!"

More information

ArdOS The Arduino Operating System Quick Start Guide and Examples

ArdOS The Arduino Operating System Quick Start Guide and Examples ArdOS The Arduino Operating System Quick Start Guide and Examples Contents 1. Introduction... 1 2. Obtaining ArdOS... 2 3. Installing ArdOS... 2 a. Arduino IDE Versions 1.0.4 and Prior... 2 b. Arduino

More information

C Programming in Atmel Studio 7 Step by Step Tutorial

C Programming in Atmel Studio 7 Step by Step Tutorial C Programming in Atmel Studio 7 Step by Step Tutorial Sepehr Naimi NicerLand.com 1/1/017 Contents Introduction... Downloading and Installing Atmel Studio... 3 Opening Atmel Studio... 3 Creating the first

More information

Photoresistor, Transistor, and LED s

Photoresistor, Transistor, and LED s PH-1 Photoresistor, Transistor, and LD s Purpose: To introduce photoresistors, LD s, FT s, and transistors used as power switching devices To become familiar with the capability of the Atmega 128 to measure

More information

PHYC 500: Introduction to LabView. Exercise 16 (v 1.2) Controlling hardware with DAQ device. M.P. Hasselbeck, University of New Mexico

PHYC 500: Introduction to LabView. Exercise 16 (v 1.2) Controlling hardware with DAQ device. M.P. Hasselbeck, University of New Mexico PHYC 500: Introduction to LabView M.P. Hasselbeck, University of New Mexico Exercise 16 (v 1.2) Controlling hardware with DAQ device This exercise has two parts. First, simulate a traffic light circuit

More information

Blinking an LED 1 PARTS: Circuit 2 LED. Wire. 330Ω Resistor

Blinking an LED 1 PARTS: Circuit 2 LED. Wire. 330Ω Resistor Circuit PIN 3 RedBoard Blinking an LED LED (Light-Emitting Diode) Resistor (33 ohm) (Orange-Orange-Brown) LEDs (light-emitting diodes) are small, powerful lights that are used in many different applications.

More information

EMT1250 LABORATORY EXPERIMENT. EXPERIMENT # 7: VHDL and DE2 Board. Name: Date:

EMT1250 LABORATORY EXPERIMENT. EXPERIMENT # 7: VHDL and DE2 Board. Name: Date: EXPERIMENT # 7: VHDL and DE2 Board Name: Date: Equipment/Parts Needed: Quartus II R Web Edition V9.1 SP2 software by Altera Corporation USB drive to save your files Objective: Learn how to create and modify

More information

University of Florida EEL 4744 Drs. Eric M. Schwartz, Karl Gugel & Tao Li Department of Electrical and Computer Engineering

University of Florida EEL 4744 Drs. Eric M. Schwartz, Karl Gugel & Tao Li Department of Electrical and Computer Engineering Page 1/9 Revision 1 OBJECTIVES In this document you will learn how to solder and to debug a board as you are building it. REQUIRED MATERIALS Website documents o UF 68HC12 Development Board Manual (board

More information

Sensor Controller Studio Hands-On

Sensor Controller Studio Hands-On Sensor Controller Studio Hands-On Introduction This introduction lab is the entry level guide on how to use sensor controller studio to generate and debug code that will run on the sensor controller processor.

More information

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 TOOLSTICK UNIVERSITY DAUGHTER CARD USER S GUIDE 1. Handling Recommendations To enable development, the ToolStick Base Adapter and daughter cards are distributed without any protective plastics. To prevent

More information

3 TUTORIAL. In This Chapter. Figure 1-0. Table 1-0. Listing 1-0.

3 TUTORIAL. In This Chapter. Figure 1-0. Table 1-0. Listing 1-0. 3 TUTORIAL Figure 1-0. Table 1-0. Listing 1-0. In This Chapter This chapter contains the following topics: Overview on page 3-2 Exercise One: Building and Running a C Program on page 3-4 Exercise Two:

More information

BMC24. MIDI TO GATE CONVERTER DOCUMENTATION. This documentation is for use with the "Euro Style" bottom board.

BMC24. MIDI TO GATE CONVERTER DOCUMENTATION. This documentation is for use with the Euro Style bottom board. BMC24. MIDI TO GATE CONVERTER DOCUMENTATION. This documentation is for use with the "Euro Style" bottom board. A. USING THE MIDI TO GATE CONVERTER B. PARTS LIST C. BUILDING INSTRUCTIONS D. SCHEMATICS Revision.

More information

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

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup Using a USB Debug Adapter C8051F31X DEVELOPMENT KIT USER S GUIDE 1. Kit Contents The Development Kit contains the following items: C8051F310 Target Board C8051Fxxx Development Kit Quick-Start Guide AC to DC Power Adapter USB Debug

More information

Experiment 1 Electrical Circuits Simulation using Multisim Electronics Workbench: An Introduction

Experiment 1 Electrical Circuits Simulation using Multisim Electronics Workbench: An Introduction Experiment 1 Electrical Circuits Simulation using Multisim Electronics Workbench: An Introduction Simulation is a mathematical way of emulating the behavior of a circuit. With simulation, you can determine

More information

Codewarrior for ColdFire (Eclipse) 10.0 Setup

Codewarrior for ColdFire (Eclipse) 10.0 Setup Codewarrior for ColdFire (Eclipse) 10.0 Setup 1. Goal This document is designed to ensure that your Codewarrior for Coldfire v10.0 environment is correctly setup and to orient you to it basic functionality

More information

Pre-Laboratory #Boolean Expressions ECE 332

Pre-Laboratory #Boolean Expressions ECE 332 Name: G Number: Pre-Laboratory #Boolean Expressions ECE 332 1 Introduction This pre-lab is divided into two parts. In part one you will build a circuit for providing inputs to your CPLD board on your breadboard.

More information

Basic Express, BasicX, BX-01, BX-24 and BX-35 are trademarks of NetMedia, Inc.

Basic Express, BasicX, BX-01, BX-24 and BX-35 are trademarks of NetMedia, Inc. 1997-2002 by NetMedia, Inc. All rights reserved. Basic Express, BasicX, BX-01, BX-24 and BX-35 are trademarks of NetMedia, Inc. Microsoft, Windows and Visual Basic are either registered trademarks or trademarks

More information

bc620at Developer s Kit User s Guide November, 1998

bc620at Developer s Kit User s Guide November, 1998 bc620at Developer s Kit 8500-0086 User s Guide November, 1998 CHAPTER ONE INTRODUCTION 1.0 GENERAL The bc620at Developer s Kit is designed to provide a suite of tools useful in the development of applications

More information

Adapted from a lab originally written by Simon Hastings and Bill Ashmanskas

Adapted from a lab originally written by Simon Hastings and Bill Ashmanskas Physics 364 Arduino Lab 1 Adapted from a lab originally written by Simon Hastings and Bill Ashmanskas Vithayathil/Kroll Introduction Last revised: 2014-11-12 This lab introduces you to an electronic development

More information

6 GPIO 84. Date: 29/09/2016 Name: ID: This laboratory session discusses about writing program to interact with GPIO of Reapberry Pi.

6 GPIO 84. Date: 29/09/2016 Name: ID: This laboratory session discusses about writing program to interact with GPIO of Reapberry Pi. 6 GPIO 84 Date: 29/09/2016 Name: ID: Name: ID: 6 GPIO This laboratory session discusses about writing program to interact with GPIO of Reapberry Pi. GPIO programming with Assembly Code:block installation

More information

Bill of Materials: 8x8 LED Matrix Driver Game PART NO

Bill of Materials: 8x8 LED Matrix Driver Game PART NO 8x8 LED Matrix Driver Game PART NO. 2171031 This Game Maker II kit is a game design platform using a single color 8x8 matrix LED without the need for a shift register or expensive Arduino. The kit includes

More information

University of Hawaii EE 361L MPLab Quick Tutorial and Project 2.1 Last updated September 1, 2011

University of Hawaii EE 361L MPLab Quick Tutorial and Project 2.1 Last updated September 1, 2011 University of Hawaii EE 361L MPLab Quick Tutorial and Project 2.1 Last updated September 1, 2011 This is a quick tutorial of programming the PIC 16F684A processor using the MPLab Integrated Development

More information

MetaWatch Firmware Design Guide

MetaWatch Firmware Design Guide MetaWatch Firmware Design Guide MetaWatch Firmware Design Guide Page 1 of 14 1 Contents 1 Contents... 2 2 Introduction... 3 2.1 Revision History... 4 3 Hardware... 5 3.1 Common Watch Features... 5 3.2

More information

EECS 140 Laboratory Exercise 4 3-to-11 Counter Implementation

EECS 140 Laboratory Exercise 4 3-to-11 Counter Implementation EECS 140 Laboratory Exercise 4 3-to-11 Counter Implementation 1. Objectives A. To apply knowledge of combinatorial design. B. Gain expertise in designing and building a simple combinatorial circuit This

More information

ME 365 EXPERIMENT 3 INTRODUCTION TO LABVIEW

ME 365 EXPERIMENT 3 INTRODUCTION TO LABVIEW ME 365 EXPERIMENT 3 INTRODUCTION TO LABVIEW Objectives: The goal of this exercise is to introduce the Laboratory Virtual Instrument Engineering Workbench, or LabVIEW software. LabVIEW is the primary software

More information

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

As CCS starts up, a splash screen similar to one shown below will appear. APPENDIX A. CODE COMPOSER STUDIO (CCS) v6.1: A BRIEF TUTORIAL FOR THE DSK6713 A.1 Introduction Code Composer Studio (CCS) is Texas Instruments Eclipse-based integrated development environment (IDE) for

More information

ECE383: Microprocessors Lab 9 Analog-to-Digital and Digital-to-Analog Conversion with I 2 C Serial EEPROM Data Storage

ECE383: Microprocessors Lab 9 Analog-to-Digital and Digital-to-Analog Conversion with I 2 C Serial EEPROM Data Storage ECE383: Microprocessors Lab 9 Analog-to-Digital and Digital-to-Analog Conversion with I 2 C Serial EEPROM Data Storage Goals: The goals of this lab are to introduce students to a PIC24-based hardware system

More information

Lab 4: Interrupts and Realtime

Lab 4: Interrupts and Realtime Lab 4: Interrupts and Realtime Overview At this point, we have learned the basics of how to write kernel driver module, and we wrote a driver kernel module for the LCD+shift register. Writing kernel driver

More information

EE 231 Fall Lab 1: Introduction to Verilog HDL and Altera IDE

EE 231 Fall Lab 1: Introduction to Verilog HDL and Altera IDE Lab 1: Introduction to Verilog HDL and Altera IDE Introduction In this lab you will design simple circuits by programming the Field-Programmable Gate Array (FPGA). At the end of the lab you should be able

More information

Using Code Composer Studio IDE with MSP432

Using Code Composer Studio IDE with MSP432 Using Code Composer Studio IDE with MSP432 Quick Start Guide Embedded System Course LAP IC EPFL 2010-2018 Version 1.2 René Beuchat Alex Jourdan 1 Installation and documentation Main information in this

More information

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

APPENDIX A. CODE COMPOSER STUDIO (CCS) v5: A BRIEF TUTORIAL FOR THE DSK6713 APPENDIX A. CODE COMPOSER STUDIO (CCS) v5: A BRIEF TUTORIAL FOR THE DSK6713 A.1 Introduction Code Composer Studio (CCS) is Texas Instruments integrated development environment (IDE) for developing routines

More information

Profiling Applications and Creating Accelerators

Profiling Applications and Creating Accelerators Introduction Program hot-spots that are compute-intensive may be good candidates for hardware acceleration, especially when it is possible to stream data between hardware and the CPU and memory and overlap

More information

KiCad Example Schematic ( ) Wien Bridge Oscillator

KiCad Example Schematic ( ) Wien Bridge Oscillator KiCad Example Schematic (2010-05-05) Wien Bridge Oscillator University of Hartford College of Engineering, Technology, and Architecture The following tutorial in that it walks you through steps to use

More information

Drexel University Electrical and Computer Engineering Department ECE 200 Intelligent Systems Spring Lab 1. Pencilbox Logic Designer

Drexel University Electrical and Computer Engineering Department ECE 200 Intelligent Systems Spring Lab 1. Pencilbox Logic Designer Lab 1. Pencilbox Logic Designer Introduction: In this lab, you will get acquainted with the Pencilbox Logic Designer. You will also use some of the basic hardware with which digital computers are constructed

More information