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.
i'm using two atmega32 for i2c.
master will call a slave & send the address of the slave as data & the slave will show it on PORTA.
Master is transmitter and slave is receiver.
i'm not getting expected result.slave is not showing its address on PORTA.
where's the problem. plzz help.
master...
i'm using two atmega 32 for spi.
master will send 0 to 100 to slave and the slave will show it on PORTD.
i'm not getting the expected result.
whats the prblm.plz help.
here is the code.
for master:
#include <avr/io.h>
#include <avr/delay.h>
#define DDR_SPI DDRB
#define DD_MOSI PB5
#define...
i want interrupt every 20ms.this code is not invoking the isr. where is the problem ? plz help.
{
TCNT1=-625;
TCCR1A=0x00;
TCCR1B=0x04;
TIMSK|=(1<<TOIE1);
sei();
}
ISR (TIMER1_OVF_vect)
{
//code}
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.