EE3363
Homework 8
Solutions
1. The implementation of the delta PWM algorithm can be found at:
http:/crrl.poly.edu/3363/sfunc_PWMdelta.c
This S-Function has been implemented so that multiple blocks of this S-Function can be utilized
simultaneously in a sin
EE3363
Homework 3
1. We wish to interface an MX15 rotary optical encoder to a TMS470 microcontroller using the
HCTL-2032. We also wish to interface a HMC6343 3-axis compass to the TMS470. Draw a
block diagram of the connections required. The datasheets of
EE3363
Homework 4
Solutions
1. The implementation of the specified controller F = -p - 2v can be found at:
http:/crrl.poly.edu/3363/sfunc_MassOnPlaneController.c
The simulation model is available at:
http:/crrl.poly.edu/3363/hw4_MassOnPlane.mdl
Running th
EE3363
Homework 3
Solutions
1. Based on the datasheets of the MX15, HCTL-2032, and the TMS470R1B1M, the connections
R1B1M
required to interface the MX15 rotary optical encoder (e.g., MX152) to the TMS470R1B1M
microprocessor
microprocessor using the HCTL-2
EE3363
Homework 2
1. Build a simulation model in Simulink of a MX15 rotary optical
encoder (the datasheet of which was distributed in class) shown at
the right. Your simulation model should accept the angle as input
and should output A, B, and I (index) s
EE3363
Homework 1
1. Consider the first-order differential equation x = x . This differential equation could, for
instance, represent the dynamics of the velocity v of a unit mass moving on a plane with
damping coefficient 1, i.e., v = v . We wish to simu
EE3363
Homework 2
Solutions
1. An incremental rotary optical encoder (such as the MX15) contains a set of markers (typically
simply transparent and opaque areas) uniformly located around a disc. Using a light source and
photodetector, pulses are obtained
EE3363
Homework 4
1. The dynamic model of a mass on a plane implemented as an embedded S-Function is available at:
http:/crrl.poly.edu/3363/sfunc_MassOnPlane.c
This model takes a scalar input (the force F on the mass) and outputs a 2x1 vector containing
p
EE3363
Homework 5
Solutions
1. The implementation of the PWM algorithms (both the intersective PWM and the delta PWM
methods) can be found in the following files:
http:/crrl.poly.edu/3363/sfunc_PWM.c
http:/crrl.poly.edu/3363/sfunc_PWMfuncs.c
http:/crrl.po
EE3363
Homework 7
In this homework, we want to learn how to communicate between a program running in the Qemu ARM
emulator and a program running in Matlab/Simulink.
1. Learn how TCPIP communication can be accomplished in Matlab using the functionalities
p
EE3363
Homework 10
Solutions
1. An implementation of a C function to calculate the reference position (xref,yref) and the
reference velocity (vxref,vyref) at the current time t is available at:
http:/crrl.poly.edu/3363/waypt_calc.c
2. The following files
EE3363
Homework 9
Solutions
1. The implementation of a Matlab block to transmit a configurable number of floating-point
numbers to an ARM program running in Qemu and to receive back a configurable number of
floating-point numbers from the ARM program runn
EE3363
Homework 6
In this homework, we want to install the ARM emulator (Qemu) and ARM cross-compiler and do a basic
test of emulation of a simple program.
1. Download and install the gcc-based CodeSourcery ARM cross-compiler from the following link:
http
EE3363
Homework 5
1. There are two basic approaches for creating a PWM (i.e., two-level : M and 0) representation of
an input signal u (t ) . The first approach (also known as the intersective PWM method) is based
on comparing the input signal with a sawt
EE3363
Homework 1
Solutions
1. We are given the first-order differential equation x = x . A Matlab program to simulate the
dynamics of this system given an initial condition x (0) is shown below:
x0 = 1; % initial condition
h = 0.001; % integration time s