Projet

Général

Profil

« Précédent | Suivant » 

Révision 800

Ajouté par thcoulaud il y a environ 4 ans

Réalisation de la détection '*' et '$'

Voir les différences:

branch/coulaud/sp4c12/TP_SPC12/TP_SPC12/TP_SPC12.c
void uart0_tx(char c)
{
while(ti_u0c1 !=1){
while(ti_u0c1 !=1);
u0tb=c;
}
}
char uart0_rx()
{
while(ri_u0c1!=1){
while(ri_u0c1!=1);
return u0rb;
}
}
void main(void)
{
char c='A';
int etat=0
init_portserie();
if ((uart0_tx())=='*'){
p1=0xFF;
}
if ((uart0_tx())=='*'){
p1=0x0F
}
/**char c='A';
int i;
init_portserie();
while (1){
int i=0
while (i<23){
int i=0;
while (i<26){
uart0_tx(c+i);
i++;
}
}
}**/
}

Formats disponibles : Unified diff