Yahoo Groups archive

AVR-Chat

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

Thread

keypad and mega64

keypad and mega64

2004-04-15 by chrisatwan2000

Hello,

I am a little new to using the mega chips.  I have had not problem 
getting my code working with my at90s8515 and my stk500.  I recently 
attached my keypad to a mega64, the outputs are on PORTF and the 
inputs are connected to PORTA.  I am very confused, would anyone be 
interested in seeing my code to help me out???

Chris Atwan

Re: keypad and mega64

2004-04-15 by chrisatwan2000

I get no response from any key being pressed.  I tested the same 
code on a at90s8515 and stk500, and it worked fine.  I realize that 
on the mega64 you need AVcc connected (it is), M103 = 1 (it is), and 
you can't directly write to PORTF and PORTG (I think I have that 
right, PORTG is working fine).  I have code if you would be 
interested in checking it out?

Chris Atwan

--- In AVR-Chat@yahoogroups.com, David VanHorn <dvanhorn@c...> wrote:
> At 09:52 PM 4/15/2004 +0000, chrisatwan2000 wrote:
> 
> >Hello,
> >
> >I am a little new to using the mega chips.  I have had not 
problem 
> >getting my code working with my at90s8515 and my stk500.  I 
recently 
> >attached my keypad to a mega64, the outputs are on PORTF and the 
> >inputs are connected to PORTA.  I am very confused, would anyone 
be 
Show quoted textHide quoted text
> >interested in seeing my code to help me out???
> 
> What's not happening?

Re: [AVR-Chat] keypad and mega64

2004-04-15 by David VanHorn

At 09:52 PM 4/15/2004 +0000, chrisatwan2000 wrote:

>Hello,
>
>I am a little new to using the mega chips.  I have had not problem 
>getting my code working with my at90s8515 and my stk500.  I recently 
>attached my keypad to a mega64, the outputs are on PORTF and the 
>inputs are connected to PORTA.  I am very confused, would anyone be 
>interested in seeing my code to help me out???

What's not happening?

Re: keypad and mega64

2004-04-15 by chrisatwan2000

I checked my fuses with AVR Studio and the following fuses are set:

BOOTSZ=11
BODLEVEL=1
CKSEL=1111 SUT=11

Any ideas??

Chris Atwan

--- In AVR-Chat@yahoogroups.com, Brian Dean <bsd@b...> wrote:
> 
> On Thu, Apr 15, 2004 at 10:38:39PM -0000, chrisatwan2000 wrote:
> 
> > I get no response from any key being pressed.  I tested the same
> > code on a at90s8515 and stk500, and it worked fine.  I realize 
that
> > on the mega64 you need AVcc connected (it is), M103 = 1 (it is), 
and
> > you can't directly write to PORTF and PORTG (I think I have that
> > right, PORTG is working fine).  I have code if you would be
> > interested in checking it out?
> 
> Most likely your code is fine, but check the JTAGEN fuse bit.  It 
is
Show quoted textHide quoted text
> enabled by default and it commandeers the upper nibble of PORTF.
> 
> -Brian
> -- 
> Brian Dean
> http://www.bdmicro.com/

Re: [AVR-Chat] Re: keypad and mega64

2004-04-16 by Brian Dean

On Thu, Apr 15, 2004 at 10:38:39PM -0000, chrisatwan2000 wrote:

> I get no response from any key being pressed.  I tested the same
> code on a at90s8515 and stk500, and it worked fine.  I realize that
> on the mega64 you need AVcc connected (it is), M103 = 1 (it is), and
> you can't directly write to PORTF and PORTG (I think I have that
> right, PORTG is working fine).  I have code if you would be
> interested in checking it out?

Most likely your code is fine, but check the JTAGEN fuse bit.  It is
enabled by default and it commandeers the upper nibble of PORTF.

-Brian
-- 
Brian Dean
http://www.bdmicro.com/

Re: [AVR-Chat] Re: keypad and mega64

2004-04-16 by Brian Dean

Hi Chris,

On Fri, Apr 16, 2004 at 01:56:39AM -0000, chrisatwan2000 wrote:

> I checked my fuses with AVR Studio and the following fuses are set:
> 
> BOOTSZ=11
> BODLEVEL=1
> CKSEL=1111 SUT=11
> 
> Any ideas??

The above fuses are in the low fuse byte.  You want to look at the
"high" fuse byte - the JTAGEN bit is bit number 6.

In Atmel terminalogy, a fuse is "set" or "programmed" if it is '0'.
It is "unset" or "unprogrammed" if it is a "1".  However, I think in
AVR Studio, a check mark on the fuse setting sets it to a "0", i.e.,
programs the fuse.

Look at the high fuse byte, specifically bit number 6.  If it is a
zero, then the JTAG debugging interface is enabled.  If it is a one,
then it is disabled.  It is enabled by default, so unless you disabled
it, it is most likely still enabled.  If it is enabled, then that
would most likely explain the problems with your program not getting
the expected results when using PORTF.

For more info, the "Memory Programming" section of the ATmega128
datasheet.  The high fuse byte is described on page 292 in the version
I have.

-Brian
-- 
Brian Dean
http://www.bdmicro.com/

Re: [AVR-Chat] Re: keypad and mega64

