Olá pessoal
Estou com uma dúvida
É melhor eu utilizar variaveis locais ou globais?
Que diferença isso faz no programa ....
Obrigado
Moderadores: 51, guest2003, Renie, gpenga
veioloko escreveu:Olá pessoal
Estou com uma dúvida
É melhor eu utilizar variaveis locais ou globais?
Que diferença isso faz no programa ....
Obrigado
void AUXinterrupts(void) interrupt 6 using 3
{
char tmp; // variavel somente p/ limpar registros
tmp = MSINT ;
AI=0 ; // limpa flag de interrupção auxiliar
if (aux_int_ms<101){
if(aux_int_ms<=porcentagem){
saida = 0; // ativa saida
} else {
saida = 1;// desativa saida
}
aux_int_ms++;
}else{
aux_int_ms = 1;
}
}
WARNING C233 IN LINE 470 OF teste.c : using absolute registers together with in
-terrupts can cause register corruptions (mixup of register banks)
Usuários navegando neste fórum: Nenhum usuário registrado e 1 visitante