EmbDev.net

Forum: µC & Digital Electronics communication between two ATmega32 via TWI/I2C interface


von Va Ma (Guest)


Attached files:

Rate this post
useful
not useful
Guys please help me!

My bachelor thesis is to implement the communication between two 
ATmega32 via TWI/I2C interface and print out a ECG Signal on a display 
connected to the Slave.

I am unfortunately pretty lost, and it's due Feb 28th Sad

So maybe could anyone have a look at my code and tell me what I did 
wrong?

von N2 (Guest)


Rate this post
useful
not useful
Hi,

Whats wrong? What's not working?
Do you have scope plots of the communication?
Schematics?

Try to reduce frequency for testing purposes to 10kHz.

Br

von Va Ma (Guest)


Rate this post
useful
not useful
well I am trying to release a interrup tat the slave which would effect 
a print out on the display (for test uses 5 4 3 2 1 ) but this isn't 
working.

I thought freq is either 100 or 400kHz?

von D'oh!!! (Guest)


Rate this post
useful
not useful
Va Ma wrote:
> I am unfortunately pretty lost, and it's due Feb 28th Sad

Well, Good Morning and Good Bye Master.

Let me guess somebody's been in winter sleep and it wasn't the bear.

von N2 (Guest)


Rate this post
useful
not useful
Va Ma wrote:
> well I am trying to release a interrup tat the slave which would
> effect
> a print out on the display (for test uses 5 4 3 2 1 ) but this isn't
> working.
>
> I thought freq is either 100 or 400kHz?

These are maximum frequencies for standard and fast mode. There is also 
a high speed mode. Clock can be zero, which will be useless of course. 
Please refer to philips I2C spec.

von du, nicht ich (Guest)


Rate this post
useful
not useful
Va Ma wrote:
> Guys please help me!
>
> My bachelor thesis [...] and it's due Feb 28th [...]

oh how i love to read that ...
hooray for the bachelor/master!

if implementing that communication was the only task in your thesis than 
i hope you'll never make it. sorry to be so rude but choosing a 
profession, studying it and failing at such a simple task ... you should 
reconsider your choice of profession.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.