Mechatronics Laboratory

University of Wisconsin - Madison 

Software Library

(Matlab, General C, and AVR  Source Code & Software Guides/Manuals)

 

Back to Lab Resources Home

Back to Mechatronics Lab Home

Programming:

NASA C Programming Style Guide (local) - From Goddard Space Flight Center (remote)

The C Library Reference Guide - (University of Illinois - Urbana-Champaign) © 1997 Eric Huss

Code Conventions for the JavaTM Programming Language - Sun Microsystems

ASCII Table (Decimal - Hex - Octal - HTML v.s. ASCII Character) 

HTML Cheatsheet - HTML Short Reference Guide (From Stanford

Matlab Control Tutorials - Carnagie Mellon / University of Michigan

Matlab General Tutorial - Arizona State University

Matlab Command Quick Reference -  Arizona State University

Decimal Floating Point to Hexadecimal (32 & 64 Bit) Converter - Queens College

Hexadecimal (32 Bit) to Decimal Floating Point  Converter - Queens College

Hexadecimal (64 Bit) to Decimal Floating Point  Converter - Queens College

Programming Tutorials are found on the Tutorials page

 

AVR Software Manuals:

Atmel AVR Assembly Instruction Set (Atmel) (local

CodevisionAVR User Manual (local .pdf - 2.51MB) (HP Info Tech (zipped pdf)) 

Getting Started with CodevisionAVR  (HP Info Tech) 

 

Source Code For Mechatronics Labs STK500 Daughter Card:

To save these files to disk:

Internet Explorer: right - click and select "Save Target As"

Netscape: right - click and select "Save Link As"

me601dcmm.h   (for ME601) -    Contains the memory map definitions for the STK500 Daughter Card

me447dcmm.h   (for ME447) -    Contains the memory map definitions for the STK500 Daughter Card

dac.h  (for ME601)  -    Contains the Function Prototypes & definitions for DAC access routines

dac.h  (for ME447)  -    Contains the Function Prototypes & definitions for DAC access routines

dac.c    -    Contains Function(s) for accessing the DACs on the STK500 Daughter Card

encoder.h    -    Contains Function Prototypes & definitions for Encoder access routines

encoder.c    -    Contains Function(s) for accessing the Encoders on the STK500 Daughter Card

 

If you use AVR-GCC here is a pretty complete library

 

Matlab Floating Point to Fixed Point Conversion Scripts:

These are all written as functions & need to be in the current matlab working directory, or matlab search path

Float2Qpt8 - convert a float to a signed 8-bit fixed point number in Q[QI.QF] format

Float2Qpt16 - convert a float to a signed 16-bit fixed point number in Q[QI.QF] format

Float2Qpt32 - convert a float to a signed 32-bit fixed point number in Q[QI.QF] format

Float2QptSWL - convert a float to a minimum Standard Word Length fixed point number returning the Q-point format in in Q[QI.QF] format

 

 

 

If you have questions check resources included on the Mechatronics Lab AVR Resources page or Other Atmel AVR Resources.

 

Back to Mechatronics Lab Home

Last updated 10/02/2012 08:10 PM

© 2002 University of Wisconsin - Madison : Mechatronics Lab

© 2002 Erick L. Oberstar - C Source Code Examples