2004-04-16 by David VanHorn

We should do a FAQ on this stuff somewhere, all the little things that will thoroughly hose you if you don't catch them.. The high-low register load order, CKOPT fuse, Fuses in general, etc.

Re: keypad and mega64

2004-04-16 by chrisatwan2000

I thought looking at the fuses in AVR Studio was the way to check 
what fuses were set.  How do I check to see what fuses are set "0" 
and what fuses are not set "1"?  

Chris Atwan 

--- In AVR-Chat@yahoogroups.com, Brian Dean <bsd@b...> wrote:
> Hi Chris,
> 
> On Fri, Apr 16, 2004 at 01:56:39AM -0000, chrisatwan2000 wrote:
> 
> > I checked my fuses with AVR Studio and the following fuses are 
set:
> > 
> > BOOTSZ=11
> > BODLEVEL=1
> > CKSEL=1111 SUT=11
> > 
> > Any ideas??
> 
> The above fuses are in the low fuse byte.  You want to look at the
> "high" fuse byte - the JTAGEN bit is bit number 6.
> 
> In Atmel terminalogy, a fuse is "set" or "programmed" if it is '0'.
> It is "unset" or "unprogrammed" if it is a "1".  However, I think 
in
> AVR Studio, a check mark on the fuse setting sets it to a "0", 
i.e.,
> programs the fuse.
> 
> Look at the high fuse byte, specifically bit number 6.  If it is a
> zero, then the JTAG debugging interface is enabled.  If it is a 
one,
> then it is disabled.  It is enabled by default, so unless you 
disabled
> it, it is most likely still enabled.  If it is enabled, then that
> would most likely explain the problems with your program not 
getting
> the expected results when using PORTF.
> 
> For more info, the "Memory Programming" section of the ATmega128
> datasheet.  The high fuse byte is described on page 292 in the 
version
Show quoted textHide quoted text
> I have.
> 
> -Brian
> -- 
> Brian Dean
> http://www.bdmicro.com/

Re: [AVR-Chat] Re: keypad and mega64

2004-04-16 by chris atwan

Brian,
 
I verified that the JTAGEN fuse is "1".  Any ideas??

Chris Atwan


Brian Dean <bsd@bdmicro.com> wrote:
Hi Chris,

On Fri, Apr 16, 2004 at 01:56:39AM -0000, chrisatwan2000 wrote:

> I checked my fuses with AVR Studio and the following fuses are set:
> 
> BOOTSZ=11
> BODLEVEL=1
> CKSEL=1111 SUT=11
> 
> Any ideas??

The above fuses are in the low fuse byte.  You want to look at the
"high" fuse byte - the JTAGEN bit is bit number 6.

In Atmel terminalogy, a fuse is "set" or "programmed" if it is '0'.
It is "unset" or "unprogrammed" if it is a "1".  However, I think in
AVR Studio, a check mark on the fuse setting sets it to a "0", i.e.,
programs the fuse.

Look at the high fuse byte, specifically bit number 6.  If it is a
zero, then the JTAG debugging interface is enabled.  If it is a one,
then it is disabled.  It is enabled by default, so unless you disabled
it, it is most likely still enabled.  If it is enabled, then that
would most likely explain the problems with your program not getting
the expected results when using PORTF.

For more info, the "Memory Programming" section of the ATmega128
datasheet.  The high fuse byte is described on page 292 in the version
I have.

-Brian
-- 
Brian Dean
http://www.bdmicro.com/


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/AVR-Chat/
  
   To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


		
---------------------------------
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th

Re: [AVR-Chat] Re: keypad and mega64

2004-04-16 by erikc

A rank newbie has a question.  These "fuses" that you
mention, are they one-time programmable (like a real fuse)
or are they really something like an EEPROM cell that can be
set and cleared at will?

Erikc  - firewevr@airmail.net
///
"An Fhirinne in aghaidh an tSaoil."
"The Truth against the World."
        -- Bardic Motto


----- Original Message -----
From: "chris atwan" <chrisatwan2000@yahoo.com>
To: <AVR-Chat@yahoogroups.com>
Sent: Friday, April 16, 2004 14:48
Subject: Re: [AVR-Chat] Re: keypad and mega64


> Brian,
>
> I verified that the JTAGEN fuse is "1".  Any ideas??
>
> Chris Atwan
>
>
> Brian Dean <bsd@bdmicro.com> wrote:
> Hi Chris,
>
> On Fri, Apr 16, 2004 at 01:56:39AM -0000, chrisatwan2000
wrote:
>
> > I checked my fuses with AVR Studio and the following
fuses are set:
> >
> > BOOTSZ=11
> > BODLEVEL=1
> > CKSEL=1111 SUT=11
> >
> > Any ideas??
>
> The above fuses are in the low fuse byte.  You want to
look at the
> "high" fuse byte - the JTAGEN bit is bit number 6.
>
> In Atmel terminalogy, a fuse is "set" or "programmed" if
it is '0'.
> It is "unset" or "unprogrammed" if it is a "1".  However,
I think in
> AVR Studio, a check mark on the fuse setting sets it to a
"0", i.e.,
> programs the fuse.
>
> Look at the high fuse byte, specifically bit number 6.  If
it is a
> zero, then the JTAG debugging interface is enabled.  If it
is a one,
> then it is disabled.  It is enabled by default, so unless
you disabled
> it, it is most likely still enabled.  If it is enabled,
then that
> would most likely explain the problems with your program
not getting
> the expected results when using PORTF.
>
> For more info, the "Memory Programming" section of the
ATmega128
> datasheet.  The high fuse byte is described on page 292 in
the version
> I have.
>
> -Brian
> --
> Brian Dean
> http://www.bdmicro.com/
>
>
> ---------------------------------
> Yahoo! Groups Links
>
>    To visit your group on the web, go to:
> http://groups.yahoo.com/group/AVR-Chat/
>
>    To unsubscribe from this group, send an email to:
> AVR-Chat-unsubscribe@yahoogroups.com
>
>    Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.
Show quoted textHide quoted text
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Tax Center - File online by April 15th

