Group Blog
 
 
กันยายน 2554
 123
45678910
11121314151617
18192021222324
252627282930 
 
22 กันยายน 2554
 
All Blogs
 

การเขียนโปรแกรม rs232

การเขียนโปรแกรม mcs-51 โดยผ่าน rs232

ให้แสดงข้อความว่า mechatronics.k ในหน้าจอคอมพิวเตอร์



#include
code unsigned char text[14] = "mechatronics.k";
void main(void)
{
unsigned char i = 0;
TMOD = 0x21;
SCON = 0x40;
TH1 = 0xFD;
TF1 = 0;
TI = 0;
TR1 =1;

for(i=0;i<14;i++)
{
SBUF = text[i];
while(~TI);
TI = 0;
}
while(1);
}




 

Create Date : 22 กันยายน 2554
0 comments
Last Update : 22 กันยายน 2554 15:31:09 น.
Counter : 631 Pageviews.

ชื่อ : * blog นี้ comment ได้เฉพาะสมาชิก
Comment :
  *ส่วน comment ไม่สามารถใช้ javascript และ style sheet
 


silicon_k
Location :
กรุงเทพฯ Thailand

[ดู Profile ทั้งหมด]

ฝากข้อความหลังไมค์
Rss Feed
Smember
ผู้ติดตามบล็อก : 1 คน [?]




ยินดีต้อนรับสู่โลกอิเล็กทรอนิกส์ คอมพิวเตอร์ รับสอน และทำโปรเจคงานทางด้านอิเล็กทรอนิกส์ คอมพิวเตอร์ 0866057721
Friends' blogs
[Add silicon_k's blog to your web]
Links
 

 Pantip.com | PantipMarket.com | Pantown.com | © 2004 BlogGang.com allrights reserved.