Applied Electronics Micro Problems 1to9

Applied Electronics Micro Problems 1to9 - Applied...

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

View Full Document Right Arrow Icon
Applied Electronics ~ Microprocessor Homework Problems Micro-1 Port access . Write a program for the AVR series microprocessors to read the input lines on Port A. Invert the value of these lines (0 → 1 and 1→ 0) and store this value in SRAM memory location 0x0060. Also output this value to Port B. Be sure to set the output ports correctly (Port A as input and Port B as output). Use frequent comments. This problem, as with all of the problems in this series, should be implemented in the Skt500 studio. Micro-2 Polling I/O. Write a program for the AVR series microprocessors to do the following: strobe four outlines attached to the four lower bits of Port B; that is, sequentially set Port B bits 0 through 3 high. For example, begin by setting Port B-0 high and the other three lower bits to zero; on the next cycle set Port B-1 high and the three remaining bits (including Port B-0) low; on the next cycle set Prot B-2 high… After Port B bit 3 is set high, the next cycle should set bit 0 high. After each setting, read the four higher bits of Port B (i.e., Port B4 through 7). If any of these input lines are high, jump to a function “keyboard.” This function should take the Port B input data and transfer the 4 high bits to low bytes with the upper four bits set to zero. The resulting value should be stored in the SRAM
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.

This homework help was uploaded on 04/03/2008 for the course BIOMEDICAL 418 taught by Professor Semmlow during the Spring '08 term at Rutgers.

Page1 / 2

Applied Electronics Micro Problems 1to9 - Applied...

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