lanyong
Joined: 14 Jan 2004 Posts: 9 Location: Xiamen,Fujian Province, China
|
a math problem? |
Posted: Thu Dec 27, 2007 11:39 pm |
|
|
8bit data:
L[8]={L0,L1,L2,,, L7}
how to get
H[8]={H0,H1,H2,,,H7}
more fast?
bit:
L0.7 L0.6 L0.5 L0.4 L0.3 L0.2 L0.1 L0.0
L1.7 L1.6 L1.5 L1.4 L1.3 L1.2 L1.1 L1.0
L2.7 L2.6 L2.5 L2.4 L2.3 L2.2 L2.1 L2.0
,
,
,
L7.7 L7.6 L7.5 L7.4 L7.3 L7.2 L7.1 L7.0
H & L:
H0:L7.0,,,L2.0,L1.0 L0.0
H1:L7.1,,,L2.1,L1.1 L0.1
thanks.
use pic18 or pic24 or dsPIC is ok. _________________ Lan Yong |
|