Re: [AVR-Chat] More questions - was: Re: keypad and mega64

2004-04-16 by erikc

Thanks.  I'm just getting started in AVR so there's a lot
for me to learn.  My first project is to use an AT90S1200 to
read an incremental encoder and display its position on an
LED display.  Later on, I want to send that data to the
outside world; for that I will probably need an AT90S2313.
I've already done something like this with a 68HC11
(Motorola) but it wasn't useful because the 68HC11 could not
keep up with the encoder outputs.

Right now, though, I'm looking for something to program the
parts I have.  Any tips?

Erikc  - firewevr@airmail.net
///
"An Fhirinne in aghaidh an tSaoil."
"The Truth against the World."
        -- Bardic Motto


----- Original Message -----
From: "Mike Bronosky" <Mike@Bronosky.com>
To: <AVR-Chat@yahoogroups.com>
Sent: Friday, April 16, 2004 18:24
Subject: Re: [AVR-Chat] Re: keypad and mega64


> Can be set and cleared at will!
>
> ----- Original Message -----
> From: erikc <firewevr@airmail.net>
> To: <AVR-Chat@yahoogroups.com>
> Sent: Friday, April 16, 2004 11:53 AM
> Subject: Re: [AVR-Chat] Re: keypad and mega64
>
>
> > A rank newbie has a question.  These "fuses" that you
> > mention, are they one-time programmable (like a real
fuse)
> > or are they really something like an EEPROM cell that
can be
> > set and cleared at will?
> >
> > Erikc  - firewevr@airmail.net
> > ///
> > "An Fhirinne in aghaidh an tSaoil."
> > "The Truth against the World."
> >         -- Bardic Motto
> >
> >
> > ----- Original Message -----
> > From: "chris atwan" <chrisatwan2000@yahoo.com>
> > To: <AVR-Chat@yahoogroups.com>
> > Sent: Friday, April 16, 2004 14:48
> > Subject: Re: [AVR-Chat] Re: keypad and mega64
> >
> >
> > > Brian,
> > >
> > > I verified that the JTAGEN fuse is "1".  Any ideas??
> > >
> > > Chris Atwan
> > >
> > >
> > > Brian Dean <bsd@bdmicro.com> wrote:
> > > Hi Chris,
> > >
> > > On Fri, Apr 16, 2004 at 01:56:39AM -0000,
chrisatwan2000
> > wrote:
> > >
> > > > I checked my fuses with AVR Studio and the following
> > fuses are set:
> > > >
> > > > BOOTSZ=11
> > > > BODLEVEL=1
> > > > CKSEL=1111 SUT=11
> > > >
> > > > Any ideas??
> > >
> > > The above fuses are in the low fuse byte.  You want to
> > look at the
> > > "high" fuse byte - the JTAGEN bit is bit number 6.
> > >
> > > In Atmel terminalogy, a fuse is "set" or "programmed"
if
> > it is '0'.
> > > It is "unset" or "unprogrammed" if it is a "1".
However,
> > I think in
> > > AVR Studio, a check mark on the fuse setting sets it
to a
> > "0", i.e.,
> > > programs the fuse.
> > >
> > > Look at the high fuse byte, specifically bit number 6.
If
> > it is a
> > > zero, then the JTAG debugging interface is enabled.
If it
> > is a one,
> > > then it is disabled.  It is enabled by default, so
unless
> > you disabled
> > > it, it is most likely still enabled.  If it is
enabled,
> > then that
> > > would most likely explain the problems with your
program
> > not getting
> > > the expected results when using PORTF.
> > >
> > > For more info, the "Memory Programming" section of the
> > ATmega128
> > > datasheet.  The high fuse byte is described on page
292 in
Show quoted textHide quoted text
> > the version
> > > I have.
> > >
> > > -Brian
> > > --
> > > Brian Dean
> > > http://www.bdmicro.com/
> > >
> > >
> > > ---------------------------------
> > > Yahoo! Groups Links
> > >
> > >    To visit your group on the web, go to:
> > > http://groups.yahoo.com/group/AVR-Chat/
> > >
> > >    To unsubscribe from this group, send an email to:
> > > AVR-Chat-unsubscribe@yahoogroups.com
> > >
> > >    Your use of Yahoo! Groups is subject to the Yahoo!
> > Terms of Service.
> > >
> > >
> > >
> > > ---------------------------------
> > > Do you Yahoo!?
> > > Yahoo! Tax Center - File online by April 15th
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> > ---
> > [This E-mail scanned for viruses by Declude Virus]
> >
> >
>
> ---
> [This E-mail scanned for viruses by Declude Virus]
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>

