亚洲春色中文字幕久久久-三上亚,一吻二脱三床四吻胸,国产真实伦对白视频全集,在线毛片观看,精品成品入口黄网,国产毛aⅴ片久久久,亚洲AV色香蕉一区二区三区老师,萧皇后A级艳片,色情日本视频更新,99久久亚洲精品日本无码

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 6515|回復(fù): 17
上一主題 下一主題
收起左側(cè)

at89c2051程序能讀出來么

  [復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:201665 發(fā)表于 2018-12-30 07:55 | 只看該作者 |只看大圖 回帖獎勵 |倒序瀏覽 |閱讀模式
大家好,我的單片機里有個小程序,就是計數(shù)用的然后直接驅(qū)動數(shù)碼管顯示速度,里面的數(shù)碼管筆畫C端口常亮了,不能夠熄滅了,能否將程序讀出來,改動一下,謝謝大家!

IMG_20181228_121528.jpg (2.78 MB, 下載次數(shù): 49)

IMG_20181228_121528.jpg
分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報

沙發(fā)
ID:375250 發(fā)表于 2018-12-30 09:21 | 只看該作者
發(fā)下圖和你寫的程序
回復(fù)

使用道具 舉報

板凳
ID:201665 發(fā)表于 2018-12-30 11:07 來自觸屏版 | 只看該作者
15332135378 發(fā)表于 2018-12-30 09:21
發(fā)下圖和你寫的程序

不會寫程序,剛繪了一下草圖,一會發(fā)圖片。這個就是計數(shù)器功能。
回復(fù)

使用道具 舉報

地板
ID:449566 發(fā)表于 2018-12-30 11:11 | 只看該作者
如果能將程序讀出來,還可以改動一下。這樣的單片機換作你,你敢用嗎?
回復(fù)

使用道具 舉報

5#
ID:202748 發(fā)表于 2018-12-30 12:51 | 只看該作者
不能讀出程序,只能根據(jù)實物畫出電路圖,然后按圖和自己所需要的功能重新寫程序燒錄。
回復(fù)

使用道具 舉報

6#
ID:382454 發(fā)表于 2018-12-30 13:05 來自觸屏版 | 只看該作者
這么簡單的東東,應(yīng)該洞洞板都可以接一個出來。
回復(fù)

使用道具 舉報

7#
ID:201665 發(fā)表于 2018-12-30 14:40 來自觸屏版 | 只看該作者
univers 發(fā)表于 2018-12-30 13:05
這么簡單的東東,應(yīng)該洞洞板都可以接一個出來。

關(guān)鍵是沒有程序。
回復(fù)

使用道具 舉報

8#
ID:201665 發(fā)表于 2018-12-30 14:42 | 只看該作者
這個是原理圖,程序好寫嗎?

mmexport1546149082882.jpg (3.38 MB, 下載次數(shù): 52)

mmexport1546149082882.jpg

IMG_20181230_121015.jpg (3.81 MB, 下載次數(shù): 47)

IMG_20181230_121015.jpg
回復(fù)

使用道具 舉報

9#
ID:155507 發(fā)表于 2018-12-31 10:16 | 只看該作者
將at89c2051程序讀出來



  1. /*
  2.    Easy-Downloader V1.1 for ATMEL 89C2051/4051
  3.    Copyright(c) 1998 By W.Sirichote

  4.    Code for writer board was written by W.Sirichote
  5.    PC code for downloading HEX file was written By Zong
  6. */

  7. #include c:mc518051io.h
  8. #include c:mc518051reg.h

  9. #define xon 0x11
  10. #define xoff 0x13

  11. extern register char cputick;
  12. register int i;
  13. unsigned register char ACC,temp;
  14. register char command;
  15. char *title[] = " Easy-Downloader V1.1 for ATMEL 89C2051/4051"
  16. char *prompt[] = " >"
  17. char *ok[] = " ok"
  18. register int count;

  19. main()
  20. {
  21. /* define ASM EQU for assembly interfacing */
  22.   asm"LM317 EQU $b5";
  23.   asm"LE    EQU $b7";
  24.   asm"prog  EQU $b2";
  25.   asm"rdy   EQU $b3";
  26.   asm"xtal  EQU $b4";
  27.   asm"p10  EQU $90";
  28.   asm"p11  EQU $91";
  29.   asm"p12  EQU $92";
  30.   asm"p13  EQU $93";
  31.   asm"p14  EQU $94";

  32.   cputick = 0;
  33.   i = 0;
  34.   count = 0;
  35.   serinit(9600);
  36.   getch();
  37.   putstr(*title);
  38.   asm " clr LE";
  39.   initpowerup();
  40.   sendprompt();

  41.   while(1)
  42.   {
  43.     while ( cputick < 1)
  44.     ;
  45.     cputick = 0;
  46. /* run the following tasks every 10 ms */
  47.     getcommand();
  48.     prompting();
  49.     erase();
  50.     write();
  51.     read();
  52.     lock();
  53.     setcounter();
  54.     }
  55. }


  56. getnum()

  57. {
  58.     char s[6]; /*  put to global variables instead five characters plus terminator */
  59.     char c;
  60.     int i;
  61.     c = 0;
  62.     for (i = 0; c != 10; i++)
  63.     {
  64.         putch(xon);
  65.         c = getch();
  66.         s[i] = c;
  67.     }
  68.   s[i] = '';
  69.         if (i==0)
  70.         return (-1);
  71.         else
  72.         return (_atoi(s));

  73. }

  74.   getcommand()
  75. {

  76.     if ((SCON & 0x01) != 0)
  77.         command = getch();
  78.     else command = -1;             /* no cammand has entered */
  79. }

  80. char getconsole()
  81. {

  82.     if ((SCON & 0x01) != 0)
  83.   return(getchr());           /* use getchr() instead,ie. no echo */
  84.     else return(-1);
  85. }

  86. putok()
  87. {
  88.     putstr(*ok);
  89.     sendprompt();
  90. }

  91. sendprompt()
  92. {
  93.     putstr(*prompt);
  94. }

  95. prompting()

  96. {
  97.     if (command == '')
  98.        {
  99.         putstr(*title);
  100.         sendprompt();
  101.        }
  102. }

  103. pulseLE()
  104. {
  105.     delay(1);
  106.     asm" setb LE";
  107.     delay(1);
  108.     asm" clr LE";
  109.     delay(1);
  110. }

  111. erase()
  112. {
  113.     if (command == 'e')
  114.     {
  115.     asm {
  116.      setb p12     /* set erase mode */
  117.      clr  p11
  118.      clr  p10
  119.        }
  120.     pulseLE();
  121.     asm {
  122.         clr p14
  123.         clr LM317
  124.         }
  125.     pulseLE();
  126.     delay(100);    /* raise program supply up to 12V */
  127.     for (i=0; i < 10; i++) /* erase entire PEROM array (2kB) */
  128.     {
  129.     asm " clr prog";
  130.     delay(10);           /* 10 ms prog pulse */
  131.     asm " setb prog";
  132.     delay(1);
  133.     }

  134.     initpowerup();    /* reset internal address counter to 000h */
  135.     putok();
  136.     }
  137. }

  138. write()
  139. {
  140.     if (command == 'w')
  141.     {
  142.     asm {
  143.      clr  p12          /* set program mode */
  144.      setb p11
  145.      setb p10
  146.        }
  147.     pulseLE();
  148.     asm {
  149.       clr p14
  150.       clr LM317
  151.         }
  152.     pulseLE();
  153.     delay(100);       /* rise supply up 12V */
  154.     asm" clr IE.7";
  155.     for (i = 0; i < count; i++)
  156.     {                 /* use XON & XOFF flow control */
  157.     putch(xon);       /* send XON */
  158.     P1 = getchr();
  159.     putch(xoff);       /* send XOFF */
  160.     pulseProg();
  161.     /*
  162.     asm " clr prog";
  163.     asm " nop";
  164.     asm " nop";
  165.     asm " nop";
  166.     asm " nop";           /* pulse prog ~4 microsecond */
  167.     asm " setb prog"; */
  168.     asm " nop";
  169.     asm " jnb rdy,*";
  170.     asm " nop";

  171.     asm " setb xtal";
  172.     delay (1);
  173.     asm " clr xtal";
  174.     }
  175.     asm" setb IE.7";
  176.     asm " setb LM317";
  177.     asm " setb p14";
  178.     pulseLE();
  179.     putok();
  180.     }
  181. }

  182. read()    /* read code with the number of bytes set by 's' command */
  183. {
  184.     if (command=='r')
  185.     {
  186.         initpowerup();
  187. /*  delay(100);   */
  188.         asm{
  189.             clr  prog
  190.             clr  p12
  191.             clr  p11
  192.             setb p10
  193.            }
  194.         pulseLE();
  195.   for(i = 0; i < count; i++)
  196.         {
  197.         asm" setb prog";
  198.         asm" mov P1,#$FF";   /* put FF before read back */
  199.    delay(1);
  200.    printA();        /* read in HEX */
  201.         asm" setb xtal";  /* next address */
  202.   delay(1);
  203.         asm" clr xtal";
  204. /*  chkXOFF();  */      /* flow controlled by XON/XOFF */
  205.   }
  206.         putok();

  207.     }
  208. }

  209. printA()
  210. {
  211.       ACC = P1;
  212.       ACC >>= 4;  /* shift right 4 bits */
  213.       putHEX();
  214.       ACC = P1&15;
  215.       putHEX();

  216. }

  217. putHEX()
  218. {
  219.      if (ACC > 9)
  220.         putch(ACC+55);
  221.       else putch(ACC+48);
  222. }

  223. /*
  224. chkXOFF()     /* use XON and XOFF for controlling flow with host */

  225. {
  226.       if(getconsole() == xoff)
  227.          {
  228.             do;
  229.             while(getconsole() != xon);
  230.          }
  231. }
  232. */


  233. lock()  /* only protection mode 3,i.e., disabled further
  234. program and verify, can be programmed */

  235. {
  236.     if (command == 'l')
  237.     {
  238.         P1 = 0x07;
  239.         pulseLE();
  240.         asm " clr LM317";
  241.         delay(100);
  242.         pulseProg();

  243.         P1 = 0x06;
  244.         pulseLE();
  245.         pulseProg();
  246.       
  247.         asm " setb p14";
  248.         asm " setb LM317";
  249.         pulseLE();
  250.         putok();
  251.     }

  252. }


  253. setcounter()

  254. {
  255.     if (command == 's')
  256.     {
  257.         count = getnum();
  258.         putok();
  259.     }
  260. }

  261. /*
  262. printhelp()
  263. {
  264.     if (command == '?')
  265.     {
  266.         putstr(" e  erase");
  267.         putstr(" rb read BIN");
  268.         putstr(" rh read HEX");
  269.         putstr(" w  write");
  270.         putstr(" l  lock");
  271.      }
  272.         putok();

  273. }
  274. */

  275. pulseProg()

  276. {
  277.         asm " clr prog";
  278.         asm " nop";
  279.         asm " nop";
  280.         asm " nop";
  281.         asm " setb prog";

  282. }

  283. initpowerup()
  284. {
  285.     asm{
  286.   clr  prog
  287.         clr  xtal
  288.         setb LM317
  289.         setb p14
  290.         setb rdy
  291.         }
  292.     pulseLE();
  293.     delay(100);
  294.     asm{
  295.   setb prog
  296.         clr p14
  297.         setb LM317
  298.     }
  299.     pulseLE();
  300.     delay(100);

  301. }

  302. time1ms()    /* 1 ms delay with XTAL 11.0592MHz */
  303. {
  304.     int i;
  305.     for (i = 0; i < 8 ; i++)
  306.     ;
  307. }

  308. delay(n)      /* do nothing n*1ms */
  309. int n;
  310. {
  311.     int i;
  312.     for (i=0; i< n ; i++)
  313.     time1ms();

  314. }
復(fù)制代碼


http://www點shrubbery點net/~heas/willem/kmitl/easy.htm

評分

參與人數(shù) 1黑幣 +50 收起 理由
admin + 50 回帖助人的獎勵!

查看全部評分

回復(fù)

使用道具 舉報

10#
ID:213173 發(fā)表于 2018-12-31 14:52 | 只看該作者
用通用編程器G540可以復(fù)制AT89C2051內(nèi)部程序,你這種非常簡單的程序通常不會加密。



回復(fù)

使用道具 舉報

11#
ID:201665 發(fā)表于 2019-1-1 22:41 | 只看該作者
wulin 發(fā)表于 2018-12-31 14:52
用通用編程器G540可以復(fù)制AT89C2051內(nèi)部程序,你這種非常簡單的程序通常不會加密。

你好 ,這個單片機程序不是不能讀出來嗎?
回復(fù)

使用道具 舉報

12#
ID:449525 發(fā)表于 2019-1-2 08:26 | 只看該作者
你不加密的話,應(yīng)該是可以讀出hex格式文件,然后反匯編試試
具體沒操作過。stc官網(wǎng)上加密求人破解,在加強自己機制。
回復(fù)

使用道具 舉報

13#
ID:426861 發(fā)表于 2019-1-2 09:24 | 只看該作者
看圖板子太舊了,不熄滅可能是硬件有問題,你先確定一下
回復(fù)

使用道具 舉報

14#
ID:201665 發(fā)表于 2019-1-2 12:27 來自觸屏版 | 只看該作者
天風(fēng)情 發(fā)表于 2019-1-2 09:24
看圖板子太舊了,不熄滅可能是硬件有問題,你先確定一下

硬件都查了,就幾個上拉電阻,阻值都正常。
回復(fù)

使用道具 舉報

15#
ID:358930 發(fā)表于 2019-1-2 22:56 來自觸屏版 | 只看該作者
limao1025 發(fā)表于 2019-1-2 12:27
硬件都查了,就幾個上拉電阻,阻值都正常。

這幾個功能,自己重寫吧?我就喜歡把舊單片程序重寫。
回復(fù)

使用道具 舉報

16#
ID:460657 發(fā)表于 2019-1-3 09:30 | 只看該作者
這幾個功能,自己重寫吧?我就喜歡把舊單片程序重寫。
回復(fù)

使用道具 舉報

17#
ID:201665 發(fā)表于 2019-1-5 10:01 來自觸屏版 | 只看該作者
魚魚魚魚魚魚yu 發(fā)表于 2019-1-3 09:30
這幾個功能,自己重寫吧?我就喜歡把舊單片程序重寫。

關(guān)鍵是不會寫?要是會寫,就直接開干了!
回復(fù)

使用道具 舉報

18#
ID:168911 發(fā)表于 2019-4-26 21:31 來自觸屏版 | 只看該作者
limao1025 發(fā)表于 2019-1-5 10:01
關(guān)鍵是不會寫?要是會寫,就直接開干了!

你這個意義不大,還沒有儲存塊。斷電就沒有了,重新做一個好了
回復(fù)

使用道具 舉報

19#
ID:428115 發(fā)表于 2019-4-27 10:46
單片機破解

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機教程網(wǎng)

快速回復(fù) 返回頂部 返回列表