Re: [AVR-Chat] Digest Number 1313
2006-03-04 by Shibu Krishnan
hi geeks,
we had recently bought a new AVR MP3 Developement kit. i would like to know abt how to burn the chip, we have got only usb port. we tried out with FLIP. but it is giving lot of problems. do any of u people have some idea? then pls help me to solve the problem.
thanking you.
shibu,
AVR-Chat@yahoogroups.com wrote:
AVR-Chat@yahoogroups.com wrote:
Show quoted textHide quoted text
There are 5 messages in this issue.
Topics in this digest:
1. Re: plz help me
From: kelvin kooger
2. RE: Bi-Colour LED coontrol with one pin?
From: "Roy"
3. Butterfly (ATMega169?) programming problem.
From: "catalin_cluj"
4. Re: Bi-Colour LED coontrol with one pin?
From: Peter Gargano
5. Re: Bi-Colour LED coontrol with one pin?
From: kholt@sonic.net
________________________________________________________________________
________________________________________________________________________
Message: 1
Date: Thu, 2 Mar 2006 19:09:20 -0800 (PST)
From: kelvin kooger
Subject: Re: plz help me
First I must say that I am expert in BASCOM.
Is the syntax on config lcd correct ? * 1a ....... hex ?
G Teh Boy wrote:
hi
i can not this program compileing with BASCOM plz help me
$regfile = "m8535.dat"
' we use internal osc 8000000 for atmega8535
$crystal = 8000000
Config Lcdpin = Pin , Db4 = Pinc.3 , Db5 = Pinc.2 , Db6 = Pinc.1 , Db7 = Pinc.0 , E = Pinc.5 , Rs = Pinc.4
Config Lcd = 16 * 1a
Config Adc = Single , Prescaler = Auto
Deflcdchar 0 , 24 , 24 , 32 , 32 , 32 , 32 , 32 , 32 'we replace ? with number 0
Dim W As Word , Channel As Byte
Start Adc
Cursor Off
Do
W = Getadc(0)
W = W / 2
Home
Lcd W ; Chr(0) ; "C"
Waitms 100
Select Case W
Case Is =< 10 :
Cls
Home L
Lcd " Low"
Case 11 To 34 :
Cls
Home L
Lcd " Normal"
Case Is >= 35
Cls
Home L
Lcd " High"
End Select 'end program select
Loop
End
compiling give this erorr
Error : 202 Line : 6 .EQU not found, probably using functions that are not supported by the selected chip [ADCSR] , in File : C:\NONAME1.BAS
Error : 1 Line : 9 Unknown statement [.EQU not found for:ADCSR] , in File : C:\NONAME1.BAS
Error : 1 Line : 33 Unknown statement [.EQU not found for:ADCSR] , in File : C:\NONAME1.BAS
Error : 1 Line : 33 Unknown statement [.EQU not found for:ADCSR] , in File : C:\NONAME1.BAS
Error : 1 Line : 33 Unknown statement [.EQU not found for:ADCSR] , in File : C:\NONAME1.BAS
Error : 1 Line : 33 Unknown statement [.EQU not found for:ADCSR] , in File : C:\NONAME1.BAS
---------------------------------
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "AVR-Chat" on the web.
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.
---------------------------------
---------------------------------
Yahoo! Mail
Use Photomail to share photos without annoying attachments.
[This message contained attachments]
________________________________________________________________________
________________________________________________________________________
Message: 2
Date: Fri, 3 Mar 2006 20:27:50 +1300
From: "Roy"
Subject: RE: Bi-Colour LED coontrol with one pin?
See attached WORD file of the Switcher CAD III plot of the circuit
below.
_______________________________________
Roy Hopkins
22 Grenada Street
Tauranga
New Zealand
_______________________________________
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On
Behalf Of Russell Shaw
Sent: Thursday, 2 March 2006 7:44 p.m.
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] Bi-Colour LED coontrol with one pin?
Peter Gargano wrote:
> I can't figure this out simply. I'm sure there is a simple solution
> tho'. Chip is the Mega-168 that I want to add an extra function to.
>
> Assume I have either a two or three pin bi-colour LED (ie. either back
> to back LEDs with two pins, or two LEDs with a common pin).
>
> I have a single pin on an AVR processor that can either be LOW, HIGH,
> or Tri-state.
>
> I want to drive the LEDs either both OFF, one on, or the other on, but
> NOT both on.
>
> SO, I have three states the pin can be in, and three states for the
> LED to be in.
>
+5VCC
--+----------+--
| |
AVR |c NPN >
---+ LEDs \|b__ < 10k
| +-->|---+ /| | >
|pin | | 220ohms |e | |
+-----+ +-----\/\/\-------+ +----+
| | | |e | |
| +--|<---+ \|b__| >
---+ /| < 10k
|c PNP >
| |
----+----------+---- GND
_____
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.1.1/272 - Release Date: 1/03/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.1.1/272 - Release Date: 1/03/2006
[This message contained attachments]
________________________________________________________________________
________________________________________________________________________
Message: 3
Date: Fri, 03 Mar 2006 05:10:09 -0000
From: "catalin_cluj"
Subject: Butterfly (ATMega169?) programming problem.
Hi,
I've been succesfully building hex files with WinAVR and programming
them with AVR Studio 4 (and the original Butterfly bootloader)... until
the cable broke in the middle of programming.
Now, I can still program, but verification fails:
"Address: 0x0000, Expected: 0x940c, Received: 0x2121"
and nothing runs...
What's happenning, why that address?
I thought if 0x0000 is toast, the bootloader shouldn't work either...
nothing should work.
Obviously, something still works, as pushing the button down allows
AvrProg to connect, and program.
Is it toast? Would ISP programming fix it?
Thank yo,
Cat
________________________________________________________________________
________________________________________________________________________
Message: 4
Date: Sat, 04 Mar 2006 03:29:33 +1100
From: Peter Gargano
Subject: Re: Bi-Colour LED coontrol with one pin?
Roy wrote:
> See attached WORD file of the Switcher CAD III plot of the circuit below.
Thanks Roy for the analysis info.
> *From:* *Russell Shaw
Thanks Russell for the original circuit.
One problem of course is getting enough current to drive the LEDs to a
reasonable brightness. This is mostly due to having them run from what
is effectively a 2.5 Volt rail. Differences in brightness between red
and green LEDs because of different operating voltages is also
exacerbated.
I'm leaning towards using a shift register like the 74HC595 and
sending it data via the SPI - in my current design this allows me to
control up to 8 LEDs with just the original extra pin! And it takes
about the same PCB real estate too.
Peter
.
________________________________________________________________________
________________________________________________________________________
Message: 5
Date: Fri, 3 Mar 2006 10:52:39 -0800 (PST)
From: kholt@sonic.net
Subject: Re: Bi-Colour LED coontrol with one pin?
You could offset the 2.5V to favor the green LED; however
I have found that most red/green modules have very poor
response in the green LED, no matter what you do. If you
have the space, you could put two separate LEDs back-to-back.
Although you might like to use a truer green color, you are
probably stuck with the awful yellowish-green because of the
lower forward voltage.
Ken
> Roy wrote:
>> See attached WORD file of the Switcher CAD III plot of the circuit
>> below.
>
> Thanks Roy for the analysis info.
>
>> *From:* *Russell Shaw
>
> Thanks Russell for the original circuit.
>
> One problem of course is getting enough current to drive the LEDs to a
> reasonable brightness. This is mostly due to having them run from what
> is effectively a 2.5 Volt rail. Differences in brightness between red
> and green LEDs because of different operating voltages is also
> exacerbated.
>
> I'm leaning towards using a shift register like the 74HC595 and
> sending it data via the SPI - in my current design this allows me to
> control up to 8 LEDs with just the original extra pin! And it takes
> about the same PCB real estate too.
>
> Peter
>
>
>
>
>
>
> .
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
________________________________________________________________________
________________________________________________________________________
------------------------------------------------------------------------
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:
http://docs.yahoo.com/info/terms/
------------------------------------------------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.