hesho90
Member level 4
- Joined
- Sep 3, 2012
- Messages
- 78
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- egypt
- Activity points
- 1,778
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Code C - [expand] 1 2 3 4 5 6 7 8 void main() { TRISA = 0; TRISB = 0; LCD_init(); Lcd_Out(1, 1, "hello"); while(1); }
First find out why regulator is heating. What will you do with any code if there is no power to MCU. Is your LCD HD44780 or Compatible? If not your code will not work.
Code C - [expand] 1 2 3 4 5 6 7 void main(){ while(1){ PORTD.F1 = ~PORTD.F1; Delay_ms(1000); } }
sbit LCD_EN at RB0_bit;
sbit LCD_RS at RB1_bit;
sbit LCD_D4 at RB4_bit;
sbit LCD_D5 at RB5_bit;
sbit LCD_D6 at RB6_bit;
sbit LCD_D7 at RB7_bit;
sbit LCD_EN_Direction at TRISB0_bit;
sbit LCD_RS_Direction at TRISB1_bit;
sbit LCD_D4_Direction at TRISB4_bit;
sbit LCD_D5_Direction at TRISB5_bit;
sbit LCD_D6_Direction at TRISB6_bit;
sbit LCD_D7_Direction at TRISB7_bit;
void main() {
TRISA = 0;
TRISB = 0;
LCD_init();
Lcd_Out(1, 1, "hello");
while(1);
}
sbit LCD_EN at RB0_bit;
sbit LCD_RS at RB1_bit;
sbit LCD_D4 at RB4_bit;
sbit LCD_D5 at RB5_bit;
sbit LCD_D6 at RB6_bit;
sbit LCD_D7 at RB7_bit;
sbit LCD_EN_Direction at TRISB0_bit;
sbit LCD_RS_Direction at TRISB1_bit;
sbit LCD_D4_Direction at TRISB4_bit;
sbit LCD_D5_Direction at TRISB5_bit;
sbit LCD_D6_Direction at TRISB6_bit;
sbit LCD_D7_Direction at TRISB7_bit;
void main() {
TRISB = 0;
TRISD = 0x00;
LCD_init();
Lcd_Out(1, 1, "hello");
while(1);
PORTD = ~PORTD;
Delay_ms(1000);
}