avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] c++ & atmega64


From: Eric Weddington
Subject: RE: [avr-gcc-list] c++ & atmega64
Date: Tue, 22 May 2007 19:34:32 -0600

 

> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Serhan Gürmeriç
> Sent: Tuesday, May 22, 2007 7:23 AM
> To: address@hidden
> Subject: [avr-gcc-list] c++ & atmega64
> 
> Hello,
> 
>  I'm trying to simulate this code in proteus 7.1 with 
> atmega64. It runs 
> well if I compile it with -mmcu=atmega16 parameter by 
> avr-g++. Problem 
> is that same code doesn't work (i can't see any signal on pins), if i 
> change mmcu to atmega64 without any other changes in circuit or code.
> 
> What is my fault?
> Thanks
> 
> code:
> ---------------------------------------------------
> int main(void)
> {
>   CS6B0108LCD lcd;
> 
>     DDRA=255;DDRB=255;DDRC=255;
>    
>     lcd.DisplayOn();
>     while(1)
>     {
>       PORTA=0;
>       PORTA=255;
>     }
>   return 0;
> }

Have you tried remarking out the call to lcd.DisplayOn() ?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]