Re: [AVR-Chat] Re: keypad and mega64

2004-04-16 by Mike Bronosky

Can be set and cleared at will!
Show quoted textHide quoted text
----- Original Message -----
From: erikc <firewevr@airmail.net>
To: <AVR-Chat@yahoogroups.com>
Sent: Friday, April 16, 2004 11:53 AM
Subject: Re: [AVR-Chat] Re: keypad and mega64


> A rank newbie has a question.  These "fuses" that you
> mention, are they one-time programmable (like a real fuse)
> or are they really something like an EEPROM cell that can be
> set and cleared at will?
>
> Erikc  - firewevr@airmail.net
> ///
> "An Fhirinne in aghaidh an tSaoil."
> "The Truth against the World."
>         -- Bardic Motto
>
>
> ----- Original Message -----
> From: "chris atwan" <chrisatwan2000@yahoo.com>
> To: <AVR-Chat@yahoogroups.com>
> Sent: Friday, April 16, 2004 14:48
> Subject: Re: [AVR-Chat] Re: keypad and mega64
>
>
> > Brian,
> >
> > I verified that the JTAGEN fuse is "1".  Any ideas??
> >
> > Chris Atwan
> >
> >
> > Brian Dean <bsd@bdmicro.com> wrote:
> > Hi Chris,
> >
> > On Fri, Apr 16, 2004 at 01:56:39AM -0000, chrisatwan2000
> wrote:
> >
> > > I checked my fuses with AVR Studio and the following
> fuses are set:
> > >
> > > BOOTSZ=11
> > > BODLEVEL=1
> > > CKSEL=1111 SUT=11
> > >
> > > Any ideas??
> >
> > The above fuses are in the low fuse byte.  You want to
> look at the
> > "high" fuse byte - the JTAGEN bit is bit number 6.
> >
> > In Atmel terminalogy, a fuse is "set" or "programmed" if
> it is '0'.
> > It is "unset" or "unprogrammed" if it is a "1".  However,
> I think in
> > AVR Studio, a check mark on the fuse setting sets it to a
> "0", i.e.,
> > programs the fuse.
> >
> > Look at the high fuse byte, specifically bit number 6.  If
> it is a
> > zero, then the JTAG debugging interface is enabled.  If it
> is a one,
> > then it is disabled.  It is enabled by default, so unless
> you disabled
> > it, it is most likely still enabled.  If it is enabled,
> then that
> > would most likely explain the problems with your program
> not getting
> > the expected results when using PORTF.
> >
> > For more info, the "Memory Programming" section of the
> ATmega128
> > datasheet.  The high fuse byte is described on page 292 in
> the version
> > I have.
> >
> > -Brian
> > --
> > Brian Dean
> > http://www.bdmicro.com/
> >
> >
> > ---------------------------------
> > Yahoo! Groups Links
> >
> >    To visit your group on the web, go to:
> > http://groups.yahoo.com/group/AVR-Chat/
> >
> >    To unsubscribe from this group, send an email to:
> > AVR-Chat-unsubscribe@yahoogroups.com
> >
> >    Your use of Yahoo! Groups is subject to the Yahoo!
> Terms of Service.
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! Tax Center - File online by April 15th
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
> ---
> [This E-mail scanned for viruses by Declude Virus]
>
>

---
[This E-mail scanned for viruses by Declude Virus]

Re: [AVR-Chat] Re: keypad and mega64

2004-04-16 by John Johnson

If there is a check mark in the box, the fuse is set. It is also "0".

Regards,
   JJ
Show quoted textHide quoted text
On Friday, Apr 16, 2004, at 09:09 US/Eastern, chrisatwan2000 wrote:

> I thought looking at the fuses in AVR Studio was the way to check
> what fuses were set.  How do I check to see what fuses are set "0"
> and what fuses are not set "1"?
>
> Chris Atwan
>
> --- In AVR-Chat@yahoogroups.com, Brian Dean <bsd@b...> wrote:
>> Hi Chris,
>>
>> On Fri, Apr 16, 2004 at 01:56:39AM -0000, chrisatwan2000 wrote:
>>
>>> I checked my fuses with AVR Studio and the following fuses are
> set:
>>>
>>> BOOTSZ=11
>>> BODLEVEL=1
>>> CKSEL=1111 SUT=11
>>>
>>> Any ideas??
>>
>> The above fuses are in the low fuse byte.  You want to look at the
>> "high" fuse byte - the JTAGEN bit is bit number 6.
>>
>> In Atmel terminalogy, a fuse is "set" or "programmed" if it is '0'.
>> It is "unset" or "unprogrammed" if it is a "1".  However, I think
> in
>> AVR Studio, a check mark on the fuse setting sets it to a "0",
> i.e.,
>> programs the fuse.
>>
>> Look at the high fuse byte, specifically bit number 6.  If it is a
>> zero, then the JTAG debugging interface is enabled.  If it is a
> one,
>> then it is disabled.  It is enabled by default, so unless you
> disabled
>> it, it is most likely still enabled.  If it is enabled, then that
>> would most likely explain the problems with your program not
> getting
>> the expected results when using PORTF.
>>
>> For more info, the "Memory Programming" section of the ATmega128
>> datasheet.  The high fuse byte is described on page 292 in the
> version
>> I have.
>>
>> -Brian
>> --  
>> Brian Dean
>> http://www.bdmicro.com/
>
>
>
> ------------------------ Yahoo! Groups Sponsor  
> ---------------------~-->
> Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
> Printer at MyInks.com.  Free s/h on orders $50 or more to the US &  
> Canada.
> http://www.c1tracking.com/l.asp?cid=5511
> http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/dN_tlB/TM
> --------------------------------------------------------------------- 
> ~->
>
>
> Yahoo! Groups Links
>
>
>
>
>

