You are on page 1of 1

void DELAY1MS(){ //funo DELAY1MS

w=250; //MOVLW 250


System.out.println('W: ' + w);
w=0;
//MOVWF 20H move o conteudo de w para 20H (f0)
f0=250;
System.out.println('W: ' + w);
System.out.println('20H: ' + f0);
//DELAY1
for(f0;f0>=0;f0--)
{
System.out.println(f0);
try {
Thread.sleep(4);
} catch (Exception e) {
e.printStackTrace();
}
}
}
----------------------------------------------------------------------void DELAY1S(){
w=250; //MOVLW 250
System.out.println('W: ' + w);
w=0;
//MOVWF 21H move o conteudo de w para 21H (f1)
f1=250;
System.out.println('W: ' + w);
System.out.println('21H: ' + f1);
//DL_2
for(f;f>=0;f--)
{
DELAY1MS();
DELAY1MS();
DELAY1MS();
DELAY1MS();
}
}

You might also like