Fast GPIO [ 16bit version]

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Fast GPIO [ 16bit version]

502件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bobi-one on Wed Jun 08 11:51:48 MST 2011
What is the fastest way to put some 16 bit value on port 2 and 3 of the lpc1343?
this is the way I'm doing it.
void Write16(unsigned int data)
{
LPC_GPIO2->MASKED_ACCESS[0xFFF] = data;
LPC_GPIO3->MASKED_ACCESS[0x00F] = data >> 12;
}
0 件の賞賛
返信
1 返信

489件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by igorsk on Thu Jun 09 06:03:39 MST 2011
That's probably the fastest way to do it.
0 件の賞賛
返信