S
scorrpeio
Guest
Labas,
Parašiau codeto kalbomis kai kurie LCD ekranas duomenis.
Bet aš nesu vis nieko ekrane
<img src="http://www.edaboard.com/images/smiles/icon_sad.gif" alt="Liūdnas" border="0" /><img src="http://www.edaboard.com/images/smiles/icon_sad.gif" alt="Liūdnas" border="0" /><img src="http://www.edaboard.com/images/smiles/icon_sad.gif" alt="Liūdnas" border="0" />Kodas# include <p18f4520.h># pragma config WDT = offvoid Delay (void);
void GetLCDCommand (void);
void GetLCDData (void);void main (void)
(
int index;
char [10];
TRISA = 0x0; / / PORT O sukonfigūruotas / P režimas
TRISD = 0x00;
GetLCDCommand ();/ / Configure Rodyti kaip 2-line, 8-Bit, 5x7-taškai
PORTD = 0x38;
GetLCDCommand ();/ / gauti mirksi curser kalbomis
PORTD = 0X0F;
GetLCDCommand ();/ / išvalyti kalbomis
PORTD = 0x01;
GetLCDCommand ();while (1)
(
PORTD = 0xFF;
GetLCDData ();
))void Delay (tuščia)
(
float indeksas;
for (index = 0; index <10000; Index )
(
/ / nieko
))tuščia GetLCDCommand (tuščia)
(
int index;PORTA = 0b0010;
PORTA = 0b0000;
for (index = 0; index <1000; Index )
(
)
)tuščia GetLCDData (tuščia)
(
int index;PORTA = 0b1010;
PORTA = 0b1000;
for (index = 0; index <1000; Index )
(
))
Parašiau codeto kalbomis kai kurie LCD ekranas duomenis.
Bet aš nesu vis nieko ekrane
<img src="http://www.edaboard.com/images/smiles/icon_sad.gif" alt="Liūdnas" border="0" /><img src="http://www.edaboard.com/images/smiles/icon_sad.gif" alt="Liūdnas" border="0" /><img src="http://www.edaboard.com/images/smiles/icon_sad.gif" alt="Liūdnas" border="0" />Kodas# include <p18f4520.h># pragma config WDT = offvoid Delay (void);
void GetLCDCommand (void);
void GetLCDData (void);void main (void)
(
int index;
char [10];
TRISA = 0x0; / / PORT O sukonfigūruotas / P režimas
TRISD = 0x00;
GetLCDCommand ();/ / Configure Rodyti kaip 2-line, 8-Bit, 5x7-taškai
PORTD = 0x38;
GetLCDCommand ();/ / gauti mirksi curser kalbomis
PORTD = 0X0F;
GetLCDCommand ();/ / išvalyti kalbomis
PORTD = 0x01;
GetLCDCommand ();while (1)
(
PORTD = 0xFF;
GetLCDData ();
))void Delay (tuščia)
(
float indeksas;
for (index = 0; index <10000; Index )
(
/ / nieko
))tuščia GetLCDCommand (tuščia)
(
int index;PORTA = 0b0010;
PORTA = 0b0000;
for (index = 0; index <1000; Index )
(
)
)tuščia GetLCDData (tuščia)
(
int index;PORTA = 0b1010;
PORTA = 0b1000;
for (index = 0; index <1000; Index )
(
))