Re: 請問C18 如何將一個BIT反應在output pin 上?
|
||||
---|---|---|---|---|
初級會員
|
for(i = 0 ; i <<8 ; i++){
if (Data &0x80) Output_Pin = 1; else Output_Pinn = 0; }
發表於: 2005/12/23 4:47
|
|||
|
Re: 請問C18 如何將一個BIT反應在output pin 上?
|
||||
---|---|---|---|---|
初級會員
|
for(i = 0 ; i <<8 ; i++){
if (Data &0x80) Output_Pin = 1; else Output_Pinn = 0; }
發表於: 2005/12/23 4:46
|
|||
|
Re: 請問C18 如何將一個BIT反應在output pin 上?
|
||||
---|---|---|---|---|
版主
|
請參考C18 的User's Guide中的
TABLE 2-8: C MACROS PROVIDED FOR PICmicro® MCU INSTRUCTIONS 或利用右上方搜尋區塊,找Rlcf字樣。
發表於: 2005/12/19 17:29
|
|||
|
請問C18 如何將一個BIT反應在output pin 上?
|
||||
---|---|---|---|---|
高級會員
|
各位前輩:
請問如何用c18 將一個byte 用左移的方式, 將每一個bit 反應在output Pin上呢??? 如果不用spi or usart 的話, 要怎麼做?? 謝謝指教. 祝: 好 Ming....!!
發表於: 2005/12/15 17:32
|
|||
|