CEG3136DGD3Solution.pdf

# CEG3136DGD3Solution.pdf - CEG 3136 Computer Architecture II...

• Homework Help
• 2

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

CEG 3136 Computer Architecture II Tutorial 3 The Parallel Ports Fall 2017 Consider loading the values in to the following registers as shown below: DDRA: Binary value 11110000 PORTA: Binary value 00000000 1) If PUPAE in the PUCR register is set to 0, what can be said about the voltage levels that will appear at PA0 to PA3? If no key is pressed , the voltage levels on pins PAx (x=0,1,2,3,4) will float as there is no active element connected to the pins that drive the voltages to any level. If a key linked between Col_x (x = 0,1,2,3) and Row_y (y = 0,1,2,3) is pressed , a connection will be made from pin PAx (a PORTA input) to the corresponding Row_y line (y = 0,1,2,3) linked to a PORTA output. Since PORTA=%0000 0000 (PA(y+4)=0), Row_y line is connected to ground, and the voltage at pin PAx will be subsequently 0. If Row_y lines would be connected to +5V (PORTA = %1111 0000 , i.e., PA(y+4) = 1), then the voltage at PAx would be +5V. What if PUPA is set to 1? If no key is pressed , the voltage levels at the pins PAx will be 5V since pullup resistors have been activated ( PUPAE = 1) and will drive the pins to this level.

This preview has intentionally blurred sections. Sign up to view the full version.

This is the end of the preview. Sign up to access the rest of the document.
• Spring '14
• Voice Groza

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern