Yahoo Groups archive

AVR-Chat

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

Thread

Re: [AVR-Chat] help

Re: [AVR-Chat] help

2008-09-12 by hashem Yaghobnejad

Hello My Friend.
where are you from ? I 'm iranian . 
your problem is very simple : 
you can connect Temp. sensor to ADC(0) , and active them Registers : 
//////////////////////////////////////////// codevision Avr : 
// ADC Function:
unsigned int read_adc(unsigned char adc_input)
{
ADMUX=adc_input 
ADCSRA|=0x40;
while ((ADCSRA & 0x10)==0);
return ADCW;
} 
void main()
{
int adc;
char str[10];
// ADC Clock frequency: 125.000 kHz
ADMUX=0x00;
ADCSRA=0x83;
    while(1)
   {
    adc=read_adc(0);
    itoa(adc,str);
    lcd_puts(str);
    delay_ms(200);
    lcd_clear();
    }
///////////////////////////////////////////////////
GoodLuck My Friend . 


      

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

Re: SPI Chip select question.

2008-09-16 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "Stevej" <stevelists@...> wrote:
>Do you have a suggestion for what decoder to use?
The 74xx138 is a common 1-of-8 decoder.  An alternative is the 74xx139
is a dual 1-of-4 decoder.

The xx in the notation above is the logic family indicator, e.g. LS,
HC, HCT, etc. depending on your needs.

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

SPI Chip select question.

2008-09-16 by Stevej

I am new to this list, and new to the AVR processors, but not new to
imbedded computers.

I will be using an AtMega128 in a project and want to use the SPI to drive a
quad D/A converter (the MAX537) and a couple of DDS chip (the AD9834).  I
want to use PB 6 and 7 to do the selecting of which SPI slave I want to use
by rerouting the SS line to the appropriate slave chip.  I know I can do
this with discrete logic, but does anyone know of a really slick way of
doing this with minimal parts count?  I want to use the two PB lines to be
able to eventually select one of 4 slave chips.

I will be using CVAVR to do the programming.

Thanks for your input.  Any advice will be appreciated.

Steve Jacobson

Re: [AVR-Chat] SPI Chip select question.

2008-09-16 by Jim Wagner

On Sep 15, 2008, at 6:26 PM, Stevej wrote:

> I am new to this list, and new to the AVR processors, but not new to
> imbedded computers.
>
> I will be using an AtMega128 in a project and want to use the SPI to  
> drive a
> quad D/A converter (the MAX537) and a couple of DDS chip (the  
> AD9834). I
> want to use PB 6 and 7 to do the selecting of which SPI slave I want  
> to use
> by rerouting the SS line to the appropriate slave chip. I know I can  
> do
> this with discrete logic, but does anyone know of a really slick way  
> of
> doing this with minimal parts count? I want to use the two PB lines  
> to be
> able to eventually select one of 4 slave chips.
>
> I will be using CVAVR to do the programming.
>
> Thanks for your input. Any advice will be appreciated.
>
> Steve Jacobson
>
>
> 
What I do is forget about the SS pin. It is really for use as an  
enable input as a slave.

I also use a 3->8 (active low output) decoder. Reserve one output for  
nothing enabled. That leaves you seven pins for slave enables at a  
cost of 3 port pins. You can probably get them as SO-16 (3 in, 10 out,  
enable in, 2 supply pins) so they are  not big, don't take much power,  
and easy to use.

Jim Wagner
Oregon Research Electronics





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

RE: [AVR-Chat] SPI Chip select question.

2008-09-16 by Stevej

Jim,

Thanks.  Do you have a suggestion for what decoder to use?

Steve
Show quoted textHide quoted text
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Jim Wagner
Sent: Monday, September 15, 2008 9:49 PM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] SPI Chip select question.


On Sep 15, 2008, at 6:26 PM, Stevej wrote:

> I am new to this list, and new to the AVR processors, but not new to
> imbedded computers.
>
> I will be using an AtMega128 in a project and want to use the SPI to  
> drive a
> quad D/A converter (the MAX537) and a couple of DDS chip (the  
> AD9834). I
> want to use PB 6 and 7 to do the selecting of which SPI slave I want  
> to use
> by rerouting the SS line to the appropriate slave chip. I know I can  
> do
> this with discrete logic, but does anyone know of a really slick way  
> of
> doing this with minimal parts count? I want to use the two PB lines  
> to be
> able to eventually select one of 4 slave chips.
>
> I will be using CVAVR to do the programming.
>
> Thanks for your input. Any advice will be appreciated.
>
> Steve Jacobson
>
>
> 
What I do is forget about the SS pin. It is really for use as an  
enable input as a slave.

I also use a 3->8 (active low output) decoder. Reserve one output for  
nothing enabled. That leaves you seven pins for slave enables at a  
cost of 3 port pins. You can probably get them as SO-16 (3 in, 10 out,  
enable in, 2 supply pins) so they are  not big, don't take much power,  
and easy to use.

Jim Wagner
Oregon Research Electronics





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


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

Yahoo! Groups Links

OT: Beadboarding SO chips

2008-09-16 by Stevej

Does anyone know of a good way to socket SO type chips (like SOIC-16)?  I
like to use DIP packages because they are easier to use for breadboarding
(if I do a PC board, I can substitute the SO package for the DIP package),
but more and more chips are coming out only in the SO packages.

How do you breadboard using SO package chips?

Thanks,

Steve Jacobson

Re: [AVR-Chat] OT: Beadboarding SO chips

2008-09-16 by Tim Gilbert

Steve,
Digikey and others sell a smd-to-through hole pcb that is just a bit larger than the chip.

Regards,


Tim Gilbert
JEM Innovation Inc.
303-926-9053 (office)
303-437-4342 (cell)
720-890-8582 (fax)
www.jeminnovation.com
www.pdksolutions.com
Show quoted textHide quoted text
  ----- Original Message ----- 
  From: Stevej 
  To: AVR-Chat@yahoogroups.com 
  Sent: Monday, September 15, 2008 8:28 PM
  Subject: [AVR-Chat] OT: Beadboarding SO chips


  Does anyone know of a good way to socket SO type chips (like SOIC-16)? I
  like to use DIP packages because they are easier to use for breadboarding
  (if I do a PC board, I can substitute the SO package for the DIP package),
  but more and more chips are coming out only in the SO packages.

  How do you breadboard using SO package chips?

  Thanks,

  Steve Jacobson



   

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

Re: OT: Beadboarding SO chips

2008-09-16 by Stefan Wimmer

--- In AVR-Chat@yahoogroups.com, "Stevej" <stevelists@...> wrote:
>
> 
> ...How do you breadboard using SO package chips?
> 


...I use self adheisive adapters glued to prototype PCBs like you see 
here: http://www.geocities.com/_wsw_/fujican1.jpg or here:
http://www.geocities.com/_wsw_/mincf3s2.jpg (a 32bit processor system 
running at 90MHz!). I always use a proto board with groundplane.

HTH,
Stefan

Re: OT: Beadboarding SO chips

2008-09-16 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "Stevej" <stevelists@...> wrote:
> How do you solder those buggers onto the adapters?
If you have good basic soldering skills, it is not difficult to learn 
SMD soldering.  The fine pitch devices (less than 0.8 mm, pin to pin) 
are more difficult but still doable.

There are a series of tutorials on the SparkFun site that give a lot 
of good tips, tricks and techniques for those wanting to learn SMD.  
See the link below.

http://www.sparkfun.com/commerce/tutorials.php

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

Re: [AVR-Chat] Re: OT: Beadboarding SO chips

2008-09-16 by Sander Pool

Nicely done!

Stefan Wimmer wrote:
Show quoted textHide quoted text
>
>
>
> ...I use self adheisive adapters glued to prototype PCBs like you see
> here: http://www.geocities.com/_wsw_/fujican1.jpg 
> <http://www.geocities.com/_wsw_/fujican1.jpg> or here:
> http://www.geocities.com/_wsw_/mincf3s2.jpg 
> <http://www.geocities.com/_wsw_/mincf3s2.jpg> (a 32bit processor system
> running at 90MHz!). I always use a proto board with groundplane.
>
>

Re: [AVR-Chat] Re: OT: Beadboarding SO chips

2008-09-16 by David VanHorn

I'd love to post pix of my current prototypes, but it's mostly BGAs,
and I'd have to kill ya.  :)

860 parts in a board the size of a large-ish drink coaster.

RE: [AVR-Chat] Re: OT: Beadboarding SO chips

2008-09-16 by Stevej

How do you solder those buggers onto the adapters?

Steve
Show quoted textHide quoted text
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Sander Pool
Sent: Tuesday, September 16, 2008 3:07 PM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] Re: OT: Beadboarding SO chips


Nicely done!

Stefan Wimmer wrote:
>
>
>
> ...I use self adheisive adapters glued to prototype PCBs like you see
> here: http://www.geocities.com/_wsw_/fujican1.jpg 
> <http://www.geocities.com/_wsw_/fujican1.jpg> or here:
> http://www.geocities.com/_wsw_/mincf3s2.jpg 
> <http://www.geocities.com/_wsw_/mincf3s2.jpg> (a 32bit processor system
> running at 90MHz!). I always use a proto board with groundplane.
>
>   

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

Yahoo! Groups Links

Re: [AVR-Chat] Re: OT: Beadboarding SO chips

2008-09-16 by David Kelly

On Tue, Sep 16, 2008 at 08:48:13PM -0000, Don Kinzer wrote:
> > How do you solder those buggers onto the adapters?
> If you have good basic soldering skills, it is not difficult to learn
> SMD soldering.  The fine pitch devices (less than 0.8 mm, pin to pin) 
> are more difficult but still doable.

Yes, the multi-pin SO chips are fairly easy. 0603 and 0402's are hard!

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

RE: [AVR-Chat] Re: OT: Beadboarding SO chips

2008-09-17 by Stevej

How do you find these adapters/pcbs?  I have looked through Digikey, Mouser,
and Avnet and can't find them.  Can somebody point me to the right place?

Thanks,

Steve 
Show quoted textHide quoted text
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of David VanHorn
Sent: Tuesday, September 16, 2008 5:13 PM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] Re: OT: Beadboarding SO chips

> Yes, the multi-pin SO chips are fairly easy. 0603 and 0402's are hard!

Nah.. 0201s are interesting.

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

Yahoo! Groups Links

Re: [AVR-Chat] Re: OT: Beadboarding SO chips

2008-09-17 by David VanHorn

On Wed, Sep 17, 2008 at 1:14 PM, Stevej <stevelists@jjworld.com> wrote:
> How do you find these adapters/pcbs?  I have looked through Digikey, Mouser,
> and Avnet and can't find them.  Can somebody point me to the right place?

One name for them is "surfboards"

RE: [AVR-Chat] Re: OT: Beadboarding SO chips

2008-09-17 by John Samperi

At 03:14 AM 18/09/2008, you wrote:
>Can somebody point me to the right place?

This is an Australian distributor. It will give you an idea
of what you need. Go to the site and type SMD as a keyword.

There are quite a few types. May need to scroll down the page.

http://www.electusdistribution.com.au

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Re: [AVR-Chat] Re: OT: Beadboarding SO chips

2008-09-17 by Raymond KI4VDJ

WOW! Impressive.

Stefan Wimmer wrote:
Show quoted textHide quoted text
> 
> 
> --- In AVR-Chat@yahoogroups.com <mailto:AVR-Chat%40yahoogroups.com>, 
> "Stevej" <stevelists@...> wrote:
>  >
>  >
>  > ...How do you breadboard using SO package chips?
>  >
> 
> ...I use self adheisive adapters glued to prototype PCBs like you see
> here: http://www.geocities.com/_wsw_/fujican1.jpg 
> <http://www.geocities.com/_wsw_/fujican1.jpg> or here:
> http://www.geocities.com/_wsw_/mincf3s2.jpg 
> <http://www.geocities.com/_wsw_/mincf3s2.jpg> (a 32bit processor system
> running at 90MHz!). I always use a proto board with groundplane.
> 
> HTH,
> Stefan
> 
>

Re: OT: Beadboarding SO chips

2008-09-17 by David Harris

What about http://www.schmartboard.com/ ?  Good selection and price.  


David



--- In AVR-Chat@yahoogroups.com, "Stevej" <stevelists@...> wrote:
>
> How do you find these adapters/pcbs?  I have looked through 
Digikey, Mouser,
> and Avnet and can't find them.  Can somebody point me to the right 
place?
> 
> Thanks,
> 
> Steve 
> 
> -----Original Message-----
> From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On 
Behalf
> Of David VanHorn
> Sent: Tuesday, September 16, 2008 5:13 PM
> To: AVR-Chat@yahoogroups.com
> Subject: Re: [AVR-Chat] Re: OT: Beadboarding SO chips
> 
> > Yes, the multi-pin SO chips are fairly easy. 0603 and 0402's are 
hard!
Show quoted textHide quoted text
> 
> Nah.. 0201s are interesting.
> 
> ------------------------------------
> 
> Yahoo! Groups Links
>

Re: OT: Beadboarding SO chips

2008-09-18 by Stefan Wimmer

--- In AVR-Chat@yahoogroups.com, "Stevej" <stevelists@...> wrote:
>
> How do you solder those buggers onto the adapters?
> 
> Steve
> 

Hi Steve,

Don already provided some good links for tutorials.
Just let me add that I have a hollow tip for my Weller (Cooper tools) 
soldering iron that acts like a small solder bath which you can move 
over the pins of TQFP ICs after applying some flux. It rella works 
like a charm and after some practising you get none to 1 or two 
shorts (mostly at the first and last pairs of pins) which you have to 
remove with desoldering wick. 

When SMD became mainstream I first (like most?) thought that this is 
the end of hand prototyping, but after trying and developing some 
technique and tricks I now like SMD more than thru-hole. I like 
espacially that you don't have to turn the board over and over like 
with wired parts (plug part, turn, solder, turn...).

OK, BGAs are a little bit harder ;-) (and I'm lucky to have a small 
SMD soldering tunnel available (on weekends) at the company where I'm 
working) but many people modified some electric BBC furnaces into SMD 
soldering stations with good results by adding an electronic control 
for the temperature profile. You should be able to find more info 
by "Googleing" a bit if you're interested.

HTH,
Stefan


> -----Original Message-----
> From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On 
Behalf
> Of Sander Pool
> Sent: Tuesday, September 16, 2008 3:07 PM
> To: AVR-Chat@yahoogroups.com
> Subject: Re: [AVR-Chat] Re: OT: Beadboarding SO chips
> 
> 
> Nicely done!
> 
> Stefan Wimmer wrote:
> >
> >
> >
> > ...I use self adheisive adapters glued to prototype PCBs like you 
see
> > here: http://www.geocities.com/_wsw_/fujican1.jpg 
> > <http://www.geocities.com/_wsw_/fujican1.jpg> or here:
> > http://www.geocities.com/_wsw_/mincf3s2.jpg 
> > <http://www.geocities.com/_wsw_/mincf3s2.jpg> (a 32bit processor 
system
> > running at 90MHz!). I always use a proto board with groundplane.
> >

Re: OT: Beadboarding SO chips

2008-09-18 by Stefan Wimmer

