mohammad.habibi
Newbie level 6
hello to all ...
I simulate a graphic lcd 64*128 in proteus
and program the micro with codevision avr and atmega64
but just show some point!
did you know whats the wrong?
tnx from your good site
the schematic and code is here

I simulate a graphic lcd 64*128 in proteus
and program the micro with codevision avr and atmega64
but just show some point!
did you know whats the wrong?
tnx from your good site
the schematic and code is here

PHP:
#include <mega16.h>
#include <glcd.h>
#include <font5x7.h>
void main(void)
{
GLCDINIT_t glcd_init_data;
DDRA=(1<<DDA7) | (1<<DDA6) | (1<<DDA5) | (1<<DDA4) | (1<<DDA3) | (1<<DDA2) | (1<<DDA1) | (1<<DDA0);
PORTA=(0<<PORTA7) | (0<<PORTA6) | (0<<PORTA5) | (0<<PORTA4) | (0<<PORTA3) | (0<<PORTA2) | (0<<PORTA1) | (0<<PORTA0);
DDRB=(1<<DDB7) | (1<<DDB6) | (1<<DDB5) | (1<<DDB4) | (1<<DDB3) | (1<<DDB2) | (1<<DDB1) | (1<<DDB0);
PORTB=(0<<PORTB7) | (0<<PORTB6) | (0<<PORTB5) | (0<<PORTB4) | (0<<PORTB3) | (0<<PORTB2) | (0<<PORTB1) | (0<<PORTB0);
glcd_init_data.font=font5x7;
glcd_init_data.readxmem=NULL;
glcd_init_data.writexmem=NULL;
glcd_init(&glcd_init_data);
while (1)
{
glcd_clear();
glcd_outtextf("GLCD TEST");
}
}