Re: [AVR-Chat] Re: keypad and mega64

2004-04-16 by John Johnson

Don't some of them have to be cleared by erasing the chip and eeprom?
Are there some that can only be cleared using high-voltage parallel 
programming?

Regards,
   JJ
Show quoted textHide quoted text
On Friday, Apr 16, 2004, at 13:24 US/Eastern, Mike Bronosky wrote:

> Can be set and cleared at will!
>
> ----- Original Message -----
> From: erikc <firewevr@airmail.net>
> To: <AVR-Chat@yahoogroups.com>
> Sent: Friday, April 16, 2004 11:53 AM
> Subject: Re: [AVR-Chat] Re: keypad and mega64
>
>
>> A rank newbie has a question.  These "fuses" that you
>> mention, are they one-time programmable (like a real fuse)
>> or are they really something like an EEPROM cell that can be
>> set and cleared at will?
>>
>> Erikc  - firewevr@airmail.net
>> ///
>> "An Fhirinne in aghaidh an tSaoil."
>> "The Truth against the World."
>>         -- Bardic Motto
>>
>>
>> ----- Original Message -----
>> From: "chris atwan" <chrisatwan2000@yahoo.com>
>> To: <AVR-Chat@yahoogroups.com>
>> Sent: Friday, April 16, 2004 14:48
>> Subject: Re: [AVR-Chat] Re: keypad and mega64
>>
>>
>>> Brian,
>>>
>>> I verified that the JTAGEN fuse is "1".  Any ideas??
>>>
>>> Chris Atwan
>>>
>>>
>>> Brian Dean <bsd@bdmicro.com> wrote:
>>> Hi Chris,
>>>
>>> On Fri, Apr 16, 2004 at 01:56:39AM -0000, chrisatwan2000
>> wrote:
>>>
>>>> I checked my fuses with AVR Studio and the following
>> fuses are set:
>>>>
>>>> BOOTSZ=11
>>>> BODLEVEL=1
>>>> CKSEL=1111 SUT=11
>>>>
>>>> Any ideas??
>>>
>>> The above fuses are in the low fuse byte.  You want to
>> look at the
>>> "high" fuse byte - the JTAGEN bit is bit number 6.
>>>
>>> In Atmel terminalogy, a fuse is "set" or "programmed" if
>> it is '0'.
>>> It is "unset" or "unprogrammed" if it is a "1".  However,
>> I think in
>>> AVR Studio, a check mark on the fuse setting sets it to a
>> "0", i.e.,
>>> programs the fuse.
>>>
>>> Look at the high fuse byte, specifically bit number 6.  If
>> it is a
>>> zero, then the JTAG debugging interface is enabled.  If it
>> is a one,
>>> then it is disabled.  It is enabled by default, so unless
>> you disabled
>>> it, it is most likely still enabled.  If it is enabled,
>> then that
>>> would most likely explain the problems with your program
>> not getting
>>> the expected results when using PORTF.
>>>
>>> For more info, the "Memory Programming" section of the
>> ATmega128
>>> datasheet.  The high fuse byte is described on page 292 in
>> the version
>>> I have.
>>>
>>> -Brian
>>> --
>>> Brian Dean
>>> http://www.bdmicro.com/
>>>
>>>
>>> ---------------------------------
>>> Yahoo! Groups Links
>>>
>>>    To visit your group on the web, go to:
>>> http://groups.yahoo.com/group/AVR-Chat/
>>>
>>>    To unsubscribe from this group, send an email to:
>>> AVR-Chat-unsubscribe@yahoogroups.com
>>>
>>>    Your use of Yahoo! Groups is subject to the Yahoo!
>> Terms of Service.
>>>
>>>
>>>
>>> ---------------------------------
>>> Do you Yahoo!?
>>> Yahoo! Tax Center - File online by April 15th
>>
>>
>>
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>> ---
>> [This E-mail scanned for viruses by Declude Virus]
>>
>>
>
> ---
> [This E-mail scanned for viruses by Declude Virus]
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>

Re: [AVR-Chat] More questions - was: Re: keypad and mega64

2004-04-16 by John Johnson

This works for me:
http://www.xs4all.nl/~sbp/projects/stk200/stk200.htm
as does this:
http://www.dontronics.com/graphics/sample.gif (everything to the left 
of "8 header").
and if you have a little money, this:
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2735

Regards,
   JJ
Show quoted textHide quoted text
On Friday, Apr 16, 2004, at 12:56 US/Eastern, erikc wrote:

