EmbDev.net

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


von Va Ma (Guest)


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?

von N2 (Guest)


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

von Va Ma (Guest)


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?

von D'oh!!! (Guest)


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.

von N2 (Guest)


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.

von du, nicht ich (Guest)


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.