EmbDev.net

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


Author: Va Ma (Guest)
Posted on:
Attached files:

Rate this post
0 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?

Author: N2 (Guest)
Posted on:

Rate this post
0 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

Author: Va Ma (Guest)
Posted on:

Rate this post
0 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?

Author: D'oh!!! (Guest)
Posted on:

Rate this post
0 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.

Author: N2 (Guest)
Posted on:

Rate this post
0 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.

Author: du, nicht ich (Guest)
Posted on:

Rate this post
0 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.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.