Re: IO的問題
|
||||
---|---|---|---|---|
版主
|
想一下,去and 0b00001111 就可以得到 Lower bits.
and 0b11110000 後再用 swap 指令就可以得到 Higher bits.
發表於: 2008/4/25 15:02
|
|||
|
IO的問題
|
||||
---|---|---|---|---|
新會員
|
我想請問一下,小弟從AD轉換出來的值,如何把8bit資料分為Lower bit 跟 Higher bit ,然後把Lower bit丟去PORTD;把Higher bit丟去PORTB!!小弟用的MCU是18F4520,懇請高手解答小弟的疑惑
發表於: 2008/4/25 12:49
|
|||
|