作者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