wendy890711

微處理

Mar 19th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <AT89X51.h>
  2. main()
  3. {
  4. int i;
  5. while(1)
  6. {
  7. P0_0=1,P0_2=1,P0_4=1,P0_6=1;
  8. P0_1=0,P0_3=0,P0_5=0,P0_7=0;
  9. for(i=1;i<20000;i++);
  10. P0_0=0,P0_2=0,P0_4=0,P0_6=0;
  11. P0_1=1,P0_3=1,P0_5=1,P0_7=1;
  12. for(i=1;i<20000;i++);
  13. }
  14. }
Add Comment
Please, Sign In to add comment