> Thanks.  I'm just getting started in AVR so there's a lot
> for me to learn.  My first project is to use an AT90S1200 to
> read an incremental encoder and display its position on an
> LED display.  Later on, I want to send that data to the
> outside world; for that I will probably need an AT90S2313.
> I've already done something like this with a 68HC11
> (Motorola) but it wasn't useful because the 68HC11 could not
> keep up with the encoder outputs.
>
> Right now, though, I'm looking for something to program the
> parts I have.  Any tips?
>
> Erikc  - firewevr@airmail.net
> ///
> "An Fhirinne in aghaidh an tSaoil."
> "The Truth against the World."
>         -- Bardic Motto
>
>
> ----- Original Message -----
> From: "Mike Bronosky" <Mike@Bronosky.com>
> To: <AVR-Chat@yahoogroups.com>
> Sent: Friday, April 16, 2004 18:24
> Subject: Re: [AVR-Chat] Re: keypad and mega64
>
>
>> Can be set and cleared at will!
>>
>> ----- Original Message -----
>> From: erikc <firewevr@airmail.net>
>> To: <AVR-Chat@yahoogroups.com>
>> Sent: Friday, April 16, 2004 11:53 AM
>> Subject: Re: [AVR-Chat] Re: keypad and mega64
>>
>>
>>> A rank newbie has a question.  These "fuses" that you
>>> mention, are they one-time programmable (like a real
> fuse)
>>> or are they really something like an EEPROM cell that
> can be
>>> set and cleared at will?
>>>
>>> Erikc  - firewevr@airmail.net
>>> ///
>>> "An Fhirinne in aghaidh an tSaoil."
>>> "The Truth against the World."
>>>         -- Bardic Motto
>>>
>>>
>>> ----- Original Message -----
>>> From: "chris atwan" <chrisatwan2000@yahoo.com>
>>> To: <AVR-Chat@yahoogroups.com>
>>> Sent: Friday, April 16, 2004 14:48
>>> Subject: Re: [AVR-Chat] Re: keypad and mega64
>>>
>>>
>>>> Brian,
>>>>
>>>> I verified that the JTAGEN fuse is "1".  Any ideas??
>>>>
>>>> Chris Atwan
>>>>
>>>>
>>>> Brian Dean <bsd@bdmicro.com> wrote:
>>>> Hi Chris,
>>>>
>>>> On Fri, Apr 16, 2004 at 01:56:39AM -0000,
> chrisatwan2000
>>> wrote:
>>>>
>>>>> I checked my fuses with AVR Studio and the following
>>> fuses are set:
>>>>>
>>>>> BOOTSZ=11
>>>>> BODLEVEL=1
>>>>> CKSEL=1111 SUT=11
>>>>>
>>>>> Any ideas??
>>>>
>>>> The above fuses are in the low fuse byte.  You want to
>>> look at the
>>>> "high" fuse byte - the JTAGEN bit is bit number 6.
>>>>
>>>> In Atmel terminalogy, a fuse is "set" or "programmed"
> if
>>> it is '0'.
>>>> It is "unset" or "unprogrammed" if it is a "1".
> However,
>>> I think in
>>>> AVR Studio, a check mark on the fuse setting sets it
> to a
>>> "0", i.e.,
>>>> programs the fuse.
>>>>
>>>> Look at the high fuse byte, specifically bit number 6.
> If
>>> it is a
>>>> zero, then the JTAG debugging interface is enabled.
> If it
>>> is a one,
>>>> then it is disabled.  It is enabled by default, so
> unless
>>> you disabled
>>>> it, it is most likely still enabled.  If it is
> enabled,
>>> then that
>>>> would most likely explain the problems with your
> program
>>> not getting
>>>> the expected results when using PORTF.
>>>>
>>>> For more info, the "Memory Programming" section of the
>>> ATmega128
>>>> datasheet.  The high fuse byte is described on page
> 292 in
>>> the version
>>>> I have.
>>>>
>>>> -Brian
>>>> --
>>>> Brian Dean
>>>> http://www.bdmicro.com/
>>>>
>>>>
>>>> ---------------------------------
>>>> Yahoo! Groups Links
>>>>
>>>>    To visit your group on the web, go to:
>>>> http://groups.yahoo.com/group/AVR-Chat/
>>>>
>>>>    To unsubscribe from this group, send an email to:
>>>> AVR-Chat-unsubscribe@yahoogroups.com
>>>>
>>>>    Your use of Yahoo! Groups is subject to the Yahoo!
>>> Terms of Service.
>>>>
>>>>
>>>>
>>>> ---------------------------------
>>>> Do you Yahoo!?
>>>> Yahoo! Tax Center - File online by April 15th
>>>
>>>
>>>
>>>
>>>
>>> Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
>>> ---
>>> [This E-mail scanned for viruses by Declude Virus]
>>>
>>>
>>
>> ---
>> [This E-mail scanned for viruses by Declude Virus]
>>
>>
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>

Re: [AVR-Chat] Re: keypad and mega64

2004-04-16 by Brian Dean

On Fri, Apr 16, 2004 at 06:48:31AM -0700, chris atwan wrote:

> I verified that the JTAGEN fuse is "1".  Any ideas??

Is there any way in AVR Studio to print out the 8-bit hex value of all
the fuse bytes?  There are three - the Extended Fuse, High Fuse, and
Low Fuse.

