標(biāo)題:
用STC89C52RC單片機(jī)焊接的單片機(jī)最小系統(tǒng)
[打印本頁]
作者:
dzdiy
時(shí)間:
2015-4-11 23:20
標(biāo)題:
用STC89C52RC單片機(jī)焊接的單片機(jī)最小系統(tǒng)
這個(gè)用STC89C52RC單片機(jī)焊接的單片機(jī)最小系統(tǒng)比較簡單,實(shí)現(xiàn)的功能就是在P1.0口上點(diǎn)亮一只發(fā)光二極管以及讓發(fā)光二極管閃亮,所需要的元件:5x7 洞洞板一塊、12M晶振1只、STC89C52RC單片機(jī)1只、LED發(fā)光二極管1只、1K電阻1只、8x8開關(guān)1只、USB公頭1只、插針40P的1排,板子是洞洞板焊接的,電路比較簡單,原理圖附后,下面是焊接好的實(shí)物圖,相應(yīng)的源程序附后。
程序一:點(diǎn)亮單片機(jī)P1.0腳上接的LED發(fā)光二極管的程序源碼:
#include<reg52.h>
sbit D2=P1^0;
unsigned int a;
void main()
{
D2=0;
}
程序二:點(diǎn)亮單片機(jī)P1.0腳上接的LED發(fā)光二極管并閃爍的程序源碼:
#include<reg52.h>
sbit D2=P1^0;
unsigned int a;
void main()
{
D2=0;
while(1)
{
~D2;
for(a=0;a<=10000;a++){};
}
}
最后推薦一個(gè)很好的單片機(jī)教程:
http://www.torrancerestoration.com/bbs/mcu-xuexi-1.html
另外下面是一些我收集整理的關(guān)于單片機(jī)最小系統(tǒng)的資料:
手把手制作單片機(jī)最小系統(tǒng)
http://www.torrancerestoration.com/bbs/dpj-33306-1.html
初學(xué)者零基礎(chǔ)學(xué)習(xí)單片機(jī)的方法:
http://www.torrancerestoration.com/bbs/dpj-33307-1.html
單片機(jī)點(diǎn)亮發(fā)光二極管的試驗(yàn)
http://www.torrancerestoration.com/bbs/dpj-33308-1.html
STC89C52RC單片機(jī)最小系統(tǒng)
http://www.torrancerestoration.com/bbs/dpj-33267-1.html
一款適合用來學(xué)習(xí)的單片機(jī)最小系統(tǒng)制作圖
http://www.torrancerestoration.com/bbs/dpj-33273-1.html
單片機(jī)最小系統(tǒng)_按鍵控制數(shù)碼管顯示
http://www.torrancerestoration.com/bbs/dpj-33271-1.html
單片機(jī)最小系統(tǒng)圖紙
http://www.torrancerestoration.com/bbs/dpj-33274-1.html
收集的單片機(jī)最小系統(tǒng)實(shí)物照片
http://www.torrancerestoration.com/bbs/dpj-33290-1.html
用STC89C52RC單片機(jī)焊接的單片機(jī)最小系統(tǒng)
http://www.torrancerestoration.com/bbs/dpj-33304-1.html
新手學(xué)焊的單片機(jī)最小系統(tǒng):
http://www.torrancerestoration.com/bbs/dpj-33249-1.html
作者:
馬云
時(shí)間:
2018-5-2 20:16
你好,請(qǐng)教一下。c52 復(fù)位電路不需要電容嗎
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1