Introduction - If you have any usage issues, please Google them yourself
1. in the use of 12MHz crystal oscillator, the crystal oscillator conditions, by 8051 internal timer 1 by way of 1 work, that is, as a 16 bit timer, each timer use, every 0.05 seconds T1 overflow interrupt once. The P1.0P1.0 to P1.7P1.7 of the P1 port is connected to the L1 to L8 of the led. (connecting J2, J3).
Requirements: write a program to simulate a circular lantern. Changing patterns: writing programs to simulate a circular lantern. The change patterns are as follows: L1, L2,... L8... L8 lit in turn; L1, L2,... L8... L8... L8 was extinguished successively; L1 and L2,... L8... L8... L8 all bright and extinguish. All lights are bright and clear. The timing interval is 0.5 seconds