avr-gcc kerdes

Dukai Zoltan daemon82 at mailbox.hu
Fri Aug 27 11:50:46 CEST 2004


"az atmega128 alapbol atmega103 compatible modban fut"

Szolok :)

Leto Tokarev wrote:

> Ja hogy az atmega128 alapbol atmega103 compatible modban fut.. szoljatok
> :)
> 
> 
> 
> Leto
> 
> On Fri, 27 Aug 2004, Leto Tokarev wrote:
> 
> 
>>Udv urak!
>>
>>
>>Ez mukodik:
>>-----------------------------------
>>#include <avr/io.h>
>>
>>int main(void) {
>> sbi(DDRA,PORT7);
>> while (1) {
>>  sbi(PORTA,PORT7);
>>  cbi(PORTA,PORT7);
>> }
>>}
>>-----------------------------------
>>
>>Ez nem mukodik:
>>-----------------------------------
>>#include <avr/io.h>
>>void init(void) {
>> sbi(DDRA,PORT7);
>>}
>>
>>int main(void) {
>> init();
>> while (1) {
>>  sbi(PORTA,PORT7);
>>  cbi(PORTA,PORT7);
>> }
>>}
>>-----------------------------------
>>
>>De most mi szivat??
>>ATmega8-on jo mind a ketto, 128-on nem.
>>
>>Thx;
>>
>>
>>
>>Leto
>>
>>-----------------------------------
>> Szponzorunk: http://tonerbolt.hu/
>>
> 
> 
> -----------------------------------
>  Szponzorunk: http://tonerbolt.hu/
> 
> .
> 




More information about the Elektro mailing list