Projet

Général

Profil

« Précédent | Suivant » 

Révision 807

Ajouté par Pape Demba AMAR il y a presque 4 ans

fin de séance

Voir les différences:

branch/AMAR/sp4c12/uart0/uart0/uart0.c
crd_u0c0 = 1;
te_u0c1 = 1;
u0tb = c;
te_u0c1 = 0;
//te_u0c1 = 0;
while(!te_u0c1); //envoie liaison
u0tb = c;
}
char uart0_rx()
{
......
crd_u0c0 = 1;
re_u0c1 = 1;
c = u0rb;
while (re_u0c1 != 1);
// while (re_u0c1 != 1); //reception liaison
return c;
}
void main(void)
{
char sequence[26]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
int i=0,j=0;
char c;
uart0_init();

Formats disponibles : Unified diff