PDA

View Full Version : mạch điều khiển qua điện thoai


thanhsangdt01
24-07-2013, 11:20 PM
mấy anh ơi giúp em với ....đoạn code này em đoc hoài không hiêu
void ISD_Send(char x)
{
char t;
// Change DTMF or Speaker
output_low(TP_DTMF_SPK);
output_high(ISD_REC);
output_high(ISD_PLAY);
t = x & 0x1;
if(t) output_high(ISD_A0);
else output_low(ISD_A0);
t = x & 0x2;
if(t) output_high(ISD_A1);
else output_low(ISD_A1);
t = x & 0x4;
if(t) output_high(ISD_A2);
else output_low(ISD_A2);
t = x & 0x8;
if(t) output_high(ISD_A3);
else output_low(ISD_A3);
delay_ms(1);
output_low(ISD_PLAY);
T1_cnt = 0;
}

laiquangtuyen
25-07-2013, 07:41 PM
Bạn up hết toàn bộ code lên thì mới biết.