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.
well the first part is the initialization which is for the master to set the pins mosi and ss and sck as output and miso as input , in the slave the opposite and also selecting the slave and master
the commands : CLKPR=(1<<CLKPCE);
to make at168 works at the same clock speed of at16
the function...
Atmega168..............atmega16
MOSI----------->MISO
MISO----------->MOSI
SS-------------->SS
SCK------------->SCK
and the vcc and gnd connected
each microcontroller is connected to crystal 3.5MHZ with 2 capacitors to the ground
Hi
i'm working on spi communication between atmega168(master) and atmega16(slave)
the problem is that the slave receives what the master send but the master can't read what the slave sends.here r the codes:
Atmega 16:
#include <avr/io.h>
#include <util/delay.h>
#define SETBIT(ADDRESS,BIT)...
i don't think so because i went to the lab and i had put a function generator as a sine wave to the input and changed the frequency from 500hz to 4khz and more without any changes...........
exactly fig 17 ....what do u mean with biasing ? i connected pin 7 to ground and pin 6 is the output of the amplifier. i connected leds to the output of the adc i found that the leds changes depending on my voice
as i told you i'm using my voice frequency in this circuit.
for the schematic i'm using most of the circuit in the datasheet:
as i told you before my diagram is as this microphone->amplifier->adc->dac->amplifier->speaker
for the amplifier i've attached the diagram in the file circuit.doc
the...
it's an 8 bit and i'm using dac800 i don't anything else about the frequency but i'm using it for human voice ....
my application is microphone->amplifier->adc->dac->amplifier->speaker but the sound is too awful and unclear so i need a good filter after the dac for it ....
so atmega 16 is 10 bits? i get in the result uint16_t and 6bits not used?!
how can i do it ? if it was 8 bits i would dolike this:
PINA&=uint16_t ; what how about now with 10bits? by the way i'm using avr studio....
what do u mean?
hi
when using adc in atmega 16 the returned value from ADCW is 16 bit while atmega16 is 8 bit so that comes?!
can i later make dac (digital to analog conversion) ? or i have to use an dac IC ?
thanks
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.