Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Main - UART Pic 16f887a

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

/**

******************************************************************************
* Ten Tep
:
main.c
* Tac Gia
:
Nguyen Quy Nhat
* Cong Ty
:
MinhHaGroup
* Website
:
BanLinhKien.Vn
* Phien Ban
:
V1.0.0
* Ngay
:
31-08-2012
* Tom Tat
:
Truyen dong chu "BanLinhKien.Vn" Len PC.
*
Doi nhan tin hieu dieu khien tu PC.
*
******************************************************************************
* Chu Y
:
*
*
******************************************************************************
**/
#include "main.h"
#include "var.h"
void main()
{
uint8_t Key;
DDRD=0x00;
DDRC=0x82;
delay_ms(1);
printf("BanLinhKien.Vn");
while(TRUE)
{
Key=getchar();
if((Key=='a')||(Key=='A'))
{
PORT_LED=0x00;
}
if((Key=='b')||(Key=='B'))
{
PORT_LED=0xff;
}
}
}
/******************************KET THUC FILE******************************
______________________________NGUYEN QUY NHAT______________________________*/

You might also like