I'm asking these questions to ensure that the fuse bits are set
appropriately.  Due to the "programmed=0" and "unprogrammed=1"
semantics, and AVR Studio's "checked=0", and "unchecked=1" - it is
sometimes not clear what their actual settings are.

In AVR Studio, is the check-box for the JTAGEN fuse checked or
unchecked?

If it is "unchecked", your problem lies elsewhere.  If it is
"checked", then uncheck it, apply the new fuse bit settings, and try
your keypad interface code again.  I'm assuming you are not actually
using a JTAGICE programmer/debugger.  If you are, then you are stuck -
you can't use the upper nibble of PORTF since it is being used for the
JTAG interface.

-Brian
-- 
Brian Dean
http://www.bdmicro.com/

Re: [AVR-Chat] More questions - was: Re: keypad and mega64

2004-04-16 by erikc

Thanks.  Nr 2 looks best for me since I do not plan to
attempt in-circuit programming at this point in time.  I
assume that this is compatable with AVR studio?

Erikc  - firewevr@airmail.net
///
"An Fhirinne in aghaidh an tSaoil."
"The Truth against the World."
        -- Bardic Motto


----- Original Message -----
From: "John Johnson" <johnatl@mac.com>
To: <AVR-Chat@yahoogroups.com>
Sent: Friday, April 16, 2004 23:07
Subject: Re: [AVR-Chat] More questions - was: Re: keypad and
mega64


> This works for me:
> http://www.xs4all.nl/~sbp/projects/stk200/stk200.htm
> as does this:
> http://www.dontronics.com/graphics/sample.gif (everything
to the left
> of "8 header").
> and if you have a little money, this:
>
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=273
5
>
> Regards,
>    JJ
>
> On Friday, Apr 16, 2004, at 12:56 US/Eastern, erikc wrote:
>
> > Thanks.  I'm just getting started in AVR so there's a
lot
> > for me to learn.  My first project is to use an
AT90S1200 to
> > read an incremental encoder and display its position on
an
> > LED display.  Later on, I want to send that data to the
> > outside world; for that I will probably need an
AT90S2313.
> > I've already done something like this with a 68HC11
> > (Motorola) but it wasn't useful because the 68HC11 could
not
> > keep up with the encoder outputs.
> >
> > Right now, though, I'm looking for something to program
the
> > parts I have.  Any tips?
> >
> > Erikc  - firewevr@airmail.net
> > ///
> > "An Fhirinne in aghaidh an tSaoil."
> > "The Truth against the World."
> >         -- Bardic Motto
> >
> >
> > ----- Original Message -----
> > From: "Mike Bronosky" <Mike@Bronosky.com>
> > To: <AVR-Chat@yahoogroups.com>
> > Sent: Friday, April 16, 2004 18:24
> > Subject: Re: [AVR-Chat] Re: keypad and mega64
> >
> >
> >> Can be set and cleared at will!
> >>
> >> ----- Original Message -----
> >> From: erikc <firewevr@airmail.net>
> >> To: <AVR-Chat@yahoogroups.com>
> >> Sent: Friday, April 16, 2004 11:53 AM
> >> Subject: Re: [AVR-Chat] Re: keypad and mega64
> >>
> >>
> >>> A rank newbie has a question.  These "fuses" that you
> >>> mention, are they one-time programmable (like a real
> > fuse)
> >>> or are they really something like an EEPROM cell that
> > can be
> >>> set and cleared at will?
> >>>
> >>> Erikc  - firewevr@airmail.net
> >>> ///
> >>> "An Fhirinne in aghaidh an tSaoil."
> >>> "The Truth against the World."
> >>>         -- Bardic Motto
> >>>
> >>>
> >>> ----- Original Message -----
> >>> From: "chris atwan" <chrisatwan2000@yahoo.com>
> >>> To: <AVR-Chat@yahoogroups.com>
> >>> Sent: Friday, April 16, 2004 14:48
> >>> Subject: Re: [AVR-Chat] Re: keypad and mega64
> >>>
> >>>
> >>>> Brian,
> >>>>
> >>>> I verified that the JTAGEN fuse is "1".  Any ideas??
> >>>>
> >>>> Chris Atwan
> >>>>
> >>>>
> >>>> Brian Dean <bsd@bdmicro.com> wrote:
> >>>> Hi Chris,
> >>>>
> >>>> On Fri, Apr 16, 2004 at 01:56:39AM -0000,
> > chrisatwan2000
> >>> wrote:
> >>>>
> >>>>> I checked my fuses with AVR Studio and the following
> >>> fuses are set:
> >>>>>
> >>>>> BOOTSZ=11
> >>>>> BODLEVEL=1
> >>>>> CKSEL=1111 SUT=11
> >>>>>
> >>>>> Any ideas??
> >>>>
> >>>> The above fuses are in the low fuse byte.  You want
to
> >>> look at the
> >>>> "high" fuse byte - the JTAGEN bit is bit number 6.
> >>>>
> >>>> In Atmel terminalogy, a fuse is "set" or "programmed"
> > if
> >>> it is '0'.
> >>>> It is "unset" or "unprogrammed" if it is a "1".
> > However,
> >>> I think in
> >>>> AVR Studio, a check mark on the fuse setting sets it
> > to a
> >>> "0", i.e.,
> >>>> programs the fuse.
> >>>>
> >>>> Look at the high fuse byte, specifically bit number
6.
> > If
> >>> it is a
> >>>> zero, then the JTAG debugging interface is enabled.
> > If it
> >>> is a one,
> >>>> then it is disabled.  It is enabled by default, so
> > unless
> >>> you disabled
> >>>> it, it is most likely still enabled.  If it is
> > enabled,
> >>> then that
> >>>> would most likely explain the problems with your
> > program
> >>> not getting
> >>>> the expected results when using PORTF.
> >>>>
> >>>> For more info, the "Memory Programming" section of
the
> >>> ATmega128
> >>>> datasheet.  The high fuse byte is described on page
> > 292 in
> >>> the version
> >>>> I have.
> >>>>
> >>>> -Brian
> >>>> --
> >>>> Brian Dean
> >>>> http://www.bdmicro.com/
> >>>>
> >>>>
> >>>> ---------------------------------
> >>>> Yahoo! Groups Links
> >>>>
> >>>>    To visit your group on the web, go to:
> >>>> http://groups.yahoo.com/group/AVR-Chat/
> >>>>
> >>>>    To unsubscribe from this group, send an email to:
> >>>> AVR-Chat-unsubscribe@yahoogroups.com
> >>>>
> >>>>    Your use of Yahoo! Groups is subject to the Yahoo!
> >>> Terms of Service.
> >>>>
> >>>>
> >>>>
> >>>> ---------------------------------
> >>>> Do you Yahoo!?
> >>>> Yahoo! Tax Center - File online by April 15th
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> Yahoo! Groups Links
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> ---
> >>> [This E-mail scanned for viruses by Declude Virus]
> >>>
> >>>
> >>
> >> ---
> >> [This E-mail scanned for viruses by Declude Virus]
> >>
> >>
> >>
> >>
> >> Yahoo! Groups Links
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
>
>
>
> ------------------------ Yahoo! Groups
Sponsor ---------------------~-->
> Buy Ink Cartridges or Refill Kits for your HP, Epson,
Canon or Lexmark
> Printer at MyInks.com.  Free s/h on orders $50 or more to
the US & Canada.
> http://www.c1tracking.com/l.asp?cid=5511
> http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/dN_tlB/TM
> ----------------------------------------------------------
-----------~->
Show quoted textHide quoted text
>
>
> Yahoo! Groups Links
>
>
>
>
>

