Tutorial

Antoine Fraboulet

INRIA Rhône Alpes
Amazones Project


    CITI Laboratory
    Domaine Scientifique de la Doua, INSA de Lyon
    Bâtiment Claude Chappe 
    6, avenue des Arts
    69621 Villeurbanne Cedex
    France
  

Revision History
Revision 1.02009-09-07
First Draft

Abstract

WSim tutorial on MSP430 using the ADC12 module.


Table of Contents

I. Introduction
II. ADC12 module
1. Basic usage
2. How values from the file are truncated / preparing your data
3. Command line options and parameters
III. Logfiles and trace files
1. Logfiles
2. Traces and VCD files
IV. Sources and examples
1. Script used to run the adc12 example

List of Figures

II.1. ADC12 / MSP430 embedded software interface
II.2. ADC12 input data truncated at 4095d (12 bits), screenshot taken from gtkwave
II.3. ADC12 command line option using HW channels 1 and 2 on two separate files
III.1. ADC12 command line option using HW channels 1 and 2 on two separate files
III.2. GtkWave output of WSim traces including IRQ.7, GIE and Main clock frequencies for the test program using a MCLK reference clock at 750kHz (msp430 default)
III.3. GtkWave output of WSim traces including IRQ.7, GIE and Main clock frequencies for the test program using a MCLK reference clock à 8MHz.
IV.1. Script to run the simulation using ADC12 second input port with data.dat file