EE242
Homework Page

Assignment #

Solutions

2 1.2, 1.6
3 2.19, 2.20, 2.21(corrected 30 January 2001), 2.24
Lab:  Number systems 2.1, 2.2 (corrected 30 January 2001), 2.5, 2.11
5 3.1, 3.12, 3.16
6 3.17, 3.19, 3.32
7 4.1 (corrected 29 January 2001), 4.2
8 4.5 (corrected 29 January 2001), 4.8
9 4.12, 4.13, 4.14
10 4.16
11 4.18, 4.19
12 5.1, 5.4
13 5.11, 5.12
14 5.15, 5.16
15 5.18, 5.22
16 5.31, 5.32, 5.33
17 5.34, 5.42
18 5.43
20 6.1
22 6.2, 6.3
23 6.19, 6.20
24 7.1, 7.3, 7.7
25 7.18, 7.19
26 7.36
28 Extra problem using a parallel-load shift register
29 9.27, 9.29, 9.30
30 10.2, 10.4, 10.7
31 10.9, 10.14
34 10.24, 10.27
37 Quiz 5, Take Home
PIC16F84 Sample Programs
addtwo.asm
A simple program to sum two numbers and store them in a third place.
porta.asm 
A program illustrating how to initialize and use Ports A and B.  A switch connected to Port B controls whether or not a light attached to Port A will flash rapidly or not.
How to Simulate External Inputs with the PIC16F84
parity.asm
A program which reads an 8-bit word from Port  B, computes the even-parity check-bit for that word,
and outputs it as Bit 0 of Port A.  This program illustrates how to use masks, inclusive or, exclusive or, counters, decision making, input, and output.