正在加载图片...
动力工作窒 51单片机C语言入门教程 http://edle.126.com 果您看过别的程序书也许也有类似的程序 #include <AT89X51.H> #include <stdio h> void main( void) SCON=0x50,/串口方式1,允许接收 TMOD=0x20,∥定时器1定时方式2 TCON=0x40;∥设定时器1开始计数 THl=0xE8;∥110592MHz1200波特率 TLl=OxE8 T=1 TR1=1;∥启动定时器 printf((" Hello World! \ n");/显示 Hello world Vende F U Extended Linker (r51) instesd of BISI Fanily Deseription A89c4051 805! based Fall Static Ons controller with Three-Level frs ATP9CS es, 2 Liners/Counters, 6 Interrupts sources OAT89C51RC t K Hash Menory, 128 Bytes Onchip RA OAT89C52 □Ar9cs OAT89C55ND OAT89P51 □Ar9s2 OATB9LS OAT89LS5: □A9w51 CAT89LV52 取消 图1-4选取芯片51 单片机 C 语言入门教程 - 3 - 果您看过别的程序书也许也有类似的程序: #include <AT89X51.H> #include <stdio.h> void main(void) { SCON = 0x50; //串口方式 1,允许接收 TMOD = 0x20; //定时器 1 定时方式 2 TCON = 0x40; //设定时器 1 开始计数 TH1 = 0xE8; //11.0592MHz 1200 波特率 TL1 = 0xE8; TI = 1; TR1 = 1; //启动定时器 while(1) { printf ("Hello World!\n"); //显示 Hello World } } 图 1-4 选取芯片
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有