Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

Can't init more than one line on LCD

$
0
0
Hi
My init for LCD seems to malfunction,( but do proberly what i have told it to do :)
Get only line 1 active.
Here is LCD.c code
Code (Text):
  1.  
  2.  
  3. #ifndef _XTAL_FREQ
  4. // Unless specified elsewhere, 8MHz system frequency is assumed
  5. #define _XTAL_FREQ 8000000
  6. #endif
  7.  
  8.  
  9. #include    <htc.h>
  10. #include    "lcd.h"
  11.  
  12. #define    LCD_RS RC0
  13. #define LCD_EN RC1
  14. #define LCD_D4 RB4    // Data bits
  15. #define LCD_D5 RB5    // Data bits
  16. #define LCD_D6 RB6    // Data bits
  17. #define LCD_D7 RB7    // Data bits
  18.  
  19. #define...
Can't init more than one line on LCD

Viewing all articles
Browse latest Browse all 4923

Trending Articles