Révision 570
Ajouté par Romain CHAMBELLON 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 main(void)
|
||
{
|
||
char t;
|
||
|
||
void main(void){
|
||
|
||
pd10 = 0xF0;
|
||
p10 = 0xFF;
|
||
pu30 = 1;
|
||
t = p10;
|
||
p10 = 0x00;
|
||
|
||
while(1){
|
||
|
||
p10 = 0x0F,
|
||
t = p10;
|
||
|
||
if (t!=0x0F) {
|
||
|
||
p10 = 0xEF;
|
||
t = p10;
|
||
|
||
if (t!=0x0F) {
|
||
|
||
p10 = 0xEF;7
|
||
t = p10;
|
||
|
||
}
|
||
|
||
}
|
||
|
||
}
|
||
|
||
}
|
Formats disponibles : Unified diff
TP Spb1 : reste à configurer les bonnes touches