Jump to content
ELFORUM - Forumul Electronistilor
Sign in to follow this  
vhbasil

AVR studio 4 1.9 in windovs 7

Recommended Posts

Va salut ,De cateva zile incerc sa compilez un mic programel , sa aprind si eu mai intai un led in AVR studio 4 dar nu-mi face programul in Hexa am urmat tutorialele si nu stiu unde gresesc . Sa nu mearga sub windows 7?Programul este:#include int main(void){ SREG=SREG & 0x7F; //Dezactivare sistem general de intreruperi. DDRB = 0x01; //Stabilire directie port B. PORTB = 0xFE; SREG=SREG | 0x80; //Reactivare sistem general de intreruperi. unsigned int i; while(1) { for(i=0;i<10000;i++){;} //Temporizare. PORTB =PORTB | 0x01; //Se aprinde led-ul. for(i=0;i<10000;i++){;} PORTB=PORTB & 0xFE; //Se stinge led-ul. }}Programul este luat de la un coleg si merge dar sub xpNu asi vrea sa ma incarc cu studio 5 , e prea stufos pentru calculatorul meuDaca poate cineva sa ma ajute unde gresesc sau ce mai trebuie pe langa WinAVR ?

Share this post


Link to post
Share on other sites

Pai ce erori iti da? Iti da eroare la compilare sau se compileaza dar dupa ce incarci hex-ul in mc nu se manifesta cum te asteptai?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.