Yahoo Groups archive

AVR-Chat

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

Thread

AVR with DAC?

AVR with DAC?

2004-10-26 by upand_at_them

Do any of the AVRs have a programmable voltage reference?  I've gone 
through some of the datasheets and it doesn't look like they do.

Mike

Re: [AVR-Chat] AVR with DAC?

2004-10-26 by Bruce Parham

> Do any of the AVRs have a programmable voltage reference?  I've gone
> through some of the datasheets and it doesn't look like they do.
> 
> Mike

Not that I recall but, if you have an unused timer, you can put it into
PWM mode and connect its output to the AREF pin via a suitable R-C
filter. 

BTW, the built-in "Precision" ref is anything but... I'm running one
prototype board with a M128 who's 2.56V ref measures 2.783V! 

Bruce

RE: [AVR-Chat] AVR with DAC?

2004-10-26 by Lasse Madsen

Hi

>BTW, the built-in "Precision" ref is anything but... I'm running one
>prototype board with a M128 who's 2.56V ref measures 2.783V! 


This is a common problem if you consult the datasheet you will see it
specified with a large variation making it "unusable" for anything that
requires precision I'm using the VCC through a RCL network and this is
more accurate.
 
Regards
L. Madsen
Show quoted textHide quoted text
-----Original Message-----
From: Bruce Parham [mailto:obparham@jpl.nasa.gov] 
Sent: 26. oktober 2004 18:27
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] AVR with DAC?
 


> Do any of the AVRs have a programmable voltage reference?  I've gone
> through some of the datasheets and it doesn't look like they do.
> 
> Mike

Not that I recall but, if you have an unused timer, you can put it into
PWM mode and connect its output to the AREF pin via a suitable R-C
filter. 

Bruce




Yahoo! Groups Sponsor


ADVERTISEMENT
 
