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] atmega64l

Atmel AVR Microcontroller discussion group.

[AVR club] atmega64l - iijfet - Jul 16 13:39:55 2009

hi,i'm so deprss.i want to have a double-usart by atmega64l.

but i program it,exp for test i make PORTC=255,it program,but these

pins of micro are not 1-logic,and these voltage are 0;

i don't know really the correct fusebit configuration at usart state.i
know M103 must set to 0,but what about WTDON,CLK,...

every day i go to the center of city(Tehran)but when 3time i program these fusebits,micro isn't programed.
please help me...

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



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


Re: [AVR club] atmega64l - David Kelly - Jul 16 14:13:29 2009

On Thu, Jul 16, 2009 at 04:42:47PM -0000, iijfet wrote:
> hi,i'm so deprss.i want to have a double-usart by atmega64l.
>
> but i program it,exp for test i make PORTC=255,it program,but these
>
> pins of micro are not 1-logic,and these voltage are 0;
>
> i don't know really the correct fusebit configuration at usart state.i
> know M103 must set to 0,but what about WTDON,CLK,...
>
> every day i go to the center of city(Tehran)but when 3time i program these fusebits,micro isn't programed.
> please help me...

You are a long ways from being able to write useful code on an AVR.

Before pins on PORTC can be changed one must enable those pins as
outputs using DDRC (Data Direction Register C).

Offhand I don't grasp what PORTC has to do with UART. Perhaps the UART
pins are shared with PORTC? If so, usually (but not on all parts)
enabling the UART overrides the governing DDR. The lesson here is, "Read
the data sheet, and read it again, often."

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

______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


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

Re: [AVR club] atmega64l - Margarita Ponce - Jul 16 15:40:21 2009

Hi, playing with microships is not a kids play.
=A0
Let's start from chosing the correct piece.=A0 This means that the number a=
ssigned to the microship may be in diguise.=A0 At times you trust that the =
micro is the right one but when yuo look at its logic it ends up being anot=
her one.=A0=20
=A0
What I often did is get a micro catalog for that numbering (the number incl=
udes the name of the company that is producing them).=A0 In that catalog, t=
hey often show each mico logic.=A0 Many times, I found that the same number=
is assigned to different logics. Once you find the right logic for the out=
put you need, you test it with simple current.=A0 For your own benefit, it =
is best to record all your results of the test. ( I like to add that differ=
ent manufacturers use similar logics.=A0 They are suggested also in the cat=
alog).
=A0
Test the Micro Program separatelly. Do the same process in order to=A0 find=
out if in fact that is what your end result is.=A0 Record it.
=A0
Now.=A0 If they are both running perfect separatelly, but not running good =
together, you may have to find a different manufacturer to work well with t=
he program or vise versa.
=A0=20
I wish I could be there to help you figure it out.=A0 Unfortunately, I got =
stuff to do here in the U.S.A.
=A0
Best of wishes, and i will stick around.........................
=A0
Silvia (female)

--- On Thu, 7/16/09, iijfet wrote:
From: iijfet
Subject: [AVR club] atmega64l
To: a...@yahoogroups.com
Date: Thursday, July 16, 2009, 9:42 AM
=A0=20

hi,i'm so deprss.i want to have a double-usart by atmega64l.

but i program it,exp for test i make PORTC=3D255,it program,but these

pins of micro are not 1-logic,and these voltage are 0;

i don't know really the correct fusebit configuration at usart state.i
know M103 must set to 0,but what about WTDON,CLK,.. .

every day i go to the center of city(Tehran) but when 3time i program these=
fusebits,micro isn't programed.
please help me...

=20=20=20=20=20=20

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

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



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

Re: [AVR club] atmega64l - hossein hashemi - Jul 16 15:41:28 2009

merc,but: 1.portc set as o/p at codewizard=A0 2.it's just for testing the c=
hip not for UART.

--- On Thu, 7/16/09, David Kelly wrote:

From: David Kelly
Subject: Re: [AVR club] atmega64l
To: a...@yahoogroups.com
Date: Thursday, July 16, 2009, 10:41 PM

=A0

=20=20=20=20
On Thu, Jul 16, 2009 at 04:42:47PM -0000, iijfet wrote:

> hi,i'm so deprss.i want to have a double-usart by atmega64l.

>=20

> but i program it,exp for test i make PORTC=3D255,it program,but these

>=20=20

> pins of micro are not 1-logic,and these voltage are 0;

>=20

> i don't know really the correct fusebit configuration at usart state.i

> know M103 must set to 0,but what about WTDON,CLK,.. .

>=20

> every day i go to the center of city(Tehran) but when 3time i program the=
se fusebits,micro isn't programed.

> please help me...

You are a long ways from being able to write useful code on an AVR.

Before pins on PORTC can be changed one must enable those pins as

outputs using DDRC (Data Direction Register C).

Offhand I don't grasp what PORTC has to do with UART. Perhaps the UART