--- In AVR-Chat@yahoogroups.com, "David VanHorn" <microbrix@...> wrote:
>
> > Yes, the multi-pin SO chips are fairly easy. 0603 and 0402's are 
hard!
> 
> Nah.. 0201s are interesting.

Yeah!  Got my first 0201's a couple of days ago.

Pro: They don't take a lot of board space and their RF parameters are 
very good.
Contra: I always turn blue while soldering them (because I don't dare 
to breath when they're finally positioned on their copper dots 
(aka "pads") until the solder solidified again).

;-))

RE: [AVR-Chat] Re: OT: Beadboarding SO chips

2008-09-18 by Stevej

One more question to some of you older guys (like me).  What power
magnification do you use to be able to see the leads to solder to them?

Steve
Show quoted textHide quoted text
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Stefan Wimmer
Sent: Thursday, September 18, 2008 2:39 AM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] Re: OT: Beadboarding SO chips

--- In AVR-Chat@yahoogroups.com, "David VanHorn" <microbrix@...> wrote:
>
> > Yes, the multi-pin SO chips are fairly easy. 0603 and 0402's are 
hard!
> 
> Nah.. 0201s are interesting.

Yeah!  Got my first 0201's a couple of days ago.

Pro: They don't take a lot of board space and their RF parameters are 
very good.
Contra: I always turn blue while soldering them (because I don't dare 
to breath when they're finally positioned on their copper dots 
(aka "pads") until the solder solidified again).

;-))



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

Yahoo! Groups Links

Re: [AVR-Chat] Re: OT: Beadboarding SO chips

2008-09-19 by Sander Pool

The easiest time I ever had soldering a bunch of SMDs was when I used a 
stereo microscope in the lab of the company I worked at at the time. At 
home I use something like a 4x magnifying desk lamp but when my eyes 
start going downhill in a few years I may just have to get one of those 
microscope thingies. Man that was sweet. I think Chinese/Russian made 
units aren't too crazy expensive.

    Sander

Stevej wrote:
Show quoted textHide quoted text
>
> One more question to some of you older guys (like me). What power
> magnification do you use to be able to see the leads to solder to them?
>
> Steve
>
>
> ___

Re: [AVR-Chat] Re: OT: Beadboarding SO chips

2008-09-19 by Leon

----- Original Message ----- 
Show quoted textHide quoted text
From: "Sander Pool" <sander@tungstentech.com>
To: <AVR-Chat@yahoogroups.com>
Sent: Friday, September 19, 2008 5:34 PM
Subject: Re: [AVR-Chat] Re: OT: Beadboarding SO chips


>
> The easiest time I ever had soldering a bunch of SMDs was when I used a
> stereo microscope in the lab of the company I worked at at the time. At
> home I use something like a 4x magnifying desk lamp but when my eyes
> start going downhill in a few years I may just have to get one of those
> microscope thingies. Man that was sweet. I think Chinese/Russian made
> units aren't too crazy expensive.

I use a cheap Chinese stereo dissecting microscope, it cost me about £60. 
The optical and mechanical quality are surprisingly good.

Leon
--
Leon Heller
Amateur radio call-sign  G1HSM
Yaesu FT-817ND transceiver
Suzuki SV1000S motorcycle
leon355@btinternet.com
http://www.geocities.com/leon_heller

Re: OT: Beadboarding SO chips

2008-09-19 by Stefan Wimmer

--- In AVR-Chat@yahoogroups.com, "Stevej" <stevelists@...> wrote:
>
> One more question to some of you older guys (like me).  What power
> magnification do you use to be able to see the leads to solder to 
them?

For the coarse grained parts (like SOICs, TQFPs, 1206s, etc.) I use a 
stereo microscope set to 4x (if any). For the finer parts (down to 
0603) I set it to 16x.

40x is only used for 0204 and for inspection at QFN housings or so.

I've never used the 64x setting of the 'scope since it gives a very 
narrow sighting field and depth of focus. I get a headache from this.

Stefan

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.