#include <reg52.h> #define UCHAR unsigned char#define uint unsigned intuint table[] = {0xFE, 0xfd, 0XFB, 0xf7, 0xEF, 0XDF, 0XBF, 0x7f};void delay (void) {UINT A = 50000;while (a--);} void Main () {int i = 0;while (1) {for (i = 0; i < 8; i++) {P0 = Table[i];d elay ();} for (i = 7; I >= 0; i--) {P0 = Table[i];d elay ();}}}
It is not the technical miscellaneous that I learn, but the miscellaneous of the school curriculum arrangement. I have a rough count of the school curriculum, can be described as a far apart of knowledge ah, I estimate, if every semester, no way courses are refined. That's perfect. But this semester involves embedded and monolithic computer, then come play a play! Abandoned half a semester, it is time to learn something. Ancient way: Justified Man Road, Xi died enough. Besides, there is no old day!
In fact, learn SCM is also watching Lin Feng Video: "Lin Feng with you conquer embedded"! Go directly to the code.
51 single-chip microcomputer programming: Make a simple running water lamp