作者kevtola ()
看板Electronics
标题[问题] 关於LF2407这块版子的一个问题
时间Thu Aug 16 17:51:09 2007
有个问题如下:
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: 218.175.239.52
※ kevtola:转录至看板 Question 08/16 17:51
※ kevtola:转录至看板 ask 08/16 17:52