Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Chip: ATMEGA32
Compiler= gcc-avr
I wrote a simple code on using external interrupt INT0; however, the chip responds for the first interrupt signal only. In short, I would like to know how can I make the chips respond to each interrupt signal?
#include <avr/io.h>
#include <avr/interrupt.h>...
Dear all,
your replies are highly appreciated.can I use "PINB.0" I saw some codes use this command; however, read that it compiler dependent.
regards,
Ahmed
I use gcc compiler WinAVR and I want to check the input
if(PINB0==1)
{
//do something
}
However, when I set the B0 nothing happens, but when I use
if((PINB&0x01)==0x01)
{
//do something
}
it works perfectly; nevertheless, its not practical to write like that each time i use if condition...
I am beginner with dctcl, and I have inquiry regarding the use of allocate_budgets command to apply the design budgeting compilation strategy
on my top block.
In fact I am using avr-gcc compiler this is the code
#include <avr/io.h>
#include <avr/delay.h>
int main(void)
{
DDRC=0x00;
while(1)
{
for(int i=0;i<8;i++)
{
PORTC=~i;
_delay_loop_2(30000); //30 seconds delay
}
}
}
I use ATmega32 and i need to make delay 1 sec exactly. I used
_delay_loop_2(1000);
_delay_ms (1000);
; however, none of them is accurate, so do I misunderstand those functions?
I really appreciate your replies. I would like to know if there is a circuit of one of those programmers I could implement instead of purchasing it, which is compatible with AVR studio.
I made one which upload the program on the ATmega32 using serial port COM1; however, I can't send the file using the AVRprog because it can't recognize the board.
Dear all,
it is my first time to program AVR, and i can't upload the hex file (which i used "AVR studio" to generate it) on the chip using "AVRprog". Although I have reviewed the connection between serial port and the chip pins multiple times, as stated in data sheet , each time i press build...
You should, first of all, install windows xp, and leave enough space for linux, then you should install linux because you can install linux on windows system and you can't do otherwise
I believe that Ubuntu is the best version of Linux for beginners; inasmuch as, it has friendly interface, and you can try it from live CD, in addition, its installation is easy.
I would like to learn about Micro-controllers; however, there are a lot of types of Micro-controllers, for instance, PIC, AVAR, 8051, ..etc. In short, what is the best uC to start with, and what is the distinction between this types?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.