+
ECET 330 Week 4 Quiz

ECET 330 Week 4 Quiz

Rating:
Rating
(0)
Author: Harvey Maxwell
Description:

Buy here:

http://www.devrygenius.com/product/ecet-330-week-4-quiz

1. (TCO 8) In the HCS12, which of the following registers is used to make Port B output or input?
2. (TCO 8) In HCS12, DDRB is __________ bit(s).
3. (TCO 8) Which of the following will always make the bit, PB0, HIGH?
4. (TCO 8) The following program creates square wave pulses on PB0. What is the duty cycle?

ORG

$8000

LDS

#$4000

LDAA

#$FF

STAA

DDRB

BACK

BSET

PORTB,%00000001

JSR

DELAY

JSR

DELAY

BCLR

PORTB,%00000001

JSR

DELAY

JSR

DELAY

BRA

BACK

5. (TCO 8) In the following program, fill in the missing instruction to toggle all of the bits in the PORTB.

LDAA

#$FF

STAA

DDRB

OVER

---------

---------

STAA

PORTB

LDAA

#$55

STAA

PORTB

BRA

OVER

6. (TCO 8) There are eight switches connected to PORTC and eight LEDs connected to PTJ. Write a program to monitor the switches continuously. Whenever the four leftmost switches are 1s, send $55 to PTJ


(more)
See More
Try a College Course Free

Sophia’s self-paced online courses are a great way to save time and money as you earn credits eligible for transfer to over 2,000 colleges and universities.*

Begin Free Trial
No credit card required

25 Sophia partners guarantee credit transfer.

221 Institutions have accepted or given pre-approval for credit transfer.

* The American Council on Education's College Credit Recommendation Service (ACE Credit®) has evaluated and recommended college credit for 20 of Sophia’s online courses. More than 2,000 colleges and universities consider ACE CREDIT recommendations in determining the applicability to their course and degree programs.

Tutorial