UART on ATtiny44

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello! I´m getting troubles using usart0 and usart1 on attiny 441....I pretend to comunicate both ways using two usart´s likes this...Usart0 comunicate with a slave meanwhile USART1 comunicates with a master..the attachements are both codes. Can anyone help me, please?thanks

Attachment(s): 

Last Edited: Mon. Sep 21, 2015 - 07:03 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

MOD: What this has to do with BitCloud? Split and moved. Please post in the right place and don't bring up 3 year old threads.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

Last Edited: Mon. Sep 21, 2015 - 07:03 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Tiny44, or Tiny441?

 

What do you expect to happen?  What >>is<< happening?  How are you testing?  Describe or diagram connections, voltages, and clock speeds.

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

For certain, your GCCApplication1.c program will not work on a Tiny441, as there are well over 256 bytes of variables shown.  That model has 256 bytes of SRAM.

 

The slave -- maybe enough room.

 

You are creating an interrupt-drive application, yet you are using your own EEPROM primitives that do not handle an interrupt environment properly.  Your toolchain has "bullet proof" primitives for that.

 

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How do you understwood that variables are over 256 bytes?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

160 bytes of bss/data as shown by avr-size.

111 bytes of automatic variables in main() (tx_buffer, i, teste)

 

Last Edited: Mon. Sep 21, 2015 - 09:06 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Manuel please press POST once, I have now dislocated my mouse finger deleting the other 8 posts. wink

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly