Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: testing uart using atmega16

2005-12-12 by Zack Widup

OK, thanks.  Is there any way you can hook up the mega16 directly to the 
computer with an RS-232 level converter or some such?

I don't write programs in C at this point, I do them all in assmebler.  
But I like to do them in stages to verify each part is working.  For 
instance, I wrote a program for the mega8 that controls an AD9835 DDS 
chip.  I first wrote a program just to send a fixed frequency to the DDS 
chip to make sure that part of the program was working.  Then I added in 
the serial comm routines.  It's a half-duplex routine, so I made it send a 
sign-on message to the computer when the mega8 is reset, i.e. "AVR DDS 
controller v. 1.0". When I see that appear on the computer screen I know 
that part is working properly.

Then I add in the transmit/receive routines without interrupts and make 
sure they are working.  Once that is established, I add in the interrupts.

That way I know just what part of the program is faulty.

Zack

On Mon, 12 Dec 2005, spotwl8 wrote:

> hello thanks for the reply! yes I'm using an RF transceiver operates
> at 433MHz specifically BIM2 of radiometrix. I verified it already and
> its working.. I just used com port toolkit for sending data from pc.
> also yes I make sure that baud rate/parity/ stopbits are the same.
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.