Re: [AVR-Chat] Re: keypad and mega64

2004-04-18 by jay marante

open you're AVRstudio and go to advance and click READ SIGNATURE. that will detect your STK500 and detect what chip is plug into it. then go to FUSES and you will see what fuses are set and not set in the chip you plug into the STK.
:)
 
-jay

John Johnson <johnatl@mac.com> wrote:
If there is a check mark in the box, the fuse is set. It is also "0".

Regards,
   JJ

On Friday, Apr 16, 2004, at 09:09 US/Eastern, chrisatwan2000 wrote:

> I thought looking at the fuses in AVR Studio was the way to check
> what fuses were set.  How do I check to see what fuses are set "0"
> and what fuses are not set "1"?
>
> Chris Atwan
>
> --- In AVR-Chat@yahoogroups.com, Brian Dean <bsd@b...> wrote:
>> Hi Chris,
>>
>> On Fri, Apr 16, 2004 at 01:56:39AM -0000, chrisatwan2000 wrote:
>>
>>> I checked my fuses with AVR Studio and the following fuses are
> set:
>>>
>>> BOOTSZ=11
>>> BODLEVEL=1
>>> CKSEL=1111 SUT=11
>>>
>>> Any ideas??
>>
>> The above fuses are in the low fuse byte.  You want to look at the
>> "high" fuse byte - the JTAGEN bit is bit number 6.
>>
>> In Atmel terminalogy, a fuse is "set" or "programmed" if it is '0'.
>> It is "unset" or "unprogrammed" if it is a "1".  However, I think
> in
>> AVR Studio, a check mark on the fuse setting sets it to a "0",
> i.e.,
>> programs the fuse.
>>
>> Look at the high fuse byte, specifically bit number 6.  If it is a
>> zero, then the JTAG debugging interface is enabled.  If it is a
> one,
>> then it is disabled.  It is enabled by default, so unless you
> disabled
>> it, it is most likely still enabled.  If it is enabled, then that
>> would most likely explain the problems with your program not
> getting
>> the expected results when using PORTF.
>>
>> For more info, the "Memory Programming" section of the ATmega128
>> datasheet.  The high fuse byte is described on page 292 in the
> version
>> I have.
>>
>> -Brian
>> --  
>> Brian Dean
>> http://www.bdmicro.com/
>
>
>
> ------------------------ Yahoo! Groups Sponsor  
> ---------------------~-->
> Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
> Printer at MyInks.com.  Free s/h on orders $50 or more to the US &  
> Canada.
> http://www.c1tracking.com/l.asp?cid=5511
> http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/dN_tlB/TM
> --------------------------------------------------------------------- 
> ~->
>
>
> Yahoo! Groups Links
>
>
>
>
>


Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/AVR-Chat/
  
   To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


		
---------------------------------
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25�

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.