This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

請問可以用一般的串口,控制網路通訊方式嗎?

Other Parts Discussed in Thread: CC2530

附件為CC2530<點播範例>,比方說簡單的例子: 如果我想在串口發送訊息,利用查詢接收的方式,當temp ==0x00時開啟點播、temp ==0x01時關閉點播,理論上可行嗎?  如果可行,要將程式添加至<點播範例>的哪裡呢?  

麻煩求解~  感謝!! 

while(1){

if(URX0IF == 1) { // 该if是接收查询的语句
temp = U0DBUF; // 如用中断,该if需要注释掉
URX0IF = 0; // 查询接收后,必须清除该标志位
}
if (temp == 0x00){

開啟點播

}
if (temp == 0x01){

關閉點播

}

} // while(1) end

1、点播.rar