Révision 444
Ajouté par thcoulaud il y a presque 4 ans
branch/coulaud/sp4b1/SP4b1/SP4b1.c | ||
---|---|---|
/* This file is generated by Renesas Project Generator (Ver.4.18). */
|
||
/* NOTE:THIS IS A TYPICAL EXAMPLE. */
|
||
/***********************************************************************/
|
||
#include "sfr32c87.h";
|
||
#include "sfr32c87.h"
|
||
#define LCD_DC p3_0
|
||
|
||
void lcd_4b(unsigned char c){
|
||
pd1==0xff;
|
||
... | ... | |
{
|
||
p1_7=0;
|
||
}
|
||
if (c & 0b00000100)
|
||
if (c & 0b10000000)
|
||
{
|
||
p1_6=1;
|
||
}
|
||
else{
|
||
p1_6=0;
|
||
}
|
||
if (c & 0b00000100)
|
||
if (c & 0b10000000)
|
||
{
|
||
p1_5=1;
|
||
}
|
||
else{
|
||
p1_5=0;
|
||
}
|
||
if (c & 0b00000100)
|
||
if (c & 0b10000000)
|
||
{
|
||
p1_4=1;
|
||
}
|
||
else{
|
||
p1_4=0;
|
||
}
|
||
p1_2=0;
|
||
if (c & 0b10000000){
|
||
p1_2=1;
|
||
}
|
||
else{
|
||
p1_2=0;
|
||
}
|
||
|
||
|
||
}
|
||
|
||
void lcd_8b(unsigned char car){
|
Formats disponibles : Unified diff
Finissions des dernières fonction et début du main pour finir l'afficheur