pins are shared with PORTC? If so, usually (but not on all parts)

enabling the UART overrides the governing DDR. The lesson here is, "Read

the data sheet, and read it again, often."

--=20

David Kelly N4HHE, dkelly@HiWAAY. net



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

Re: [AVR club] atmega64l - hossein hashemi - Jul 16 15:56:27 2009

merc,but not enough.

--- On Thu, 7/16/09, Margarita Ponce wrote:

From: Margarita Ponce
Subject: Re: [AVR club] atmega64l
To: a...@yahoogroups.com
Date: Thursday, July 16, 2009, 10:47 PM

=A0

=20=20=20=20
Hi, playing with microships is not a kids play.

=A0

Let's start from chosing the correct piece.=A0 This means that the number a=
ssigned to the microship may be in diguise.=A0 At times you trust that the =
micro is the right one but when yuo look at its logic it ends up being anot=
her one.=A0=20

=A0

What I often did is get a micro catalog for that numbering (the number incl=
udes the name of the company that is producing them).=A0 In that catalog, t=
hey often show each mico logic.=A0 Many times, I found that the same number=
is assigned to different logics. Once you find the right logic for the out=
put you need, you test it with simple current.=A0 For your own benefit, it =
is best to record all your results of the test. ( I like to add that differ=
ent manufacturers use similar logics.=A0 They are suggested also in the cat=
alog).

=A0

Test the Micro Program separatelly. Do the same process in order to=A0 find=
out if in fact that is what your end result is.=A0 Record it.

=A0

Now.=A0 If they are both running perfect separatelly, but not running good =
together, you may have to find a different manufacturer to work well with t=
he program or vise versa.

=A0=20

I wish I could be there to help you figure it out.=A0 Unfortunately, I got =
stuff to do here in the U.S.A.

=A0

Best of wishes, and i will stick around...... ......... ......... .

=A0

Silvia (female)

--- On Thu, 7/16/09, iijfet wrote:

From: iijfet

Subject: [AVR club] atmega64l

To: avrclub@yahoogroups .com

Date: Thursday, July 16, 2009, 9:42 AM

=A0=20

hi,i'm so deprss.i want to have a double-usart by atmega64l.

but i program it,exp for test i make PORTC=3D255,it program,but these

pins of micro are not 1-logic,and these voltage are 0;

i don't know really the correct fusebit configuration at usart state.i

know M103 must set to 0,but what about WTDON,CLK,.. .

every day i go to the center of city(Tehran) but when 3time i program these=
fusebits,micro isn't programed.

please help me...

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

=20

=20=20=20=20=20=20

=20=20=20=20
=20=20=20=20
=09
=09=20
=09
=09

=09
=09
=09
=20=20=20=20=20=20

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

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

______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


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

Re: [AVR club] atmega64l - Zack Widup - Jul 16 16:08:59 2009

Atmel has data sheets for all their parts available as free downloads from
their website. The first thing I always do when I am going to use a new part
(of any kind, not just microcontrollers) is find the data sheet and download
it if I can. Then I study it in detail.

Atmel often supplies pieces of code both in assembly code and C code that
will show you exactly what you need to do to set up the registers, I/O
functions etc. I study these in detail, as David recommends.

I don't jump in writing any complicated programs at first with a new
part, either. I might write some simple program in assembler setting up
some simple function and testing it so I know I have the fuse bits set
correctly and can get that simple function to work. An audio tone
generator using PWM outputs is one example.

After I've learned how to do these things, then I start to get more
complicated. I have always thought that you have to understand the inner
workings of all these devices in order to make them work to their full
capacity.

Zack

On Thu, Jul 16, 2009 at 1:11 PM, David Kelly wrote:

> On Thu, Jul 16, 2009 at 04:42:47PM -0000, iijfet wrote:
> > hi,i'm so deprss.i want to have a double-usart by atmega64l.
> >
> > but i program it,exp for test i make PORTC=255,it program,but these
> >
> > pins of micro are not 1-logic,and these voltage are 0;
> >
> > i don't know really the correct fusebit configuration at usart state.i
> > know M103 must set to 0,but what about WTDON,CLK,...
> >
> > every day i go to the center of city(Tehran)but when 3time i program
> these fusebits,micro isn't programed.
> > please help me...
>
> You are a long ways from being able to write useful code on an AVR.
>
> Before pins on PORTC can be changed one must enable those pins as
> outputs using DDRC (Data Direction Register C).
>
> Offhand I don't grasp what PORTC has to do with UART. Perhaps the UART
> pins are shared with PORTC? If so, usually (but not on all parts)
> enabling the UART overrides the governing DDR. The lesson here is, "Read
> the data sheet, and read it again, often."
>
> --
> David Kelly N4HHE, d...@HiWAAY.net
> ========================================================================
> Whom computers would destroy, they must first drive mad.
>
[Non-text portions of this message have been removed]

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

______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


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