Assignment3 - to the base resistor. A push button is...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
EE331: Microprocessor, 2010-11, Term 1 Page 1 of 1 Assignment 3: 10 marks Q1. Write a subroutine to count the number of “1” in a 24-bit word {DATA_H : DATA_M : DATA_L} stored in the data store at the locations: h’30’ – h’32’. Q2. One 7-segment display (common cathode) is connected to Port B of PIC16F84A as shown below. To activate a particular digit, the NPN transistor (connected to RA0) is turned on by applying a high (logic 1)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: to the base resistor. A push button is connected to RA1. Write an assembly program using call-retlw instructions that displays the pattern, “ HELLO ” whenever the pushbutton is pressed. There should be a delay of 1 sec between the display of each letter. Assume that the MCU is running by a 4MHz external crystal....
View Full Document

This note was uploaded on 01/20/2011 for the course EE 331 taught by Professor Wahid during the Fall '10 term at University of Saskatchewan- Management Area.

Ask a homework question - tutors are online