Fpc 7615, 15 inch atom fanless panel pc – Acnodes FPC 7615 User Manual
Page 57

FPC 7615
15 inch Atom Fanless Panel PC
© Copyright 2012 Acnodes, Inc.
All rights reserved. Product description and product specifications
are subject to change without notice. For latest product information,
please visit Acnodes’ web site at www.acnodes.com.
14628 Central Ave,
Chino, CA91710
tel:909.597.7588, fax:909.597.1939
E N TE R P R G
/ /S e le ct th e lo g ica l d e vice 8 , G P 6
S E L E T D E V (8 )
/ /A ctiva t e G P 1
W R ITE R E G (0 x3 0 , (in p o rtb ( 0 x3 0 )|0 x 4 ))
W R ITE R E G (0 xE 6 , 0 x 0 )
W R ITE R E G (0 xE 4 , 0 x F0 )
/ /E xit th e su p e r I/ O ch ip p ro g ra m m in g
E X IT P R G
re tu rn 0 ;
}
/ /R e a d G P IO P o rt2
u n s ig n e d ch a r R e a d GP 2 () {
u n s ig n e d ch a r cG P 2 ;
/ /S ta rt t h e su p e r I /O ch ip pr o g ra m m in g
E N TE R P R G
/ /S e le ct th e lo g ica l d e vice 9 , G P 2
S E L E T D E V (9 )
/ /R e a d G P IO V a lu e
o u t p o rtb ( IN D E X P , 0 xE 5 );
c GP 2 = in p o rtb (D A TA P );
c GP 2 = cG P 2 & 0 xF ;
/ /E xit th e su p e r I/ O ch ip p ro g ra m m in g
E X IT P R G
re tu rn cG P 2 ;
}
/ /W rit e G P I O P o rt 6
in t W rite G P 6 (u ns ig ne d ch a r cG P 6 ) {