PIC Microcontrollers HW
September 30, 2011
Pages 90-91: Questions
* 1. State the 4 digit hex code for the instruction INCF 06. Hex code is 0A86
* 2. State the 2 digit hex code for the instruction MOVLW. Hex code is 30
* 3. What is the
ECT 164 wk7
October 13, 2011
A. How can you change the count to 16?
The COUNTer substract value from W register needs to be changed, from 10 to 16
;Move 10 to W register
;Move 16 to W register
B. What ha
STEP 1: AD7302 and AD7819
A. Do an Internet search to locate the Datasheet for the AD7302.
A1. What is the AD7302? The AD7302 is a dual, 8-bit voltage out DAC that operates from a single +2.7
V to +5.5 V supply. Its on-chip precision output buffers allo
Counters Q/A assignment
September 4, 2011
Q1. Do you notice anything unusual as Q0 output goes low, and then later Q1 goes high?
There appears to be a brief delay between the time Q0 output goes low and Q1 goes
MPLAB Step 1 (part 1 & part 2)
1. Once that is accomplished, modify your program to display the same outputs on Port
A. What happens? Why? Look at page 80 and 81 of your Bates Book and compare the
pins for Port B and Port A.
September 19, 2011
Pages 73-74: Questions
1. Outline the sequence of program execution in a microcontroller, describing the
role of the program ROM, program counter, instruction register, instruction
decoder, and t
September 24, 2011
Introduction to Microcontrollers -Class Activity #3
Why do we have to skip from Bank 0 to Bank 1? It appears that Bank 0 is selected by clearing
the RP1 bits and setting the RP0 bits selects Bank 1. In this line:
September 23, 2011
Introduction to Microcontrollers -
1. What is MPLAB IDE? MPLAB IDE is a Windows Operating System software
program that runs on a PC to develop applications for Microchip microcontrollers
and digital signal con
September 13, 2011
Digital Electronics with VHDL: Pages 762-764
16-10: How many memory locations do the following RAM configurations have?
(a) 2048 x 1 = (2K) 2048 memory locations, each containing 1 bit of data
(b) 2K x 4 =
Page 155-156: Questions:
1. Sate the number of clock cycles in a PIC instruction cycle and the number of
instructions cycles taken to execute the instructions (a) CLRW (b) RETURN.
-The number of clock cycles in a PIC instruction cycle
Determine the output from a DAC driven by a LPM Counter with parallel loading.
Your goal is to generate an 8 Bit count through the LPM logic circuit and pass that byte to a DAC, then measure the Analog Output. T
Connect a meter to the output ( Pin 19 on the DAC.)
Preset the counter to zero by making all the input lines low (SW0-7), then make the load pushbutton low (B1) or press B0 for clear.
Calculate the voltage per step _
September 8, 2011
15-2: How many different digital representations are allowed with:
(a) A 4-bit converter? 16
(b) A 6-bit converter? 64
(c) An 8-bit converter? 256
(d) A 12-bit converter? 4096
15-4: Determine V out for the op-am
ECT-164_ADC_Step3 - Page 1
Converting from Analog to Digital: Now we start on the Analog side and convert to Digital
The eSOC board will be used to display the binary information to the 8 Red LEDs
Draw the circuit diagram shown below in Quartus, assign
Professor Jadir Vieira
September 4, 2011
Digital Electronics with VHDL Homework
12-6: What is the modulus of a counter whose output counts from?
(a) 0 to 7? MOD-8
(b) 0 to 18? MOD-19
(c) 5 to 0? MOD-6; down counter