Yahoo Groups archive

AVR-Chat

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

Thread

Re: [AVR-Chat] Serial communication problem in atmega32

Re: [AVR-Chat] Serial communication problem in atmega32

2008-03-14 by rakesh modi

Thanks for ur reply. Now i want to know that what is the fuse setting for atmega32 for uart communication? bcoz my program is working but i am getting only 100 baudrate.
 
R.P.Modi
Show quoted textHide quoted text
----- Original Message ----
From: David Kelly <dkelly@hiwaay.net>
To: AVR-Chat@yahoogroups.com
Sent: Friday, 14 March, 2008 3:53:55 AM
Subject: Re: [AVR-Chat] Serial communication problem in atmega32

                
On Mar 14, 2008, at 4:22 AM, eko setiawan wrote:

> what kind of program which U use to write uC?
> try this:
> I use CV AVR. that program have provide the fitur for serial comm  
> easily.
> U can use code wizard fitur in there.
> U only adjust the baud rate.
> the command for display is "printf", like command in c language.

"printf" is not a C command, it is a routine like any other,  
contained in a library, described in header file(s).

printf() is usually a very large consumer of CPU resources as it must  
include a runtime interpreter to read the format string, then it must  
include binary to ASCII converters for all supported output formats  
whether you use them or not.

In general only very large projects, students or other novices, can  
afford the cost of printf() in an embedded environment.

What most of us do is write routines that do just what we want and  
nothing else. Maybe a putchar() to write individual bytes out the  
serial port. Then puts() to repeatedly call putchar() writing each  
character of a string. Then i8puts() to convert an 8 bit integer and  
write to the serial port in ASCII, and/or u8puts(), or u16puts(), and/ 
or i16puts(), ... And often I add crlf() for line endings.

void crlf(void)
{
	putchar(0x0d) ;
	putchar(0x0a) ;
}

and use something like this:

	puts("The answer is ");
	i16puts(sum) ;
	crlf();

rather than

	printf("The answer is %i\n", sum);

--
David Kelly N4HHE, dkelly@HiWAAY. net
============ ========= ========= ========= ========= ========= ========= ======
Whom computers would destroy, they must first drive mad.


    
          			
<!--

Re: [AVR-Chat] Serial communication problem in atmega32

2008-03-14 by Zack Widup

There is not fuse setting for UART comm.  That's all done with your 
programming.

Read the ATMEGA32 data sheet.  All the info you need is there.

Zack
Show quoted textHide quoted text
On Fri, 14 Mar 2008, rakesh modi wrote:

> Thanks for ur reply. Now i want to know that what is the fuse setting for atmega32 for uart communication? bcoz my program is working but i am getting only 100 baudrate.
>
> R.P.Modi
>
>
> ----- Original Message ----
> From: David Kelly <dkelly@hiwaay.net>
> To: AVR-Chat@yahoogroups.com
> Sent: Friday, 14 March, 2008 3:53:55 AM
> Subject: Re: [AVR-Chat] Serial communication problem in atmega32
>
>
> On Mar 14, 2008, at 4:22 AM, eko setiawan wrote:
>
>> what kind of program which U use to write uC?
>> try this:
>> I use CV AVR. that program have provide the fitur for serial comm
>> easily.
>> U can use code wizard fitur in there.
>> U only adjust the baud rate.
>> the command for display is "printf", like command in c language.
>
> "printf" is not a C command, it is a routine like any other,
> contained in a library, described in header file(s).
>

Mega 640/1280/2560 Adaptors

2008-03-18 by Brian Fairchild

Does anyone know of any adaptor modules with mounted Mega640/1280/2560
(ie 4 USART chips) on? I'd rather like to prototype at 0.1" before
committing to a SM board.
 
 
Brian Fairchild
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date:
17/03/2008 10:48
 


[Non-text portions of this message have been removed]

Re: Mega 640/1280/2560 Adaptors

2008-03-18 by Dyan Fassett

The STK600 comes with a soldered on ATMega2560 demo routing card ... 
$199 at Mouser, several in stock now.
You might also look at the STK600-TQFP100 adaptor card with a socket 
this mounts to the STK600 it is $99 at Digi-key.

If your just looking at the 640-2560 family then the STK600 with the 
demo routing card would be a good start.

Mine are on the way here from Mouser(STK600) and 
Digi-Key(STK600-TQFP100) Along with some ATmega2560 devices they will 
all be here by Thursday :)
Dyan...


--- In AVR-Chat@yahoogroups.com, "Brian Fairchild" <avr-chat@...> wrote:
Show quoted textHide quoted text
>
> Does anyone know of any adaptor modules with mounted Mega640/1280/2560
> (ie 4 USART chips) on? I'd rather like to prototype at 0.1" before
> committing to a SM board.
>  
>  
> Brian Fairchild
>  
> 
> No virus found in this outgoing message.
> Checked by AVG. 
> Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date:
> 17/03/2008 10:48
>  
> 
> 
> [Non-text portions of this message have been removed]
>

Re: Mega 640/1280/2560 Adaptors

2008-03-18 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "Brian Fairchild" <avr-chat@...> 
wrote:
> Does anyone know of any adaptor modules
> with mounted Mega640/1280/2560

Although it is intended primarily to be used as a 
prototyping/development board for ZX-1280 applications, the ZX-1280 
Development Board can be also used for general prototyping purposes 
for the ATmega1280.  See the link below for more information.

http://www.zbasic.net/Development-Boards/ZX-1280-Dev-Board/p-52.html

Don Kinzer
ZBasic Microcontrollers
http://www.zbasic.net

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.