作者anddyy (ALi)
看板Electronics
標題Re: [問題] 關於LF2407這塊版子的一個問題
時間Sun Aug 19 16:36:32 2007
1. setting port A pins Function (I/O Mux Control Register MCRA)
2. setting port A Data and Direction Control Register (PADATDIR)
SPLK #000FFh,MCRA
SPLK
#1111111100100010b,PADATDIR
※ 引述《kevtola ()》之銘言:
: 有個問題如下:
: Display the binary number "00100010"b with the eight pins on port A.
: 用LF2407 GPIO功能,寫出驅動的code
: 主要的步驟是:
: (1)Configure the bits in MCRA so port A is I/O ("XXXXXXXX00000000").
: (2)Set pins to output in PADATDIR by setting bits 15-8 as "11111111", with
: "00100010"b as the data (bits 7-0). "X" designates "don't care" bits.
: 我知道主要步驟,但是無法以code方式呈現上述理想
: 麻煩會的大大幫幫忙,這對你們來說應該相當簡單QQ|| 由衷感激
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.134.28.156