Jump to content
ELFORUM - Forumul electronistilor

prima linie neagra pe lcd


Guest abarbu

Recommended Posts

Guest abarbu

am reusit in cele din urma sa "misc" LCD-ul. insa nu asa cum as fi vrut eu. Am un LCD cu controller KS0070B-00. pe pinul 3 (de contrast) am pus un potentiometru si l-am reglat pana cand a aparut prima linie neagra. din pacate nu imi afiseaza nimic. decat prima linie neagra. Codul meu (CCS) este

#include "C:\Program Files\PICC\LCD_test\lcd_test.h"#include <LCD.C>void main(){   setup_adc_ports(NO_ANALOGS);   setup_adc(ADC_OFF);   setup_psp(PSP_DISABLED);   setup_spi(FALSE);   setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);   setup_timer_1(T1_DISABLED);   setup_timer_2(T2_DISABLED,0,1);   setup_comparator(NC_NC_NC_NC);   setup_vref(FALSE);   output_high(PIN_A0); //led care clipeste   lcd_init();      delay_ms(200);   output_low(PIN_A0);while(1){   output_high(PIN_A0);   delay_ms(1000);   output_low(PIN_A0);   delay_ms(1000);   lcd_gotoxy(1,1);   lcd_putc("T");}}

 

folosesc:

#fuses NOWDT,XT, PUT, NOPROTECT, NODEBUG, NOBROWNOUT, NOLVP, NOCPD, NOWRT

nu scrie nimic pe LCD. doar prima linie e neagra.

multumesc

Link to comment
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • CristianC

    1

  • bogdanm

    1

Top Posters In This Topic

Linia neagra apare cand alimentezi afisajul fara sa comunici cu el. Daca este initializat corect linia neagra dispare => verifica rutina de initializare a LCDLED-ul clipeste?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines