Quiz 2 Solutions
1. W rite the base 16 (hex) number 1E in base 2 (binary) and base 10 (decimal).
Ans: 11110 (or 00011110) and 30.
2. How many bits are used to represent a char?
Ans: 8
3. Consider this array declaration and initialization:
int x[5] = cfw_1
PIC32 Study Problem Solutions
PIC32 Hardware
1. Hex and binary practice.
a. 0xB15F = 1011 0001 0101 1111 (binary) = 11 x 16^3 + 1 x 16^2 + 5 x 16^1 + 15 x
16^0 = 45407.
b. 207 = 1100 1111 = 0xCF
c. 1010 0010 OR 0100 0110 = 1110 0110 = 0xE6
d. 0010 1101 AN
PIC32 Study Problems
Many of the questions on this study guide refer to the documentation on the Introduction to the
PIC32 page http:/hades.mech.northwestern.edu/index.php/Introduction_to_the_PIC32 on the
Mechatronics Wiki. Other sources that may be usefu
1. Below is a partially filled-in data sheet for a DC motor. Using what you know about DC motors, fill in
the rest of the data sheet.
Nominal voltage (volts) .
Terminal resistance (ohms) .
Terminal inductance (henries) .
Max (no load) speed (radians/s) .
ME 333 - Mechatronics: HW 7 Solutions
March 7, 2012
Problem 1
Motor Data Sheet
Out of the 19 entries on this table (ignoring friction), only 6 are needed to calculate the rest of the
values. The 6 independent values we chose (other combinations are also v
diode does not allow current to
flow left, so the voltage across
the capacitor can only increase,
never decrease
xxxxxx
should be "voltage across"; other answers accepted
ME 333: Introduction to Mechatronics
Assignment 4: Interrupts, Serial Communication, and PIC Programming
Electronic submission due before 11:00 AM on Thursday February 9th
All questions asked in this problem set must be typed and submitted via Blackboard.
ME 333: Introduction to Mechatronics
Assignment 3: Investigating the PIC C32 Tool Suite
Electronic submission due before 11:00 AM on Thursday February 2nd
All questions asked in this problem set must be typed and submitted via Blackboard. See the ME333
ho
ME 333: Introduction to Mechatronics
Assignment 2: Solutions
Electronic submission due before 11:00 AM on Thursday February 2nd
1. and 2. Nearly all of you were able to get your hardware up and running. If you had trouble getting
your hardware to work, pl
ME 333: Introduction to Mechatronics
Solutions to Assignment 1
January 19, 2012
Questions
1) What is 33310 in binary and 10111101112 in hexadecimal? What is the maximum value, in decimal, that
a 12-bit number can hold?
33310 in binary is 1010011012 , 1011