26.07.2014 Views

proposta de utilização do sistema operacional windows ce ... - UTFPR

proposta de utilização do sistema operacional windows ce ... - UTFPR

proposta de utilização do sistema operacional windows ce ... - UTFPR

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

val32 = valor * 4 + ((int32)valor * 113)/128;<br />

//Calculo da PV em por<strong>ce</strong>ntagem.<br />

atual_PV = (((val32) * 100) / (5000));<br />

printf(lcd_escreve,"\fPV: %lu %%\n\rCo: %lu %%",atual_PV,num_final);<br />

printf(rs232_transmite,"%luA",atual_PV);<br />

temp=i=0;<br />

}<br />

//Parte <strong>do</strong> protocolo que re<strong>ce</strong>be informacoes <strong>do</strong> PC e trata o mesmo<br />

if(temp=='A')<br />

{<br />

output_bit(pin_d7,1);<br />

lcd_escreve("\f");<br />

i=i-2;<br />

for(t=0; t

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!