Sign in

username:

password:



Not a member?

Search avrclub



Search tips

Subscribe to avrclub



avrclub by Keywords

AT90S2313 | AT90S8515 | ATMega | ATmega128 | ECL | FETS | IAR | Keyboard | LCD | STK50 | TMOS | UART

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | AVRclub | [AVR club] ATmega 162 usart.


Advertise Here

Atmel AVR Microcontroller discussion group.

[AVR club] ATmega 162 usart. - bazzapromenade - Feb 27 11:46:35 2009

After several weeks of trying to get 2 162's to talk to each other I
am still no further ahead. It seems I picked a bad processor to have
usart troubles with. The 162 does not debug properly on studio4 (in
list of known problems)or with jtagice mk2.(also in list of known
problems) Therefore I haven't been able to determine where my problem
is. I have tried running several different programs with 9 bits and 8
bits.I have also tried on 2 separate 162's I have tried a program that
reads the pins of one 162 and does not turn on txen unless there is a
change of pin inputs. So here are a couple of questions. Firstly this
is to be a single direction only, therefore I am only connecting tx
from chip one to rx on chip 2. plus a ground. Does a usart need a
return signal to work? Secondly on the program that only transmits
when there is a pin change, I would have thought that the tx line
would be idle until a pin change was detected but there is a constant
signal. Clock is 8meg, baud rate is 19,200. 8n1 The signal I am
getting is a long period high followed by L L H L H H L H L H H L THEN
back to the long period high. The time for each byte is approx .5 ms
The whole usart thing is new to me and I do not know what to expect.
Any help would be greatly appreciated.
Many thanks Bazza.

------------------------------------



(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )