Révision 342
Ajouté par Pape Demba AMAR il y a presque 4 ans
SP4b1.c | ||
---|---|---|
/* This file is generated by Renesas Project Generator (Ver.4.18). */
|
||
/* NOTE:THIS IS A TYPICAL EXAMPLE. */
|
||
/***********************************************************************/
|
||
#include "sfr32c87.h"
|
||
void init_keyboard(void);
|
||
void tpo_50ms(void) ;
|
||
unsigned char touche = 0;
|
||
void main(void)
|
||
{
|
||
|
||
void main(void){
|
||
char t;
|
||
pu31=1;
|
||
pd10=0x00;
|
||
while (1){
|
||
if (( t & 0xf0)! = 0xf0 )){
|
||
p10=0;
|
||
}
|
||
if (( t & 0xf0)! = 0xf0 )){
|
||
t=p10 ;
|
||
p10=~0x0F;
|
||
}
|
||
if (( t & 0xf0)! = 0xf0 )){
|
||
p10=14;
|
||
t=p10;}
|
||
if (( t & 0xf0)! = 0xf0 )){
|
||
|
||
p10=0x0D;
|
||
t=p10;
|
||
}
|
||
if (( t & 0xf0)! = 0xf0 )){
|
||
p10=0x07;
|
||
t=p10;
|
||
}
|
||
}
|
||
}
|
Formats disponibles : Unified diff
Définition des entrées et les sorties puis les tester avec pd10. Mon programme contient des erreurs et doit subir des rectification