Révision 446
Ajouté par Massamba FALL 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)
|
||
void main (void)
|
||
|
||
|
||
{
|
||
|
||
|
||
|
||
char c;
|
||
|
||
pd1=0xff;
|
||
|
||
c=0b10000000;
|
||
|
||
if(c&0b10000000)
|
||
|
||
p1_7=1;
|
||
|
||
else
|
||
p1_7=0;
|
||
|
||
if(c&0b10000000)
|
||
|
||
p1_6=1;
|
||
|
||
else
|
||
p1_6=0;
|
||
|
||
if(c&0b10000000)
|
||
|
||
p1_5=1;
|
||
|
||
else
|
||
p1_5=0;
|
||
if(c&0b10000000)
|
||
|
||
p1_4=1;
|
||
|
||
else
|
||
p1_4=0;
|
||
|
||
|
||
|
||
if(c&0b10000000)
|
||
|
||
p1_2=1;
|
||
|
||
else
|
||
p1_2=0;
|
||
|
||
|
||
|
||
|
||
|
||
|
||
}
|
||
|
Formats disponibles : Unified diff
TP5