[an error occurred while processing this directive]
|
Вот кусок кода:
U0TXBUF=0x11; //Write in communication register mode address for reading
while(!(UTCTL0 & 0x01));
U0TXBUF=0x55; //Read high byte
while(!(U0TCTL & 0x01));
conv.byte[2]=U0RXBUF;
U0TXBUF=0x55; //Read middle byte
while(!(U0TCTL & 0x01));
conv.byte[1]=U0RXBUF;
U0TXBUF=0x55; //Read low byte
while(!(U0TCTL & 0x01));
conv.byte[0]=U0RXBUF;
E-mail: info@telesys.ru