<http://us.ard.yahoo.com/SIG=129eulcdk/M=315388.5529720.6602079.3001176/
D=groups/S=1706554205:HM/EXP=1098894438/A=2372354/R=0/SIG=12id813k2/*htt
ps:/www.orchardbank.com/hcs/hcsapplication?pf=PLApply&media=EMYHNL40F210
04SS> click here

 
<http://us.adserver.yahoo.com/l?M=315388.5529720.6602079.3001176/D=group
s/S=:HM/A=2372354/rand=189964351> 
 
  _____  

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
<mailto:AVR-Chat-unsubscribe@yahoogroups.com?subject=Unsubscribe> 
  
*         Your use of Yahoo! Groups is subject to the Yahoo! Terms of
<http://docs.yahoo.com/info/terms/>  Service.

Re: [AVR-Chat] AVR with DAC?

2004-10-26 by Jim Wagner

You don't need to mess with the ADC. The PWM is quite
accurate and very deterministic. No need to measure! It is
as accurate as Vcc and the timer resolution.

Jim

On Wed, 27 Oct 2004 01:19:29 +0200
 "Lasse Madsen" <lasse.madsen@elektronik.dk> wrote:
> Hi
>  
> No AVR has DAC but what resolution do you need and at
> what speed (it can
> be done using the ADC and a PWM channel)
>  
> Regards
> Lasse 
>  
>  
>  
> -----Original Message-----
> From: tfcsd [mailto:tfcsd@earthlink.net] 
> Sent: 27. oktober 2004 01:18
> To: AVR-Chat@yahoogroups.com
> Subject: Re: [AVR-Chat] AVR with DAC?
>  
> I am using an non AVR application that uses 2 dacs that
> go 0-5v. Does
> any AVR have dacs?
> 
> Lasse Madsen wrote:
> 
> 
> Hi
> 
> >BTW, the built-in "Precision" ref is anything but... I'm
> running one
> >prototype board with a M128 who's 2.56V ref measures
> 2.783V! 
> 
> 
> This is a common problem if you consult the datasheet you
> will see it
> specified with a large variation making it "unusable" for
> anything that
> requires precision I'm using the VCC through a RCL
> network and this is
> more accurate.
>  
> Regards
> L. Madsen
>  
>  
> -----Original Message-----
> From: Bruce Parham [mailto:obparham@jpl.nasa.gov] 
> Sent: 26. oktober 2004 18:27
> To: AVR-Chat@yahoogroups.com
> Subject: Re: [AVR-Chat] AVR with DAC?
>  
> 
> 
> > Do any of the AVRs have a programmable voltage
> reference?  I've gone
> > through some of the datasheets and it doesn't look like
> they do.
> > 
> > Mike
> 
> Not that I recall but, if you have an unused timer, you
> can put it into
> PWM mode and connect its output to the AREF pin via a
> suitable R-C
> filter. 
> 
> Bruce
> 
> 
> 
>  
> 
> 
> 
> 
> Yahoo! Groups Sponsor
> 
> 
> ADVERTISEMENT
>  
>
<http://us.ard.yahoo.com/SIG=129ol1hnu/M=315388.5529720.6602079.3001176/
>
D=groups/S=1706554205:HM/EXP=1098919050/A=2372354/R=0/SIG=12id813k2/*htt
>
ps:/www.orchardbank.com/hcs/hcsapplication?pf=PLApply&media=EMYHNL40F210
> 04SS> click here
> 
>  
>
<http://us.adserver.yahoo.com/l?M=315388.5529720.6602079.3001176/D=group
> s/S=:HM/A=2372354/rand=194258046> 
>  
>   _____  
> 
> 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
>
<mailto:AVR-Chat-unsubscribe@yahoogroups.com?subject=Unsubscribe>
> 
>   
> *         Your use of Yahoo! Groups is subject to the
> Yahoo! Terms of
> <http://docs.yahoo.com/info/terms/>  Service. 

---------------------------------------------------------------
The Think Different Store
http://www.thinkdifferentstore.com/
For All Your Mac Gear
---------------------------------------------------------------

Re: [AVR-Chat] AVR with DAC?

2004-10-26 by tfcsd

I am using an non AVR application that uses 2 dacs that go 0-5v. Does 
any AVR have dacs?

Lasse Madsen wrote:
Show quoted textHide quoted text
> Hi
>
>
>>BTW, the built-in "Precision" ref is anything but... I'm running one
>>prototype board with a M128 who's 2.56V ref measures 2.783V!
>
> This is a common problem if you consult the datasheet you will see it 
> specified with a large variation making it "unusable" for anything 
> that requires precision I'm using the VCC through a RCL network and 
> this is more accurate.
>
>  
>
> Regards
>
> L. Madsen
>
>  
>
>  
>
> -----Original Message-----
> From: Bruce Parham [mailto:obparham@jpl.nasa.gov]
> Sent: 26. oktober 2004 18:27
> To: AVR-Chat@yahoogroups.com
> Subject: Re: [AVR-Chat] AVR with DAC?
>
>  
>
>
>
>> Do any of the AVRs have a programmable voltage reference?  I've gone
>> through some of the datasheets and it doesn't look like they do.
>>
>> Mike
>
> Not that I recall but, if you have an unused timer, you can put it into
> PWM mode and connect its output to the AREF pin via a suitable R-C
> filter.
>
> Bruce
>
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
> <http://us.ard.yahoo.com/SIG=1290lairf/M=315388.5529720.6602079.3001176/D=groups/S=1706554205:HM/EXP=1098894591/A=2372354/R=0/SIG=12id813k2/*https://www.orchardbank.com/hcs/hcsapplication?pf=PLApply&media=EMYHNL40F21004SS> 
>
>
>
> ------------------------------------------------------------------------
> 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
>       <mailto:AVR-Chat-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>

RE: [AVR-Chat] AVR with DAC?

2004-10-26 by Lasse Madsen

Hi
 
No AVR has DAC but what resolution do you need and at what speed (it can
be done using the ADC and a PWM channel)
 
Regards
Lasse 
Show quoted textHide quoted text
-----Original Message-----
From: tfcsd [mailto:tfcsd@earthlink.net] 
Sent: 27. oktober 2004 01:18
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] AVR with DAC?
 
I am using an non AVR application that uses 2 dacs that go 0-5v. Does
any AVR have dacs?

Lasse Madsen wrote:


Hi

>BTW, the built-in "Precision" ref is anything but... I'm running one
>prototype board with a M128 who's 2.56V ref measures 2.783V! 


This is a common problem if you consult the datasheet you will see it
specified with a large variation making it "unusable" for anything that
requires precision I'm using the VCC through a RCL network and this is
more accurate.
 
Regards
L. Madsen
 
 
-----Original Message-----
From: Bruce Parham [mailto:obparham@jpl.nasa.gov] 
Sent: 26. oktober 2004 18:27
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] AVR with DAC?
 


> Do any of the AVRs have a programmable voltage reference?  I've gone
> through some of the datasheets and it doesn't look like they do.
> 
> Mike

Not that I recall but, if you have an unused timer, you can put it into
PWM mode and connect its output to the AREF pin via a suitable R-C
filter. 

Bruce



 




Yahoo! Groups Sponsor


ADVERTISEMENT
 
<http://us.ard.yahoo.com/SIG=129ol1hnu/M=315388.5529720.6602079.3001176/
D=groups/S=1706554205:HM/EXP=1098919050/A=2372354/R=0/SIG=12id813k2/*htt
ps:/www.orchardbank.com/hcs/hcsapplication?pf=PLApply&media=EMYHNL40F210
04SS> click here

 
<http://us.adserver.yahoo.com/l?M=315388.5529720.6602079.3001176/D=group
s/S=:HM/A=2372354/rand=194258046> 
 
  _____  

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
<mailto:AVR-Chat-unsubscribe@yahoogroups.com?subject=Unsubscribe> 
  
*         Your use of Yahoo! Groups is subject to the Yahoo! Terms of
<http://docs.yahoo.com/info/terms/>  Service.

Re: AVR with DAC?

2004-10-27 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "Jim Wagner" <jim_d_wagner@a...> 
wrote:
> You don't need to mess with the ADC. The PWM is quite
> accurate and very deterministic.

Also, if you only need the analog voltage for short periods of time 
you can implement it completely in software, sort of a pseudo-PWM, 
using an external RC filter for smoothing.  This can be done using 
any digital output.  It's especially easy if you only need 8-bit 
resolution.

Re: AVR with DAC?

2004-10-27 by Dave Mucha

--- In AVR-Chat@yahoogroups.com, "Don Kinzer" <dkinzer@e...> wrote:
> 
> --- In AVR-Chat@yahoogroups.com, "Jim Wagner" <jim_d_wagner@a...> 
> wrote:
> > You don't need to mess with the ADC. The PWM is quite
> > accurate and very deterministic.
> 
> Also, if you only need the analog voltage for short periods of time 
> you can implement it completely in software, sort of a pseudo-PWM, 
> using an external RC filter for smoothing.  This can be done using 
> any digital output.  It's especially easy if you only need 8-bit 
> resolution.

if you send a PWM burst to an op-amp with a resistor, cap and 
resistor the output of the op-amp will be a value representing the 
duty cycle of the output voltage.   ie: if you are using 3.5 volts 
pwr and send a 50% duty cycle, the op-amp will output 1.75 volts.

I have not tested the duraton the cap will hold the charge on a AVR, 
but on a PIC if you change the pin status to input, there is no 
leakage and the cap will hold the charge for minutes with little or 
no change.   

If you need continual output change you can just alter the pwm duty 
cycle.   Resolution is based on duty cycle.

I have not tried it, but a mutilpe duty cycle should be able to 
double the resolution or even better. 

I have also thought about two output pins,  one with a course PWM and 
the other with a fine output.  Well, both would be the same, just one 
would go to one input of a quad op-amp with the stage set for a 10:1 
reduction and the other output sent to the op-amp input that would be 
a summing input  The op-amp would sum the inputs.  the raw value 
would but the course and the 10:1 reductio would offer the fine value.

For a test, try a 4.7k and a 10k resistor to an op-amp set as 1:1 
with a 0.47uF cap between them and ground. 

Dave

Re: AVR with DAC?

2004-10-27 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "Don Kinzer" <dkinzer@e...> wrote:
> [...] you can implement [a DAC] completely in software ...

Below is a link to an article describing how to implement a DAC in 
software.  The article describes how it's done in the BasicStamp.  
The concept can be easily implemented in AVR assembly language, 
probably in fewer than 20 instructions.

http://www.eettaiwan.com/ARTICLES/2002MAR/PDF/2002MAR08_ICD_ICP_AN86.P
DF

Re: SERIAL PORT IN ATTINY

2004-11-18 by Randy Ott

Check out the app notes on the Atmel web site.

AVR304 and AVR305 might do the trick.

Randy

--- In AVR-Chat@yahoogroups.com, Jose Fuentes 
<josecarlosfuentes@y...> wrote:
> I want to use a Attiny11 (price under 0.54) and
> implement a serial port.  Since it doesn't have a
> USART I have to write the software to allow the
> microcontroller to send and receive data.  If somebody
> has done something like this in assembly or C please
> let me know.  Attiny11 only has 1KB FLASH and 32
> general purpose registers.
> Thanks.
> 
> Jose
> 
> 
> 	
> 
> 	
> 		
> ___________________________________ 
> ¡Llevate a Yahoo! en tu Unifón! 
> Ahora podés usar Yahoo! Messenger en tu Unifón, en cualquier 
momento y lugar. 
> Encontrá más información en: http://ar.
mobile.yahoo.com/sms.html

SERIAL PORT IN ATTINY

2004-11-18 by Jose Fuentes

I want to use a Attiny11 (price under 0.54) and
implement a serial port.  Since it doesn't have a
USART I have to write the software to allow the
microcontroller to send and receive data.  If somebody
has done something like this in assembly or C please
let me know.  Attiny11 only has 1KB FLASH and 32
general purpose registers.
Thanks.

Jose


	

	
		
___________________________________ 
¡Llevate a Yahoo! en tu Unifón! 
Ahora podés usar Yahoo! Messenger en tu Unifón, en cualquier momento y lugar. 
Encontrá más información en: http://ar.mobile.yahoo.com/sms.html

Re: [AVR-Chat] SERIAL PORT IN ATTINY

2004-11-18 by Andrew Lim

Hi Jose,
 
 
Check out this site.  http://www.riccibitti.com/tinyplanet/tiny_schematic.htm
 
It uses ATTiny12 with RS232 built using some electronic parts. Hope this helps.
 
 
Regards,
Andrew


Jose Fuentes <josecarlosfuentes@yahoo.com.ar> wrote:
I want to use a Attiny11 (price under 0.54) and
implement a serial port.  Since it doesn't have a
USART I have to write the software to allow the
microcontroller to send and receive data.  If somebody
has done something like this in assembly or C please
let me know.  Attiny11 only has 1KB FLASH and 32
general purpose registers.
Thanks.

Jose


      

      
            
___________________________________ 
�Llevate a Yahoo! en tu Unif�n! 
Ahora pod�s usar Yahoo! Messenger en tu Unif�n, en cualquier momento y lugar. 
Encontr� m�s informaci�n en: http://ar.mobile.yahoo.com/sms.html 


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!?
 Meet the all-new My Yahoo! � Try it today!

Re: [AVR-Chat] SERIAL PORT IN ATTINY

2004-11-18 by Leon Heller

----- Original Message ----- 
Show quoted textHide quoted text
From: Jose Fuentes
To: AVR-Chat@yahoogroups.com
Sent: Thursday, November 18, 2004 1:49 PM
Subject: [AVR-Chat] SERIAL PORT IN ATTINY


I want to use a Attiny11 (price under 0.54) and
implement a serial port.  Since it doesn't have a
USART I have to write the software to allow the
microcontroller to send and receive data.  If somebody
has done something like this in assembly or C please
let me know.  Attiny11 only has 1KB FLASH and 32
general purpose registers.

Atmel has a couple of app notes with software UARTS written in assembler. I 
did this a long time ago with the '1200, which does not have a UART either.

Leon

Re: [AVR-Chat] SERIAL PORT IN ATTINY

2004-11-18 by Dave VanHorn

At 08:49 AM 11/18/2004, Jose Fuentes wrote:


>I want to use a Attiny11 (price under 0.54) and
>implement a serial port.  Since it doesn't have a
>USART I have to write the software to allow the
>microcontroller to send and receive data.  If somebody
>has done something like this in assembly or C please
>let me know.  Attiny11 only has 1KB FLASH and 32
>general purpose registers.
>Thanks.

You may be a bit hosed here.
The T11's RC osc isn't calibrated, so you'd have to use a resonator or xtal 
at the cost of two pins.   If that works for you, then set up an int at the 
baud rate.

Receive:
Put RXD on the hardware int pin (PB1)
When you see the start bit, set the timer to int you in half a bit time.
When that int fires, sample the data. If still low, you have a valid start 
bit, and the next 8 timer ints simply sample and shift.
If you want, you can pay attention to the stop bit, one more int, should be 
"idle".

Transmit:
TXD on any pin.
Set the int to fire at the baud rate.
Send a start bit, 8 data, and one stop..


It's not that awful, but that means you have only two more pins available 
on the chip, and one of them is reset..

8 pin chip, VCC, Gnd, X1, X2, TXD, RXD, Reset..  One pin left.

Don't spend it all in one place!

RE: [AVR-Chat] SERIAL PORT IN ATTINY

2004-11-18 by Larry Barello

Try doing a web search on "avr software uart"

There are plenty of hits & code examples.
Show quoted textHide quoted text
-----Original Message-----
From: Andrew Lim

Check out this site.
http://www.riccibitti.com/tinyplanet/tiny_schematic.htm

It uses ATTiny12 with RS232 built using some electronic parts. Hope this
helps.


Jose Fuentes <josecarlosfuentes@yahoo.com.ar> wrote:
  I want to use a Attiny11 (price under 0.54) and
  implement a serial port.  Since it doesn't have a
  USART I have to write the software to allow the
  microcontroller to send and receive data.  If somebody
  has done something like this in assembly or C please
  let me know.  Attiny11 only has 1KB FLASH and 32
  general purpose registers.
  Thanks.

  Jose

Re: SERIAL PORT IN ATTINY

2004-11-18 by alan_probandt

In the files section of AVR-Chat, I have posted an assembly listing 
called 'SerialIO.asm' that does what you are asking for the Tiny11.


The code runs in the background as an interrupt process. It uses the 
timer fully so the timer can't be used for anything else.


  The routine is full-duplex serial and takes about 100 words of 
program code.  It uses four registers.




Good Luck with it.




Alan Probandt


Portland, Oregon USA




--- In AVR-Chat@yahoogroups.com, Jose Fuentes <josecarlosfuentes@y...> 
wrote:


> I want to use a Attiny11 (price under 0.54) and


> implement a serial port.  Since it doesn't have a


> USART I have to write the software to allow the


> microcontroller to send and receive data.  If somebody


> has done something like this in assembly or C please


> let me know.  Attiny11 only has 1KB FLASH and 32


> general purpose registers.


> Thanks.


> 


> Jose


> 


> 


> 	


> 


> 	


> 		


> ___________________________________ 


> ¡Llevate a Yahoo! en tu Unifón! 


> Ahora podés usar Yahoo! Messenger en tu Unifón, en cualquier momento 
y lugar. 


> Encontrá más información en: http://ar.mobile.yahoo.com/sms.html

Re: [AVR-Chat] SERIAL PORT IN ATTINY

2004-11-18 by Mark Jordan

On 18 Nov 2004 at 9:48, Dave VanHorn wrote:

> The T11's RC osc isn't calibrated, so you'd have to use a resonator or xtal 
> at the cost of two pins.   If that works for you, then set up an int at the 
> baud rate.

	He could use the internal osc and measure the RX start bit length
to find the correct timming for the software USART.
	I did that on a Tiny11 RC5 decoder.

	Mark Jordan

Re: [AVR-Chat] SERIAL PORT IN ATTINY

2004-11-18 by Dave VanHorn

At 10:52 AM 11/18/2004, Mark Jordan wrote:


>On 18 Nov 2004 at 9:48, Dave VanHorn wrote:
>
> > The T11's RC osc isn't calibrated, so you'd have to use a resonator or 
> xtal
> > at the cost of two pins.   If that works for you, then set up an int at 
> the
> > baud rate.
>
>         He could use the internal osc and measure the RX start bit length
>to find the correct timming for the software USART.
>         I did that on a Tiny11 RC5 decoder.

Yes, that could work within reason. Noise would drive it nuts though.
Saves two pins though, that's a 300% gain! :)

Re: [AVR-Chat] SERIAL PORT IN ATTINY

2004-11-18 by Jose Fuentes

Thanks to everybody for the help!  I didn't realize
that using a XTAL I have only one pin left.  Not sure
but maybe would be better to use I2C to communicate
because it doesn't require a XTAL.

Regards,
Jose


> 8 pin chip, VCC, Gnd, X1, X2, TXD, RXD, Reset..  One
> pin left.



 --- Dave VanHorn <dvanhorn@dvanhorn.org> escribió: 
> 
> At 08:49 AM 11/18/2004, Jose Fuentes wrote:
> 
> 
> >I want to use a Attiny11 (price under 0.54) and
> >implement a serial port.  Since it doesn't have a
> >USART I have to write the software to allow the
> >microcontroller to send and receive data.  If
> somebody
> >has done something like this in assembly or C
> please
> >let me know.  Attiny11 only has 1KB FLASH and 32
> >general purpose registers.
> >Thanks.
> 
> You may be a bit hosed here.
> The T11's RC osc isn't calibrated, so you'd have to
> use a resonator or xtal 
> at the cost of two pins.   If that works for you,
> then set up an int at the 
> baud rate.
> 
> Receive:
> Put RXD on the hardware int pin (PB1)
> When you see the start bit, set the timer to int you
> in half a bit time.
> When that int fires, sample the data. If still low,
> you have a valid start 
> bit, and the next 8 timer ints simply sample and
> shift.
> If you want, you can pay attention to the stop bit,
> one more int, should be 
> "idle".
> 
> Transmit:
> TXD on any pin.
> Set the int to fire at the baud rate.
> Send a start bit, 8 data, and one stop..
> 
> 
> It's not that awful, but that means you have only
> two more pins available 
> on the chip, and one of them is reset..
> 
> 8 pin chip, VCC, Gnd, X1, X2, TXD, RXD, Reset..  One
> pin left.
> 
> Don't spend it all in one place!
> 
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor
> --------------------~--> 
> $9.95 domain names from Yahoo!. Register anything.
>
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/dN_tlB/TM
>
--------------------------------------------------------------------~->
> 
> 
>  
> Yahoo! Groups Links
> 
> 
>     AVR-Chat-unsubscribe@yahoogroups.com
> 
>  
> 
> 
> 
>  

Correo Yahoo! - 6 MB, tecnología antispam ¡gratis! 
 Suscribite ya http://correo.yahoo.com.ar/

Re: [AVR-Chat] SERIAL PORT IN ATTINY

2004-11-18 by Mark Jordan

You can save one more pin using an half-duplex RS232.

	Mark Jordan
Show quoted textHide quoted text
On 18 Nov 2004 at 17:56, Jose Fuentes wrote:

> 
> Thanks to everybody for the help!  I didn't realize
> that using a XTAL I have only one pin left.  Not sure
> but maybe would be better to use I2C to communicate
> because it doesn't require a XTAL.
> 
> Regards,
> Jose
> 
> 
> > 8 pin chip, VCC, Gnd, X1, X2, TXD, RXD, Reset..  One
> > pin left.
> 
> 
> 
>  --- Dave VanHorn <dvanhorn@dvanhorn.org> escribió: 
> > 
> > At 08:49 AM 11/18/2004, Jose Fuentes wrote:
> > 
> > 
> > >I want to use a Attiny11 (price under 0.54) and
> > >implement a serial port.  Since it doesn't have a
> > >USART I have to write the software to allow the
> > >microcontroller to send and receive data.  If
> > somebody
> > >has done something like this in assembly or C
> > please
> > >let me know.  Attiny11 only has 1KB FLASH and 32
> > >general purpose registers.
> > >Thanks.
> > 
> > You may be a bit hosed here.
> > The T11's RC osc isn't calibrated, so you'd have to
> > use a resonator or xtal 
> > at the cost of two pins.   If that works for you,
> > then set up an int at the 
> > baud rate.
> > 
> > Receive:
> > Put RXD on the hardware int pin (PB1)
> > When you see the start bit, set the timer to int you
> > in half a bit time.
> > When that int fires, sample the data. If still low,
> > you have a valid start 
> > bit, and the next 8 timer ints simply sample and
> > shift.
> > If you want, you can pay attention to the stop bit,
> > one more int, should be 
> > "idle".
> > 
> > Transmit:
> > TXD on any pin.
> > Set the int to fire at the baud rate.
> > Send a start bit, 8 data, and one stop..
> > 
> > 
> > It's not that awful, but that means you have only
> > two more pins available 
> > on the chip, and one of them is reset..
> > 
> > 8 pin chip, VCC, Gnd, X1, X2, TXD, RXD, Reset..  One
> > pin left.
> > 
> > Don't spend it all in one place!
> > 
> > 
> > 
> > 
> > ------------------------ Yahoo! Groups Sponsor
> > --------------------~--> 
> > $9.95 domain names from Yahoo!. Register anything.
> >
> http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/dN_tlB/TM
> >
> --------------------------------------------------------------------~->
> > 
> > 
> >  
> > Yahoo! Groups Links
> > 
> > 
> >     AVR-Chat-unsubscribe@yahoogroups.com
> > 
> >  
> > 
> > 
> > 
> >  
> 
> Correo Yahoo! - 6 MB, tecnología antispam ¡gratis! 
>  Suscribite ya http://correo.yahoo.com.ar/
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
>

Re: [AVR-Chat] SERIAL PORT IN ATTINY

2004-11-18 by Tony Vandiver

Can you use Reset for GPIO?  Possible in the ATTiny15, don't know about the
11.

----- Original Message -----
Show quoted textHide quoted text
From: "Jose Fuentes" <josecarlosfuentes@yahoo.com.ar>
To: <AVR-Chat@yahoogroups.com>
Sent: Thursday, November 18, 2004 2:56 PM
Subject: Re: [AVR-Chat] SERIAL PORT IN ATTINY


>
> Thanks to everybody for the help!  I didn't realize
> that using a XTAL I have only one pin left.  Not sure
> but maybe would be better to use I2C to communicate
> because it doesn't require a XTAL.
>
> Regards,
> Jose
>
>
> > 8 pin chip, VCC, Gnd, X1, X2, TXD, RXD, Reset..  One
> > pin left.
>
>
>
>  --- Dave VanHorn <dvanhorn@dvanhorn.org> escribió:
> >
> > At 08:49 AM 11/18/2004, Jose Fuentes wrote:
> >
> >
> > >I want to use a Attiny11 (price under 0.54) and
> > >implement a serial port.  Since it doesn't have a
> > >USART I have to write the software to allow the
> > >microcontroller to send and receive data.  If
> > somebody
> > >has done something like this in assembly or C
> > please
> > >let me know.  Attiny11 only has 1KB FLASH and 32
> > >general purpose registers.
> > >Thanks.
> >
> > You may be a bit hosed here.
> > The T11's RC osc isn't calibrated, so you'd have to
> > use a resonator or xtal
> > at the cost of two pins.   If that works for you,
> > then set up an int at the
> > baud rate.
> >
> > Receive:
> > Put RXD on the hardware int pin (PB1)
> > When you see the start bit, set the timer to int you
> > in half a bit time.
> > When that int fires, sample the data. If still low,
> > you have a valid start
> > bit, and the next 8 timer ints simply sample and
> > shift.
> > If you want, you can pay attention to the stop bit,
> > one more int, should be
> > "idle".
> >
> > Transmit:
> > TXD on any pin.
> > Set the int to fire at the baud rate.
> > Send a start bit, 8 data, and one stop..
> >
> >
> > It's not that awful, but that means you have only
> > two more pins available
> > on the chip, and one of them is reset..
> >
> > 8 pin chip, VCC, Gnd, X1, X2, TXD, RXD, Reset..  One
> > pin left.
> >
> > Don't spend it all in one place!
> >
> >
> >
> >
> > ------------------------ Yahoo! Groups Sponsor
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >     AVR-Chat-unsubscribe@yahoogroups.com
> >
> >
> >
> >
> >
> >
>
> Correo Yahoo! - 6 MB, tecnología antispam ¡gratis!
>  Suscribite ya http://correo.yahoo.com.ar/
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>

Re: [AVR-Chat] SERIAL PORT IN ATTINY

2004-11-18 by Mark Jordan

Yes, you can do it in the Tiny11.

	Mark Jordan
Show quoted textHide quoted text
On 18 Nov 2004 at 15:53, Tony Vandiver wrote:

> 
> Can you use Reset for GPIO?  Possible in the ATTiny15, don't know about the
> 11.
> 
> ----- Original Message -----
> From: "Jose Fuentes" <josecarlosfuentes@yahoo.com.ar>
> To: <AVR-Chat@yahoogroups.com>
> Sent: Thursday, November 18, 2004 2:56 PM
> Subject: Re: [AVR-Chat] SERIAL PORT IN ATTINY
> 
> 
> >
> > Thanks to everybody for the help!  I didn't realize
> > that using a XTAL I have only one pin left.  Not sure
> > but maybe would be better to use I2C to communicate
> > because it doesn't require a XTAL.
> >
> > Regards,
> > Jose
> >
> >
> > > 8 pin chip, VCC, Gnd, X1, X2, TXD, RXD, Reset..  One
> > > pin left.
> >
> >
> >
> >  --- Dave VanHorn <dvanhorn@dvanhorn.org> escribió:
> > >
> > > At 08:49 AM 11/18/2004, Jose Fuentes wrote:
> > >
> > >
> > > >I want to use a Attiny11 (price under 0.54) and
> > > >implement a serial port.  Since it doesn't have a
> > > >USART I have to write the software to allow the
> > > >microcontroller to send and receive data.  If
> > > somebody
> > > >has done something like this in assembly or C
> > > please
> > > >let me know.  Attiny11 only has 1KB FLASH and 32
> > > >general purpose registers.
> > > >Thanks.
> > >
> > > You may be a bit hosed here.
> > > The T11's RC osc isn't calibrated, so you'd have to
> > > use a resonator or xtal
> > > at the cost of two pins.   If that works for you,
> > > then set up an int at the
> > > baud rate.
> > >
> > > Receive:
> > > Put RXD on the hardware int pin (PB1)
> > > When you see the start bit, set the timer to int you
> > > in half a bit time.
> > > When that int fires, sample the data. If still low,
> > > you have a valid start
> > > bit, and the next 8 timer ints simply sample and
> > > shift.
> > > If you want, you can pay attention to the stop bit,
> > > one more int, should be
> > > "idle".
> > >
> > > Transmit:
> > > TXD on any pin.
> > > Set the int to fire at the baud rate.
> > > Send a start bit, 8 data, and one stop..
> > >
> > >
> > > It's not that awful, but that means you have only
> > > two more pins available
> > > on the chip, and one of them is reset..
> > >
> > > 8 pin chip, VCC, Gnd, X1, X2, TXD, RXD, Reset..  One
> > > pin left.
> > >
> > > Don't spend it all in one place!
> > >
> > >
> > >
> > >
> > > ------------------------ Yahoo! Groups Sponsor
> > >
> > >
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >     AVR-Chat-unsubscribe@yahoogroups.com
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > Correo Yahoo! - 6 MB, tecnología antispam ¡gratis!
> >  Suscribite ya http://correo.yahoo.com.ar/
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
>

Re: [AVR-Chat] AVR distributor in Indonesia

2004-11-25 by Astria Nur Irfansyah

Yes, you can order from innovative electronics. Usually i 
email them: sales@innovativeelectronics.com. Their office 
is in Surabaya.

Or you can order from their website: www.digi-ware.com.

Payment is made via BCA cash transfer.

I bought ATmega16 about Rp72500, and ATmega8515 about 
Rp52.500.

Btw, gimana kabarnya Ridho? Tinggal di mana e? :D

Regards,
Irfan.

Engineer
RDEV
PT Gamatechno
Yogyakarta
Indonesia

On Thu, 25 Nov 2004 03:19:13 +0000 (GMT)
  Ridho Alpha <pendekar_ridho@yahoo.com> wrote:
> 
> hello....
> 
> i live in Indonesia.
> 
> I want to use ATMEGA16, ATMEGA32, ATMEGA8535.
> 
> do you all know about the supplier for AVR in Indonesia, 
>or countries near Indonesia????
> 
> 
> 
> thank you
> 
> 
> ---------------------------------
>  Yahoo! Messenger - Communicate instantly..."Ping" your 
>friends today! Download Messenger Now

=============================================
Netkuis Instan untuk wilayah Bandung (kode area 022) - SD,SMP,SMA
Berhadiah total puluhan juta rupiah... periode I dimulai 1 April 2004
=============================================

Re: AVR distributor in Indonesia

2004-11-25 by Astria Nur Irfansyah

Yes, you can order from innovative electronics. Usually i email them:
sales@innovativeelectronics.com. Their office is in Surabaya.

Or you can order from their website: www.digi-ware.com.

Payment is made via BCA cash transfer.

I bought ATmega16 about Rp72500, and ATmega8515 about Rp52.500.

Or if you live in Yogyakarta like me, feel free to visit Digital
Systems Lab., Electrical Engineering Dept., Gadjah Mada University.
They produce and sell minimum systems for AVR development too.

Btw, gimana kabarnya Ridho? Tinggal di mana e? :D

Regards,
Irfan.

Engineer
RDEV
PT Gamatechno 
Yogyakarta
Indonesia

--- In AVR-Chat@yahoogroups.com, Ridho Alpha <pendekar_ridho@y...> wrote:
> 
> hello....
> 
> i live in Indonesia.
> 
> I want to use ATMEGA16, ATMEGA32, ATMEGA8535.
> 
> do you all know about the supplier for AVR in Indonesia, or
countries near Indonesia????
> 
>  
> 
> thank you
> 
> 
> ---------------------------------
>   Yahoo! Messenger - Communicate instantly..."Ping" your friends
today! Download Messenger Now

controlling relays and motors

2004-11-25 by Astria Nur Irfansyah

My project now is to make a gate access. My main problem 
now is that my program (i am using 8051) looks very OK in 
simulation, BUT in reality the program execution seems to 
show occasionally unpredictable results. My project 
involves relays and motors. I am using SDCC as the 
compiler.

The biggest question is: is the problem caused by HARDWARE 
or SOFTWARE? i look at my software and it seems ok. i look 
at the hardware schematics and it also looks OK. In the 
situation like what i am in now, which should i check 
first? Hardware? or Software?

If i must check hardware, why does the error only happens 
occasionally (getting more often lately) and not ALWAYS?

Sorry if i dont give you much information about my 
project. I am really upset now :(

Regards,
Irfan.
=============================================
Netkuis Instan untuk wilayah Bandung (kode area 022) - SD,SMP,SMA
Berhadiah total puluhan juta rupiah... periode I dimulai 1 April 2004
=============================================

Re: [AVR-Chat] AVR distributor in Indonesia

2004-11-25 by John Samperi

At 03:19 AM 25/11/04 +0000, you wrote:
>   hello.... i live in Indonesia. I want to use ATMEGA16, ATMEGA32,
>ATMEGA8535. do you all know about the supplier for AVR in Indonesia, or
>countries near Indonesia????  

We have a few in Australia :-)   

futurlec.com,  jaycar.com.au, soanarplus.com.au

Regards

John Samperi

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

Re: [AVR-Chat] AVR distributor in Indonesia

2004-11-25 by John Samperi

At 04:15 PM 25/11/04 +1100, you wrote:
>
>Braemac
>

Yes...but they can be a little slack at times :-)

There is also Unique which is part of  Memec

Regards

John Samperi

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

Re: [AVR-Chat] controlling relays and motors

2004-11-25 by Dave VanHorn

>
>The biggest question is: is the problem caused by HARDWARE
>or SOFTWARE? i look at my software and it seems ok. i look
>at the hardware schematics and it also looks OK. In the
>situation like what i am in now, which should i check
>first? Hardware? or Software?
>
>If i must check hardware, why does the error only happens
>occasionally (getting more often lately) and not ALWAYS?

The simple answer, is that you don't always produce the same noise.

>Sorry if i dont give you much information about my
>project. I am really upset now :(


Ok.. First, power the micro from a CLEAN 5V supply, that does not come from 
the same source as the motor power. The only thing they should share, is a 
single point of connection on the ground, so that the signals have a common 
reference.

Second, how are you switching your inductive loads?

Are the relays connected with snubbing diodes?

Re: [AVR-Chat] controlling relays and motors

2004-11-25 by John Samperi

At 11:45 AM 25/11/04 +0700, you wrote:
>
>The biggest question is: is the problem caused by HARDWARE 
>or SOFTWARE? i look at my software and it seems ok. i look 
>at the hardware schematics and it also looks OK. In the 
>situation like what i am in now, which should i check 
>first? Hardware? or Software?

Most likely voltage/current spikes getting into you power supply
and upsetting your firmware. Make sure your motors or relays
have proper noise suppression like capacitors, diodes, MOVs
etc...well that's a start. Of course seeing that you are NOT using
the AVR chips we can't be of much help :-))

Regards

John Samperi

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

Re: [AVR-Chat] controlling relays and motors

2004-11-25 by James Washer

Irfan, after some 20 years debugging computer system problems, I can tell you with near 100% certainty, that the answer to your question:	
	"is the problem caused by HARDWARE or SOFTWARE?"

is YES, the problem is caused by Hardware or Software.

As to whether it is HW or SW in your case, only careful study of the system will tell.

Can you provide details (schematics, source code, etc) of your system?

 - jim

On Thu, 25 Nov 2004 11:45:27 +0700
"Astria Nur Irfansyah" <irfansyah@telkom.net> wrote:
Show quoted textHide quoted text
> My project now is to make a gate access. My main problem
> now is that my program (i am using 8051) looks very OK in
> simulation, BUT in reality the program execution seems to
> show occasionally unpredictable results. My project
> involves relays and motors. I am using SDCC as the
> compiler.
> 
> The biggest question is: is the problem caused by HARDWARE
> or SOFTWARE? i look at my software and it seems ok. i look
> at the hardware schematics and it also looks OK. In the
> situation like what i am in now, which should i check
> first? Hardware? or Software?
> 
> If i must check hardware, why does the error only happens
> occasionally (getting more often lately) and not ALWAYS?
> 
> Sorry if i dont give you much information about my
> project. I am really upset now :(
> 
> Regards,
> Irfan.
> =============================================
> Netkuis Instan untuk wilayah Bandung (kode area 022) - SD,SMP,SMA
> Berhadiah total puluhan juta rupiah... periode I dimulai 1 April 2004
> =============================================
> 
> Yahoo! Groups Sponsor
> ADVERTISEMENT
> 
> 
> 
> ------------------------------------------------
> 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.

Re: controlling relays and motors

2004-11-25 by Astria Nur Irfansyah

I am quite new in this field, i have been practicing electronics
system design for about 2 years. From my experience in
microcontrollers, both hardware and software had caused problems.
Assuming that the electronic design is correct, it turns out that bad
hardware assembly causes problems the most (e.g. bad PCB, bad
soldering joints, etc). Second, bad components. Third, bad firmware code.

I just want to know, if you assemble the electronic hardware yourself,
and you use cheap components like here in Indonesia, so that the
quality isn't so good, what would you check FIRST in case of an
unexpected error of your microcontroller system?? Your hardware or
your software? Because i often waste time checking on one of them
while the problem actually is on the other one :(

Thank you. 

--- In AVR-Chat@yahoogroups.com, James Washer <washer@t...> wrote:
> Irfan, after some 20 years debugging computer system problems, I can
tell you with near 100% certainty, that the answer to your question:	
> 	"is the problem caused by HARDWARE or SOFTWARE?"
> 
> is YES, the problem is caused by Hardware or Software.
> 
> As to whether it is HW or SW in your case, only careful study of the
system will tell.
Show quoted textHide quoted text
> 
> Can you provide details (schematics, source code, etc) of your system?
> 
>  - jim
>

Re: [AVR-Chat] controlling relays and motors

2004-11-25 by Dave VanHorn

At 01:21 AM 11/25/2004, James Washer wrote:


>Irfan, after some 20 years debugging computer system problems, I can tell 
>you with near 100% certainty, that the answer to your question:
>         "is the problem caused by HARDWARE or SOFTWARE?"
>
>is YES, the problem is caused by Hardware or Software.

I was going to say that, then refrained. :)
That's a logical or too.. not an exclusive or.

Re: [AVR-Chat] AVR distributor in Indonesia

2004-11-25 by Peter Gargano

John Samperi wrote:
> At 04:15 PM 25/11/04 +1100, you wrote:
> 
>>Braemac
> Yes...but they can be a little slack at times :-)

Aha! So it's not just me!  Are we talking about Andrew B?

Peter
















.

Re: [AVR-Chat] Re: controlling relays and motors

2004-11-25 by James Washer

You've given us so little to work with, it will be difficult.

I guess I'd start with "removing" the microcontroller portion of this system, and actuating the system with toggle switches, to make sure the mechanical systems work as expected.

Next, I've go back and check my design. As others have suggested, I'd make sure the "low voltage" stuff was well isolated from the "high voltage" stuff. Opto isolators, relays, etc.

And I'd check my code. Look for race conditions, interrupt handling, etc. I'd consider brown-out handling.

Unless there was some reason not too, I'd post my code to an appropriate newsgroup for others to consider it.

good luck

 - jim
 
On Thu, 25 Nov 2004 07:21:03 -0000
"Astria Nur Irfansyah" <irfansyah@telkom.net> wrote:
Show quoted textHide quoted text
> 
> I am quite new in this field, i have been practicing electronics
> system design for about 2 years. From my experience in
> microcontrollers, both hardware and software had caused problems.
> Assuming that the electronic design is correct, it turns out that bad
> hardware assembly causes problems the most (e.g. bad PCB, bad
> soldering joints, etc). Second, bad components. Third, bad firmware code.
> 
> I just want to know, if you assemble the electronic hardware yourself,
> and you use cheap components like here in Indonesia, so that the
> quality isn't so good, what would you check FIRST in case of an
> unexpected error of your microcontroller system?? Your hardware or
> your software? Because i often waste time checking on one of them
> while the problem actually is on the other one :(
> 
> Thank you.
> 
> --- In AVR-Chat@yahoogroups.com, James Washer <washer@t...> wrote:
> > Irfan, after some 20 years debugging computer system problems, I can
> tell you with near 100% certainty, that the answer to your question:     
> >       "is the problem caused by HARDWARE or SOFTWARE?"
> >
> > is YES, the problem is caused by Hardware or Software.
> >
> > As to whether it is HW or SW in your case, only careful study of the
> system will tell.
> >
> > Can you provide details (schematics, source code, etc) of your system?
> >
> >  - jim
> >
> 
> 
> 
> 
> 
> Yahoo! Groups Sponsor
> ADVERTISEMENT
> 
> 
> 
> ------------------------------------------------
> 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.

Re: [AVR-Chat] AVR distributor in Indonesia

2004-11-25 by John Samperi

At 08:05 PM 25/11/04 +1100, you wrote:
>
>Aha! So it's not just me!  Are we talking about Andrew B?
>
I can't remember who it was...but I'm still waiting for him
to ring back with prices for some chips they are distributors
for. Because they didn't have any in stock I had to wait 
6 weeks for them to arrive an had to buy about 500 as
a MOQ. I got on the Internet, orderer them from Future
Electronics on the Thurday and they arrived Monday
morning form the US!!! and at about half their prices
for 96 off including the relatively expensive Fedex charges.

Regards

John Samperi

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

Re: [AVR-Chat] AVR distributor in Indonesia

2004-11-25 by Ivan Vernot

Hi John,
I use Unique in Hurstville.
Peter Dau has been good to date and Unique keep the common AVR stuff in
stock.
Cheers,
Ivan
-------------------------------------------------------------
REAL TIME DESIGNS Pty Ltd
System Solutions in Real Time
203 Cornelia Rd. Toongabbie, NSW 2146

Mobile: 0414 463 633
Phone : +61 2 9636 3828 Fax : +61 2 9636 3838
mailto:ivanv@realtimedesigns.com.au
http://www.realtimedesigns.com.au
-------------------------------------------------------------


----- Original Message -----
Show quoted textHide quoted text
From: "John Samperi" <samperi@ampertronics.com.au>
To: <AVR-Chat@yahoogroups.com>
Sent: Friday, November 26, 2004 9:18 AM
Subject: Re: [AVR-Chat] AVR distributor in Indonesia


>
> At 08:05 PM 25/11/04 +1100, you wrote:
> >
> >Aha! So it's not just me! Are we talking about Andrew B?
> >
> I can't remember who it was...but I'm still waiting for him
> to ring back with prices for some chips they are distributors
> for. Because they didn't have any in stock I had to wait
> 6 weeks for them to arrive an had to buy about 500 as
> a MOQ. I got on the Internet, orderer them from Future
> Electronics on the Thurday and they arrived Monday
> morning form the US!!! and at about half their prices
> for 96 off including the relatively expensive Fedex charges.
>
> Regards
>
> John Samperi
>
> ******************************************************
> Ampertronics Pty. Ltd.
> 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
> Tel. (02) 9674-6495 Fax (02) 9674-8745
> Email: samperi@ampertronics.com.au
> Website http://www.ampertronics.com.au
> * Electronic Design * Custom Products * Contract Assembly
> ******************************************************
>
>
>
> ------------------------ Yahoo! Groups Sponsor --------------------~-->
> $9.95 domain names from Yahoo!. Register anything.
> http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/dN_tlB/TM
> --------------------------------------------------------------------~->
>
>
> 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/
>
>
>
>
>


MSGTAG has notified the sender that you have read this message.

Re: [AVR-Chat] AVR distributor in Indonesia

2004-11-26 by John Samperi

At 10:53 AM 26/11/04 +1100, you wrote:
>   Hi John,
> I use Unique in Hurstville.  Unique keep the common AVR stuff in
> stock.

Mine were Micrel chips not Atmel's. I did mention Unique to the
original mailer. I have been getting my Mega8 by the tube from 
Polykom now Soanarplus (Back to the future!!). Does Unique have
minimum order quantity like they used to?

Regards

John Samperi

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

Re: [AVR-Chat] AVR distributor in Australia ;-) (was in Indonesia)

2004-11-26 by Ivan Vernot


----- Original Message -----
From: "John Samperi" <samperi@ampertronics.com.au>
To: <AVR-Chat@yahoogroups.com>
Sent: Friday, November 26, 2004 1:35 PM
Subject: Re: [AVR-Chat] AVR distributor in Indonesia


>
> At 10:53 AM 26/11/04 +1100, you wrote:
> > Hi John,
> > I use Unique in Hurstville. Unique keep the common AVR stuff in
> > stock.
>
> Mine were Micrel chips not Atmel's. I did mention Unique to the
> original mailer. I have been getting my Mega8 by the tube from
> Polykom now Soanarplus (Back to the future!!). Does Unique have
> minimum order quantity like they used to?

Provided it is in stock I have had no trouble getting 'tube' qtys
I

>
> Regards
>
> John Samperi
>
> ******************************************************
> Ampertronics Pty. Ltd.
> 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
> Tel. (02) 9674-6495 Fax (02) 9674-8745
> Email: samperi@ampertronics.com.au
> Website http://www.ampertronics.com.au
> * Electronic Design * Custom Products * Contract Assembly
> ******************************************************
>
>
>
> ------------------------ Yahoo! Groups Sponsor --------------------~-->
> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
> Now with Pop-Up Blocker. Get it for free!
> http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/dN_tlB/TM
> --------------------------------------------------------------------~->
>
>
> 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/
>
>
>
>
>

MSGTAG has notified the sender that you have read this message.

RE: [AVR-Chat] controlling relays and motors

2004-11-26 by wbounce

I agree with the CLEAN 5V but you do not need 2 sources. You can use the
same source for motor and MCU. You need to put a separate voltage
regulator on the MCU circuit from the motor circuit with caps going from
the input to ground and from the output to ground. 

Also an important consideration is the type of voltage regulator you are
using. If it is a 7805 you need something like 1.5 volts above the
output which over 6.5 volts. This means you can not use 4 AA batteries.
Six AA 1.5 V batteries will give you plenty of room but 6 AA
rechargeables only have 1.2V which is still borderline.
Show quoted textHide quoted text
-----Original Message-----
From: Dave VanHorn [mailto:dvanhorn@dvanhorn.org] 
Sent: Thursday, November 25, 2004 1:15 AM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] controlling relays and motors




>
>The biggest question is: is the problem caused by HARDWARE
>or SOFTWARE? i look at my software and it seems ok. i look
>at the hardware schematics and it also looks OK. In the situation like 
>what i am in now, which should i check first? Hardware? or Software?
>
>If i must check hardware, why does the error only happens occasionally 
>(getting more often lately) and not ALWAYS?

The simple answer, is that you don't always produce the same noise.

>Sorry if i dont give you much information about my
>project. I am really upset now :(


Ok.. First, power the micro from a CLEAN 5V supply, that does not come
from 
the same source as the motor power. The only thing they should share, is
a 
single point of connection on the ground, so that the signals have a
common 
reference.

Second, how are you switching your inductive loads?

Are the relays connected with snubbing diodes?





 
Yahoo! Groups Links

Re: AVR distributor in Indonesia

2004-11-26 by Astria Nur Irfansyah

:)

Here's the translation:

> Ridho Alpha wrote:
>> ooo klo itu tau...atas nama pak adi kan??? di jakarta

Oh, i already know that... the email owner is Mr. Adi, right? In
Jakarta ...

>> emang sgto si...tapi pengen beli kyk digikey gto... klo 
>>digiware 
>> barangnya suka ga ready stock
>>  

In Jakarta (the prices) are around that ... but i want something like
digikey, u know ... in digiware, they often run out of stock

>> maaf situ laki apa perempuan??

Excuse me, are u a boy or a girl??


Regards,
Irfan.

On Fri, 26 Nov 2004 20:13:52 +1100
 Peter Gargano <peter@techedge.com.au> wrote:
> 
--- In AVR-Chat@yahoogroups.com, Peter Gargano <peter@t...> wrote:
Show quoted textHide quoted text
> Ridho Alpha wrote:
> 
> > ooo klo itu tau...atas nama pak adi kan??? di jakarta
> > emang sgto si...tapi pengen beli kyk digikey gto... klo digiware 
> > barangnya suka ga ready stock
> >  
> > maaf situ laki apa perempuan??
> 
> 
> Translation? ....
> 
> Ooo if that tau.
> .
> .
> On behalf of Sir superior would???
> In jakarta
> emang sgto the.
> .
> .
> But pengen bought kyk digikey gto.
> .
> .
> If digiware his thing liked ga ready stock
> 
> Sorry there laki whether the woman??

Re: [AVR-Chat] AVR distributor in Indonesia

2004-11-26 by Ridho Alpha

ooo klo itu tau...atas nama pak adi kan??? di jakarta
emang sgto si...tapi pengen beli kyk digikey gto... klo digiware barangnya suka ga ready stock
maaf situ laki apa perempuan??


Astria Nur Irfansyah wrote:
Yes, you can order from innovative electronics. Usually i
email them: sales@innovativeelectronics.com. Their office
is in Surabaya.

Or you can order from their website: www.digi-ware.com.

Payment is made via BCA cash transfer.

I bought ATmega16 about Rp72500, and ATmega8515 about
Rp52.500.

Btw, gimana kabarnya Ridho? Tinggal di mana e? :D

Regards,
Irfan.

Engineer
RDEV
PT Gamatechno
Yogyakarta
Indonesia

On Thu, 25 Nov 2004 03:19:13 +0000 (GMT)
Ridho Alpha wrote:
>
> hello....
>
> i live in Indonesia.
>
> I want to use ATMEGA16, ATMEGA32, ATMEGA8535.
>
> do you all know about the supplier for AVR in Indonesia,
>or countries near Indonesia????
>
>
>
> thank you
>
>
> ---------------------------------
> Yahoo! Messenger - Communicate instantly..."Ping" your
>friends today! Download Messenger Now

=============================================
Netkuis Instan untuk wilayah Bandung (kode area 022) - SD,SMP,SMA
Berhadiah total puluhan juta rupiah... periode I dimulai 1 April 2004
=============================================

Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now

Re: [AVR-Chat] AVR distributor in Indonesia

2004-11-26 by Peter Gargano

Ridho Alpha wrote:

> ooo klo itu tau...atas nama pak adi kan??? di jakarta
> emang sgto si...tapi pengen beli kyk digikey gto... klo digiware 
> barangnya suka ga ready stock
>  
> maaf situ laki apa perempuan??


Translation? ....

Ooo if that tau.
.
.
On behalf of Sir superior would???
In jakarta
emang sgto the.
.
.
But pengen bought kyk digikey gto.
.
.
If digiware his thing liked ga ready stock

Sorry there laki whether the woman??

Re: [AVR-Chat] AVR distributor in Indonesia

2004-11-26 by Astria Nur Irfansyah

You can call me Irfan (obviously i'm a boy, not a girl).
Mmh, so you live in Jakarta? I believe you can get stuff 
much easier than i do. Have you tried www.selc.co.id? Or 
go to their shop directly? They sell AVRs with a higher 
price. If you would be patient, i will ask my friend 
whether he knows another supplier. In surabaya there is 
another shop, delta electronics. They sell AVRs, but often 
out of stock. The prices are not expensive though.

Regards,
irfan.

Aku panggilannya Irfan (yo jelas laki-laki lah :D).
Jadi Ridho tinggal di Jakarta ya? Mestinya gampanglah cari 
AVR di situ. Btw, udah nyoba www.selc.co.id belum? Atau 
pergi ke cabang SELC nya langsung. Tapi di situ harganya 
lebih mahal. Ntar aku tanyakan temenku, mungkin dia tahu 
distributor lain. Selain innovativeelectronics, di 
surabaya juga ada delta electronics. Dia juga jarang ready 
stock, tapi harganya lumayan murah kalo pas ada.

Salam,
irfan



On Fri, 26 Nov 2004 08:46:43 +0000 (GMT)
  Ridho Alpha <pendekar_ridho@yahoo.com> wrote:
> ooo klo itu tau...atas nama pak adi kan??? di jakarta
> emang sgto si...tapi pengen beli kyk digikey gto... klo 
>digiware barangnya suka ga ready stock
> 
> maaf situ laki apa perempuan??
> 
> 
> Astria Nur Irfansyah <irfansyah@telkom.net> wrote:Yes, 
>you can order from innovative electronics. Usually i 
> email them: sales@innovativeelectronics.com. Their 
>office 
> is in Surabaya.
> 
> Or you can order from their website: www.digi-ware.com.
> 
> Payment is made via BCA cash transfer.
> 
> I bought ATmega16 about Rp72500, and ATmega8515 about 
> Rp52.500.
> 
> Btw, gimana kabarnya Ridho? Tinggal di mana e? :D
> 
> Regards,
> Irfan.
> 
> Engineer
> RDEV
> PT Gamatechno
> Yogyakarta
> Indonesia
> 
> On Thu, 25 Nov 2004 03:19:13 +0000 (GMT)
>  Ridho Alpha <pendekar_ridho@yahoo.com> wrote:
>> 
>> hello....
>> 
>> i live in Indonesia.
>> 
>> I want to use ATMEGA16, ATMEGA32, ATMEGA8535.
>> 
>> do you all know about the supplier for AVR in Indonesia, 
>>or countries near Indonesia????
>> 
>> 
>> 
>> thank you
>> 
>> 
>> ---------------------------------
>>  Yahoo! Messenger - Communicate instantly..."Ping" your 
>>friends today! Download Messenger Now
> 
> =============================================
> Netkuis Instan untuk wilayah Bandung (kode area 022) - 
>SD,SMP,SMA
> Berhadiah total puluhan juta rupiah... periode I dimulai 
>1 April 2004
> =============================================
> 
> 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. 
> 
> 
> 
> 
> ---------------------------------
>  Yahoo! Messenger - Communicate instantly..."Ping" your 
>friends today! Download Messenger Now

=============================================
Netkuis Instan untuk wilayah Bandung (kode area 022) - SD,SMP,SMA
Berhadiah total puluhan juta rupiah... periode I dimulai 1 April 2004
=============================================

Re: [AVR-Chat] Re: AVR distributor in Indonesia

2004-11-26 by Peter Gargano

Ahh, never trust those canned translations ...

  http://www.toggletext.com/kataku_trial.php


Astria Nur Irfansyah wrote:
Show quoted textHide quoted text
> 
> :)
> 
> Here's the translation:
> 
> 
>>Ridho Alpha wrote:
>>
>>>ooo klo itu tau...atas nama pak adi kan??? di jakarta
> 
> 
> Oh, i already know that... the email owner is Mr. Adi, right? In
> Jakarta ...

Re: AVR distributor in Indonesia

2004-11-27 by Astria Nur Irfansyah

To translate Ridho's post, i think something like an "SMS message 
recognizer" should be used ;)

It seems that his habbit of shortening words (like in SMS) 
influences the way he writes an e-mail :D

Btw, in my other thread "Controlling relays and motors", it turns 
out that my problem was actually power-related, or maybe noise-
related. My colleague suggested me that i make a separate track in 
the PCB for the power lines of the motors/relays. 
Actually i already did this, but i forgot to separate the GROUND 
track as well. After i made a separate GROUND track for the motors, 
the microcontroller system works perfectly normal :)

So, my conclusion is: blame hardware first, and then your software ;)

Regards,
Irfan.

--- In AVR-Chat@yahoogroups.com, Peter Gargano <peter@t...> wrote:
Show quoted textHide quoted text
> Ahh, never trust those canned translations ...
> 
>   http://www.toggletext.com/kataku_trial.php
> 
> 
> Astria Nur Irfansyah wrote:
> > 
> > :)
> > 
> > Here's the translation:
> > 
> > 
> >>Ridho Alpha wrote:
> >>
> >>>ooo klo itu tau...atas nama pak adi kan??? di jakarta
> > 
> > 
> > Oh, i already know that... the email owner is Mr. Adi, right? In
> > Jakarta ...

AVR,PWM,transistor

2004-11-28 by Ridho Alpha

hello

sorry for the untranslated email??? i was mis-sent to the groups...sorry....

now i want to ask

i want to control motor speed, i use atmega16, xtal 11.0592 MHz and timer1 for generate PWM....and transistor for switching.

1. which one is best timer1 configuration for motor control from OCR1???

2. which is better for switching transistor, TIP35 (BJT darlington) or IRF540 (MOSFET)????

please give me clue.....

regarding forwart to your reply soon

Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now

Re: [AVR-Chat] AVR,PWM,transistor

2004-11-29 by Astria Nur Irfansyah

If your DC motor is small (less than 600 mA), you can use 
L293D for the driver. It is widely available here :)

And about the TIP35, i dont think it is a darlington. Its 
Hfe is only 25.  And i dont think it is wise to uses NPN 
transistor because the output pin of an 8051 (AVR too?) is 
initially HIGH. I prefer the IRF540. It is said from the 
datasheet it can be used for high speed switching 
applications. I used an IRF540 myself, but as a high 
current switch. It works well. Another option is TIP125, 
it is a PNP BJT darlington. This is also widely available 
here :)

About the timer 1, give me time to learn AVR again. Or i 
will ask my friends at campus ;)

Regards,
Irfan.

On Sun, 28 Nov 2004 04:05:59 +0000 (GMT)
  Ridho Alpha <pendekar_ridho@yahoo.com> wrote:
> 
> hello
> 
> sorry for the untranslated email??? i was mis-sent to 
>the groups...sorry....
> 
> now i want to ask
> 
> i want to control motor speed, i use atmega16, xtal 
>11.0592 MHz and timer1 for generate PWM....and transistor 
>for switching.
> 
> 1. which one is best timer1 configuration for motor 
>control from OCR1???
> 
> 2. which is better for switching transistor, TIP35 (BJT 
>darlington) or IRF540 (MOSFET)????
> 
> 
> 
> please give me clue.....
> 
> regarding forwart to your reply soon
> 
> 
> ---------------------------------
>  Yahoo! Messenger - Communicate instantly..."Ping" your 
>friends today! Download Messenger Now

=============================================
Netkuis Instan untuk wilayah Bandung (kode area 022) - SD,SMP,SMA
Berhadiah total puluhan juta rupiah... periode I dimulai 1 April 2004
=============================================

Re: [AVR-Chat] AVR,PWM,transistor

2004-11-29 by kc wong

i have try the IRF series (IRF640 & 740), there are better for high speed switching in motor control.i dont know how many voltage & current of your motor control so u better check the data sheet of the power mosfet.always choose the larger voltage and current rating so that there will not easy get hot.also remember to add heat sinks.

Ridho Alpha <pendekar_ridho@yahoo.com> wrote:
hello

sorry for the untranslated email??? i was mis-sent to the groups...sorry....

now i want to ask

i want to control motor speed, i use atmega16, xtal 11.0592 MHz and timer1 for generate PWM....and transistor for switching.

1. which one is best timer1 configuration for motor control from OCR1???

2. which is better for switching transistor, TIP35 (BJT darlington) or IRF540 (MOSFET)????

 

please give me clue.....

regarding forwart to your reply soon


---------------------------------
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now 
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!?
 The all-new My Yahoo! � Get yours free!

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.