Revised 11-24-08
OEES 215
Microprocessor Applications I
(Emphasis will be placed
on microcontrollers.)
Bruce McDowell

Fall 2008
|
Announcements |
|
Recently
added text is shown in a larger
font. |
Homework
& Class Exercises
b
= beginning of class
period, e = end of class period.
| Assignment No. |
Max. Pts. |
Date Assigned |
Date Due |
Assignment |
| HH12-14 Flowchart drawing | Directions |
|||
| Assignment No. |
Assignment Name | Max. Pts. |
Date Assigned |
Date Due |
Class Exer- cise |
XC Lab |
XB Lab |
Description |
| GH22-13 | Install XBasic if necessary | (5) | X | If your compuer doesn't already have XBasic installed, go to xbasic.sourceforge.net, download xbasic-6.2.3.exe, and install it. (The xbasic-6.2.3.exe file is the self-installing Win32 version of XBasic, and this is what you want.) | ||||
| GF3-13 | Guess a Number - A | 10 | 8-25 | X | Directions | |||
| GF3-14 | Guess a Number - B | 10 | 8-25 | X | First see how Age
in
10 Years,
version B
works, then write Guess a
Number, vers. B. |
|||
| GF3-16 | Guess a Number - C | 10 | 8-25 | X | First see how Age
in
10 Years,
version C
works, then write Guess a
Number, vers. C. |
|||
| HH12-13 | Math puzzle | 10 | X | Write a program to match the flowchart. (If you haven't receive a copy of the flowchart, download it from the preceding link.) | ||||
| HH03-06 | Download XCSB PIC-related software if necessary | (10) | X | If your computer doesn't already have XCSB Basic and PIC programmer software installed, follow these directions. | ||||
| HH03-07 | Try out XCSB PIC-related software (AND gate) | 10 | 9-10 | 9-17 | X | Directions | ||
| GI5-17 | 2-input OR gate | 15 | 9-10 | 9-17 | X | Modify the AND-gate program contained in the XBasic template to create a 2-input OR gate. | ||
| GI5-18 | 2-input NOR gate | 10 | 9-10 | 9-17 | X | Make a 2-input NOR gate. | ||
| GI5-19 | 2-input NAND gate | 10 | 9-10 | 9-17 | X | Make a 2-input NAND gate. | ||
| GI5-20 | 3-input AND gate | 15 | 9-10 | 9-17 | X | Make a 3-input AND gate. Hints:
|
||
| HI14-08 | Control of hy2 and hy3 | 15 | 9-15 | 9-22 | X | Handout | ||
| HI17-09 | Box 1, Unloading system, version A | 25 | 9-17 | 9-24 | X | Directions | ||
| HI22-11 | Isittwo function | 10 | 9-22 | 9-22 | X | Handout | ||
| HI22-12 | Intro to functions (Isittwo) | 10 | 9-22 | 9-29 | X | Handout | ||
| HI22-13 | And/Or function | 20 | 9-22 | 9-29 | X | Directions | ||
| HI22-07 | Make a template file with no comments | 5 | 9-22 | 9-29 | X | Load the XCSB template file into Notepad. Erase all the comments except for the divider lines that contain dashes. Store the file on your flash drive as S215-XC-template-no-comments.bas | ||
| HI24-09 | One-shot | 15 | 9-24 | 10-1 | X | Handout |
||
| HI30-08 | Box 1, Unloading system, version C | 30 | 10-1 | 10-8 | X | Get flowchart handout, and right click here to get skeleton program. | ||
| HJ03-15 | Right Half of System | 10 | 10-6 | 10-13 | X | Directions | ||
| HJ06-08 | Switch bounce filter version A | 20 | 10-8 | 10-15 | X | Directions | ||
| HJ08-08 | Counter using two switches | 15 | 10-13 | 10-20 | X | Directions | ||
| HJ08-13 | Switch bounce filter, version B | 20 | 10-20 | 10-27 | X | Directions | ||
| HJ22-08 | Debounce function | 20 | 10-22 | 10-29 | X | Right-click here to get the skeleton file. Right-click here to get the main program from HJ08-13 Switch Bounce Filter Version B |
||
| HJ24-09 | Input-signal stabilizer | 30 | 10-27 | X | Directions | |||
| HJ29-13 | Adc( ) function test | 15 | 11-3 | 11-10 | X | Get the handout sheet. Right-click on the following and save the files in the XCSB-2.x.x-pic-lite-win folder on your C: drive (hard drive):
|
||
| HK09-19 | Analog mux and ADC | 20 | 11-10 | 11-17 | X | Get the flowchart and schematic handout sheets. Right-click on the following and save the files in the XCSB-2.x.x-pic-lite-win folder on your C: drive: Right-click here to get the skeleton file for this project. |
||
| HK11-18 | Analog mux and ADC, version 2 | 20 | 11-17 | 11-24 | X | Directions | ||
| HJ31-08 | Circuit modifications | 20 | Circuit modifications for HK11-18 | |||||
| HK16-14 | 2-input ADC with 3-bit serial out | X | Directions | |||||
| HH01-11 | Become familiar with XBasic PIC simulation | 10 | X | Directions | ||||
| HH11-12 | 2-input OR gate using the actual PIC microcontroller. | X | Load the XCSB template file into Notepad and modify the AND-gate program contained in the template so that the program acts like an OR gate. | |||||
| HB29-10 | Delay function | -- | X | Download the program and understand it so you'll be able to answer questions about it if it shows up on a quiz. | ||||
| HB29-11 | Variable delay function | -- | X | Download the program and understand it so you'll be able to answer questions about it if it shows up on a quiz. | ||||
| HB29-12 | Two tones | 15 | X | Modify the HB29-11 program so that it produces two different tones when you have switch 0 on or off. You'll need to connect a speaker to output line 0. | ||||
| HB29-13 | Five tones | 15 | X | Modify the HB29-12 program so that input switches zero and one are used to produce two different tones: No sound if no switches are on; tone 1 if switch 0 is on; and tone 2 if switch 1 is on. | ||||
| gj10-18 | RS Flip-Flop | 20 | X | Get handout sheet. | ||||
| gj17-17 | Toggle Flip-Flop | 10 | X | Get handout sheet. | ||||
| gj22-16 | D Flip-Flop | 10 | X | Get handout sheet. | ||||
| gj22-18 | Two motors connected to D flip-flop | 10 | X | Directions. | ||||
| gj24-15 | Tone translator input processor | 10 | X | Get handout sheet. | ||||
| gj29-14 | Counter | 20 | X | Get handout sheet. Right-click here to download the skeleton program. | ||||
| gj29-18 | Shift register | 10 | X | if x==0 then x = 1 endif -------------- x = x<<1 |
||||
| gj29-19 | Shift or count | 20 | X | in0 is the clock in1 ==1 count up in2==1 count down in3==1 shift left in4==1 shift right |
||||
| gk05-16 | Combination lock | 15 | X | Get handout sheet. | ||||
| gk07-17 | Stopwatch | 10 | X | Get handout sheet. | ||||
| gk12-17 | Flash() procedure | 15 | X | Get handout sheet. | ||||
| gk12-15 | Period Meter | 15 | X | Get handout sheet. Right click here for a skeleton program. | ||||
| gk26-16 | Adding | 0 (Example) |
X | Get handout sheet. | ||||
| gk26-17 | Dividing | 0 (Example) |
X | Get handout sheet. | ||||
| gk26-18 | Running total | 15 | X | Get handout sheet. Right click here for a skeleton program. |
| How to download files from this Web site |
BASIC
Programming (a Wikibook)
This is an online book. Be sure to click the underlined topics on
the first page. This will take you to more pages of the "book." |
S215 Custom Functions | General Documentation on Other Web Sites |
| What Are Functions? | Flowchart Symbols & Conventions | Using Word to Draw Flowcharts |
Reference, X Basic
| Overview | Detailed reference material | Keywords, types, etc. | Download and use the compiler |
| OEES215 template and custom functions, for downloading (XBasic and XCSB) |
Reference, XCSB Basic
| An explanation of the XCSB template file | Detailed reference material | Running Programs | Download and use the compiler | OEES215 template and custom functions, for
downloading (XBasic and XCSB) |
| Ckedge( ) Check-edge function |
Multsamp( ) Multiple-sample function |