Single Chip Writing Puzzles

platform: STC51 MCU 

 

Puzzle 1: codes set P1^0=0, while P1^0 connects in wire with a outer 5 voltage source.

Question:  What is P1^0's output?

 

Experiment result: +5V

 

outer wins!

--------------------------------

--------------------------------

--------------------------------

Puzzle 2: codes set P1^0=0, P1^1=1, and they are connected by an outer wire.

Question: What is P1^0's output?

 

Experiment result: 0v.

 

zero wins!

 

------------------------------------------------------------------------------------

 

This tests different sources write 0/1 to the same address. What is the output?

 

Normally,  register listens to outer guy.

 

posted @ 2016-08-26 16:05  steven_xiu  阅读(122)  评论(0编辑  收藏  举报