thannara123
Advanced Member level 5
- Joined
- Jan 7, 2010
- Messages
- 1,602
- Helped
- 122
- Reputation
- 244
- Reaction score
- 116
- Trophy points
- 1,353
- Activity points
- 10,633
void gotoxy(unsigned char x,unsigned char y)
{
if(x<40)
{
if(y) x|=0b01000000;
x|=0b10000000;
lcd_cmd(x);
}
It's already used in post #3.look for instruction "SET DDRAM ADDRESS"
Off-topic post. The OP is asking for a code example or explanation.Try this .hex file.
Off-topic post. The OP is asking for a code example or explanation
Try this .hex file.
lcd_init();
string("Volt ");
lcd_cmd(0xc0);
string("Amp : ");
lcd_init();
string("Volt ");
lcd_cmd(0xc0);
string("Amp : ");
while(1)
{
lcd_cmd(0x80 + 0x08);
string("Val_1");
lcd_cmd(0x80 + 0x48);
string("val_2");
__delay_ms(100);
}
void main(){
TRISB = 0x00;
lcd_init();
string("Volt ");
lcd_cmd(0xc0);
string("Amp : ");
while(1)
{
lcd_cmd(0x80 + 0x08);
string("Val_1");
lcd_cmd(0x80 + 0x48);
string("val_2");
__delay_ms(100);
}
}
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?