Projet

Général

Profil

« Précédent | Suivant » 

Révision 811

Ajouté par ahkurklu il y a presque 4 ans

question 7 affichage suite de caractère

Voir les différences:

branch/KURKLU/sp4c12/sp4c12/sp4c12/sp4c12.c
void uart0_tx(char c){
te_u0c1 = 1;
ti_u0c1 = 0;
while(ti_u0c1 == 1){
u0tb = c;
}
}
}
void main(void)
{
char c = 'u';
char c = 'Y';
//U0MR
smd0_u0mr = 1; //Uart en mode 8bit
......
ps0_2 = 0;
ps0_3 = 1;
uart0_tx(c);
}
while(1){
uart0_tx(c);
c=c+1;
if(c > 90){
c = 'A';
}
}
}

Formats disponibles : Unified diff