NCEES (computer) problem 508

Professional Engineer & PE Exam Forum

Help Support Professional Engineer & PE Exam Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

guld0017

Active member
Joined
Jun 22, 2009
Messages
28
Reaction score
0
Location
Minneapolis
I've gone through this problem a few times and have a problem identifying the output shown in the solution. ...011100... I realize that is what you want for a square wave.

Is there a method or standard for 8-bit microcontrollers I am missing? It seems like the opcode has nothing to do with the outcome.

The SHR and SHL seem to be the key to the problem, but with only ACC 6 and 7 shown what ends up in the rest of the ACC registers?

Also does the ACC[6:0] mean there is a 0 in the register and for ACC[7:1] there is a 1 in that register?

Any help appreciated...

 
Back
Top