First page Back Continue Last page Overview Graphics
Exercise 10.1. Output port
Configure bits 0,2,4,6 of port A as output ports.
Configure bits 1,3,5,7 of port A as input ports.
Send a square wave (period 0.5 second) to all 8 bits of port A. ?? from software or from external hardware?
What is the expected signal on each pin of port A?
Use an oscilloscope to observe the signal from all 8 bits of port A.
What is the actual signal in each bit of port A?
The point is that writing from software to input bits will not affect them.