mạch điều khiển qua điện thoai

Collapse
X
 
  • Giờ
  • Show
Clear All
new posts
  • thanhsangdt01
    Nhập môn đệ tử
    • Jul 2013
    • 2

    #1

    mạch điều khiển qua điện thoai

    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
    Đệ tử 4 túi
    • Jul 2007
    • 83

    #2
    Bạn up hết toàn bộ code lên thì mới biết.
    LẠI QUANG TUYẾN
    Phone: 0906.189.269

    Comment

    Working...