ANSFA - E C E 4 1 7 5 A F in a l 1 2 -7 -0 9 SE V E N PR O...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 4175A Final 12-7-09 Page 1 of 3 High 102 SEVEN PROBLEMS Upper quarter 96 Open book, open notes Median 84 Lower quarter 82 Low 62 1. [ ] I have completed the CIOS course evaluation. [5%] [ ] I have not completed the CIOS course evaluation. 2. For their design project, Daniel Han and Justin Mickela created a carpenter’s bubble level using a sensor that generates a binary output that increments as the sensor is rotated about a horizontal axis through its [15%] level position. Assume that they used a 3x3 pixel pattern centered vertically within the seven-pixel-high pattern used by the Hitachi controller’s 5x7-pixel character patterns. Each increment of the sensor’s output is to move each pixel of the 3x3 pattern to the right by one pixel. As the sensor is rotated, the bubble is to move from the left end of the display to the right end (i.e., over the full 120 column range of the LCD). a. How many user-defined characters will be required to handle this application? 7 Explain your answer by drawing each character with dark dots on a light 5x7 pattern of dots below. 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 :9999 ::999 :::99 9:::9 99::: 999:: 9999: 99999 99999 :9999 ::999 :::99 9:::9 99::: 999:: 9999: 99999 99999 :9999 ::999 :::99 9:::9 99::: 999:: 9999: 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 b. Encircle just one of these characters and then show a string definition, OneChar[], that can be sent to the display with the DisplayC function to create this user-defined character. Do this so that, subsequently, the user-defined character will be displayed if an “ASCII code” of 0x03 is included in a display string. For the fourth character from the left, const rom char OneChar[] = {0x58,0x80,0x80,0x8E,0x8E,0x8E,0x80,0x80,0x80,0x00} 3. Assume that the SPI module in the 4321 chip has been set up correctly for reading back the one-byte output of a transducer whose SPI interface is enabled by driving the 4321's RD0 pin low. Write a function called [10%] ReadIt that, when called, will read this byte into a global unsigned char RAM variable called MEASUREMENT. void ReadIt() {
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

ANSFA - E C E 4 1 7 5 A F in a l 1 2 -7 -0 9 SE V E N PR O...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online