Yahoo Groups archive

AVR-Chat

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

Messages

Browse messages

Page 264 of 307 · 15341 messages matched

Re: Simple UART Code

2004-10-08 by upand_at_them

> Well, you can't shove chars in faster than they go out.. Obviously. But I noticed the two stage pipeline. and if you wait until something comes out the end of the pipe before you put anything in it cuts the speed down. I just didn't know the lag between data register and transm

Thread view Attachments: 0

Re: [AVR-Chat] Re: Simple UART Code

2004-10-08 by Dave VanHorn

At 11:56 AM 10/8/2004, upand_at_them wrote: >For transmit, does checking TXC instead of UDRE limit the max >transmit speed? Well, you can't shove chars in faster than they go out.. > And what is the lag between writing to UDR and it >getting put into the transmit shift register?

Thread view Attachments: 0

Re: Simple UART Code

2004-10-08 by upand_at_them

For transmit, does checking TXC instead of UDRE limit the max transmit speed? And what is the lag between writing to UDR and it getting put into the transmit shift register? Mike --- In AVR-Chat@yahoogroups.com, JChavez@s... wrote: > > > > > > > It depends on what AVR you are usi

Thread view Attachments: 0

Re: Radio Shack parts

2004-10-08 by Ken

I live in Maine but was out in Foster City CA last week for work. Just so happens I was 5 minutes away from Jameco and I needed a few parts so I programmed the rental car's GPS system to the street address on the catelog and drove over. Didn't really see anything impressive but d

Thread view Attachments: 0

RE: [AVR-Chat] Re: Radio Shack parts

2004-10-07 by stevech

that's the Costco business model. But Costco sells only mass market appeal items. And they have free food samples. -----Original Message----- From: Dave Lag [mailto:daveismissing@rogers.com] Sent: Wednesday, October 06, 2004 7:24 AM To: AVR-Chat@yahoogroups.com Subject: RE: [AVR-

Thread view Attachments: 0

Distributors (was Re: Radio Shack parts)

2004-10-06 by Dave Mucha

--- In AVR-Chat@yahoogroups.com, "Graham Davies" wrote: > > --- In AVR-Chat@yahoogroups.com, "Larry Barello" wrote: > > > I think they stock a lot > > more than you imagine! > > It is also my experience that just about anything you order from Digi- > Key that they claim to stock

Thread view Attachments: 0

Re: [AVR-Chat] Simple UART Code

2004-10-06 by JChavez@soboce.com

It depends on what AVR you are using however this shoul help.. void RS232_init(void) { outp(0x18, UCR); //outp((char)UBR, UBRR); outp(8, UBRR); // 12=38400 8=57600 3=115200 sbi(USR, TXC); // UART Trnsmt complete (clear TXC flag but logical 1) cbi(DDRD, PD0); // RXD (UART input li

Thread view Attachments: 0

Re: [AVR-Chat] Re: Simple UART Code

2004-10-06 by Dave VanHorn

At 02:00 PM 10/6/2004, upand_at_them wrote: >Do AVR's have a receive flag like PIC's do? Depends on the chip. Some have USIs that don't do async, others have USARTS that do. The USARTs have flags and interrupts for both directions. I generally use them with tx and rx buffers, and

Thread view Attachments: 0

RES: [AVR-Chat] Simple UART Code

2004-10-06 by Edson L. Bestvina

Daniel Look this link: http://www.cesko.host.sk/hardware.php Edson -----Mensagem original----- De: Daniel Boyer [mailto:dpboyer@dpicts.com] Enviada em: quarta-feira, 6 de outubro de 2004 14:42 Para: AVR-Chat@yahoogroups.com Assunto: [AVR-Chat] Simple UART Code Does anyone have a

Thread view Attachments: 0

Re: [AVR-Chat] Simple UART Code

2004-10-06 by Dave VanHorn

At 12:41 PM 10/6/2004, Daniel Boyer wrote: >Does anyone have a simple program, or link to a program for simple >interface via uart with a terminal (ASM prefered)? The simplest way, is to set up the uart, and then load bytes into the uart tx register, looping till it's empty for t

Thread view Attachments: 0

Simple UART Code

2004-10-06 by Daniel Boyer

Does anyone have a simple program, or link to a program for simple interface via uart with a terminal (ASM prefered)? I just want something to quickly load into one of my chips to test my new 232 and new usb interface circuits, so something that simple echos character, sent from

Thread view Attachments: 0

Re: Simple UART Code

2004-10-06 by upand_at_them

Do AVR's have a receive flag like PIC's do? If so the pseudo-code would be this: while 1 ...while not receive_flag ...wend ... ...get receive_register data ...put data in transmit_register wend Mike --- In AVR-Chat@yahoogroups.com, Dave VanHorn wrote: > At 12:41 PM 10/6/2004, Dan

Thread view Attachments: 0

Re: [AVR-Chat] Interfacing with Smart Card Reader

2004-10-06 by James Wagner

The reader handles all of the interface to the card. It appears that the reader uses async serial (ie, UART based) so there should be no real technical problem. You will need to find out what is the protocol that the reader expects on its serial port. You WILL need an RS232 inter

Thread view Attachments: 0

RE: [AVR-Chat] Re: Radio Shack parts

2004-10-06 by Dave Lag

If they have a 15 day stock turnover and their purchase terms are net30 + whose money is it anyways ;) At 01:05 AM 10/6/04, you wrote: >really? This would be a billion $ inventory > >-----Original Message----- >From: Dave VanHorn [mailto:dvanhorn@dvanhorn.org] >Sent: Tuesday, Oct

Thread view Attachments: 0

Distributors (was Re: Radio Shack parts)

2004-10-06 by Graham Davies

--- In AVR-Chat@yahoogroups.com, "Larry Barello" wrote: > I think they stock a lot > more than you imagine! It is also my experience that just about anything you order from Digi- Key that they claim to stock is in stock and ready to ship. I find this to be slightly less so at Mou

Thread view Attachments: 0

Re: Radio Shack parts

2004-10-06 by upand_at_them

> darn, I pay Jameco 99 cents per hundred. must be on the 'saw me > comming' list. Nope, that's what I pay too, but I just checked their site and they're discounted to $0.69. Must've just happened. Mike --- In AVR-Chat@yahoogroups.com, "Dave Mucha" wrote: > > --- In AVR-Chat@yaho

Thread view Attachments: 0

Re: [AVR-Chat] RS485 w/ MAX481, terminators not needed?

2004-10-06 by John Samperi

Thanks for the clarification. At 07:29 PM 5/10/04 -0400, you wrote: > >Do you have a link to the thread - I'd be interested in that. Just got to the Avfreaks.com site and the first forum. Then do a seach for RS485 in the last 30 days and it should come up. (I made some silly comm

Thread view Attachments: 0

RE: [AVR-Chat] Re: Radio Shack parts

2004-10-06 by Dave VanHorn

At 12:05 AM 10/6/2004, stevech wrote: >really? This would be a billion $ inventory Sanity check: I can call them at 7PM, and have the parts in hand here by 10 AM.

Thread view Attachments: 0

Interfacing with Smart Card Reader

2004-10-06 by Astria Nur Irfansyah

My friend has a Reflex 72 v2 (Schlumberger) smart card reader. It has an RS-232 connection to the PC. I have no experience using it, but i wonder if i can use this smart card reader directly from a microcontroller based system. The smart card i am using is an EMV card. Anyone has

Thread view Attachments: 0

RE: [AVR-Chat] Re: Radio Shack parts

2004-10-06 by stevech

really? This would be a billion $ inventory -----Original Message----- From: Dave VanHorn [mailto:dvanhorn@dvanhorn.org] Sent: Tuesday, October 05, 2004 9:11 PM To: AVR-Chat@yahoogroups.com; AVR-Chat@yahoogroups.com Subject: RE: [AVR-Chat] Re: Radio Shack parts > >One tip: on the

Thread view Attachments: 0

Re: [AVR-Chat] Re: Radio Shack parts

2004-10-06 by Rick Hughes

Dave VanHorn wrote: >The website will tell you how many they have of any part number. >Yes, they really have that many parts! > > > Same is true of Mouser. It's probably worth mentioning that Mouser doesn't charge a handling fee for orders below $25 USD like Digikey. -Rick

Thread view Attachments: 0

RE: [AVR-Chat] Re: Radio Shack parts

2004-10-06 by Dave VanHorn

> >One tip: on the Digikey catalog, stuff that ends with -ND means it is >(normally) on the shelf ready to go. All other stuff is special order. -ND is a relic of the early days, means "No Discount". The website will tell you how many they have of any part number. Yes, they reall

Thread view Attachments: 0

RE: [AVR-Chat] Re: Radio Shack parts

2004-10-06 by Larry Barello

I think they stock a lot more than you imagine! Almost everything I ever order from Digikey ships literally within an hour or two. I have had a few mad scrambles to the phone after clicking on the completion button and remembering something I forgot to order. Sometimes I catch it

Thread view Attachments: 0

RE: [AVR-Chat] Re: Radio Shack parts

2004-10-06 by stevech

DigiKey and Mouser -- their catalogs list all, ALL, of the products and variations of many companies. Obviously these distributors cannot stock in a warehouse even 10% of what's in these catalogs. So, is their business built on being able to get the manufacturer to deliver to the

Thread view Attachments: 0

Re: [AVR-Chat] RS485 w/ MAX481, terminators not needed?

2004-10-05 by Brian Dean

On Tue, Oct 05, 2004 at 05:42:54PM +1000, John Samperi wrote: > 0x01 - invalid parameter or command not possible. This would be > the response if one commanded a node to run at 115200 baud, > but the node could not actually run that fast. > > How would the node respond if it cann

Thread view Attachments: 0

Re: Radio Shack parts

2004-10-05 by Dave Mucha

--- In AVR-Chat@yahoogroups.com, "upand_at_them" wrote: > > > I can buy 200 resistors for $5.00 (all of 1 value) > > Jameco sells a pack of 100 carbon film resistors for $0.69. > > Mike darn, I pay Jameco 99 cents per hundred. must be on the 'saw me comming' list. I like Mouser's

Thread view Attachments: 0

RE: [AVR-Chat] (Was) Re: Why won't this work?

2004-10-05 by John Samperi

At 09:45 PM 10/4/04 -0500, you wrote: > >The one thing that I would say is sort of consistent, is that the larger the codeset, the bigger the problems, but even then, some days are fine. > EUREKA!!! I got it. It has something to do with the moon phase or the weather :-)) Regards

Thread view Attachments: 0

Re: stange behavior

2004-10-05 by aymanme

--- In AVR-Chat@yahoogroups.com, "dpalu2" wrote: > newAverage = Beta * oldAverage + (1 - Beta) * instantaneousReading > Where: 0 > On some devices, this works just fine. On some, the newAverage > reading > "blows" up (i.e., gets real big or real small) , even if I have zero > vol

Thread view Attachments: 0

Re: Using an AVR to drive a relay?Is it possible?

2004-10-05 by Duffer

> Date: Mon, 04 Oct 2004 17:21:56 -0000 > From: "mech_research" >Subject: Using an AVR to drive a relay?Is it possible? > > >I would be greatly appreciate it if anyone >could share any pointers regarding this subject. >I am investigating if using an avr to control the operation >

Thread view Attachments: 0

Re: Radio Shack parts

2004-10-05 by upand_at_them

> I can buy 200 resistors for $5.00 (all of 1 value) Jameco sells a pack of 100 carbon film resistors for $0.69. Mike --- In AVR-Chat@yahoogroups.com, "Ken" wrote: > > IMO, Radio Shacks pricing is more than 2 times. I think it's on the > order of 3 to 4 times but given that they

Thread view Attachments: 0

Re: [AVR-Chat] Re: Radio Shack parts

2004-10-05 by Mike Bronosky

I agree with all points I have seen on the Radio Shack matter. If have enough, price wise and a few days shipping is OK, I prefer to order form Digi-Key. However, if I only need a $1.98 or so in parts or need the parts right now, I go to a local electronics wholesale vendor or RS

Thread view Attachments: 0

Re: [AVR-Chat] malloc/heap issues?

2004-10-05 by James Russo

Larry, Thanks for the reply. I am using the latest winavr (20040720) and the latest avr studio. I think I found a solution to my problem, but I am still testing it. This thread provides a new parser dll for dwarf. http://www.avrfreaks.org/phpBB2/viewtopic.php?t=23276&highlight=li

Thread view Attachments: 0

RE: [AVR-Chat] malloc/heap issues?

2004-10-05 by Larry Barello

The latest winavr has the elf/dwarf support. It is new. You probably should direct these questions to the avr-gcc-list (http://avr1.org) One way around this is to use the previous versions avr-coff and avr-coff-ext output formats. The latter works pretty well with studio 4.xxx al

Thread view Attachments: 0

Re: [AVR-Chat] malloc/heap issues?

2004-10-05 by James Russo

Replying to my own email... But I found out more information... If the following statement is included the problem occurs: char *my_packet_types[] = {"unk","ping","pong","unk","unk","ack","nak","eeread","eeresp", "alive","eedetailsreq","eedetailsresp","updaterp", "esensordata","s

Thread view Attachments: 0

stange behavior

2004-10-05 by dpalu2

Hi All: Have any of you ever come accross a bad batch of Atmel AT90S8535 chips? The reason I ask is as follows. I have deployed an application that does some "smoothing" of airflow measurement readings with a simple equation: newAverage = Beta * oldAverage + (1 - Beta) * instanta

Thread view Attachments: 0

Re: [AVR-Chat] RS485 w/ MAX481, terminators not needed?

2004-10-05 by John Samperi

At 11:09 PM 4/10/04 -0400, you wrote: >protocol with a few bytes of leadin (like ROBIN - see >http://www.bdmicro.com/code/robin), you might not even notice these >"glitches". Very interesting, but the following doesn't make any sense: 0x01 - invalid parameter or command not possi

Thread view Attachments: 0

RE: [AVR-Chat] (Was) Re: Why won't this work?

2004-10-05 by Dave VanHorn

At 05:37 PM 10/5/2004, John Samperi wrote: >At 09:45 PM 10/4/04 -0500, you wrote: >> >>The one thing that I would say is sort of consistent, is that the larger >the codeset, the bigger the problems, but even then, some days are fine. >> >EUREKA!!! I got it. It has something to do

Thread view Attachments: 0

Re: [AVR-Chat] RS485 w/ MAX481, terminators not needed?

2004-10-05 by James Russo

Brian, Thanks for your explanation. It makes sense. I am going to go with the terminating resistors and some pull up/down resistors. I've been using it like this for the last 3 days or so and it seems to be working well. Take care, -jr Brian Dean wrote: > On Sat, Oct 02, 2004 at

Thread view Attachments: 0

malloc/heap issues?

2004-10-05 by James Russo

Hello, Ok, I give up. Spent the last 4 hours on this problem. I have a ~12k application trying to go into a atmega128. I seem to have this problem when this one module is loaded in, malloc starts returning large values greater then the size of ram. Its like it almost thinks that

Thread view Attachments: 0

Re: [AVR-Chat] Re: Using an AVR to drive a relay?Is it possible?

2004-10-05 by Robert Adsett

At 05:49 PM 10/4/04 -0500, you wrote: >I see no reason that you couldn't take an AVR, add some >protection/interface circuitry, and use it as an industrial >controller. Take the safety systems outside the controller though. I >wouldn't trust that to software. Well as long as you

Thread view Attachments: 0

Re: [AVR-Chat] RS485 w/ MAX481, terminators not needed?

2004-10-05 by Brian Dean

On Sat, Oct 02, 2004 at 01:03:48AM -0400, James Russo wrote: > My situation is that with the terminators on, it doesn't keep the RO > high. With them off it does. I have put pull-up/pull-down resistors > and activated the terminators and all seems well. This makes sense, actually

Thread view Attachments: 0

RE: [AVR-Chat] (Was) Re: Why won't this work?

2004-10-05 by Dave VanHorn

At 09:35 PM 10/4/2004, John Samperi wrote: >At 08:11 PM 4/10/04 -0400, you wrote: >> But... all my problems traced back to a flaky serial port. > >Same problems with different ports AND also different computers. :-( I've had issues with studio that seem to follow code sets. For e

Thread view Attachments: 0

RE: [AVR-Chat] (Was) Re: Why won't this work?

2004-10-05 by John Samperi

At 08:11 PM 4/10/04 -0400, you wrote: > But... all my problems traced back to a flaky serial port. Same problems with different ports AND also different computers. :-( > In general I find avrstudio 4.x buggier then the 3.5x. And will usually >run 3.56 unless I must run 4 for some

Thread view Attachments: 0

Re: [AVR-Chat] GCC "swicht" WINAVR

2004-10-05 by James Russo

You have 'switch' spelling incorrectly.. switch(data_temp) { ... } fjch100 wrote: > > Hi, I have problems with the implementation of "swicht" > this is the code: > > swicht (data_temp) { > > case TIME_NON_VALID: > // some code... > break; > > case TIME_ZERO: > // some code... > b

Thread view Attachments: 0

Re: [AVR-Chat] GCC "swicht" WINAVR

2004-10-05 by Mirza

Hi, use "switch" not "swicht" -mirza- --- fjch100 wrote: > > > Hi, I have problems with the implementation of > "swicht" > this is the code: > > swicht (data_temp) { > > case TIME_NON_VALID: > // some code... > break; > > case TIME_ZERO: > // some code... > break; > > } > > > thi

Thread view Attachments: 0

RE: [AVR-Chat] Re: Radio Shack parts

2004-10-05 by Daniel Boyer

I remember hearing, a couple of years ago, that they were going to be fazing out all componet parts... Soon after I heard that I saw lots of stuff go on clearance and component shelf space reduce significantly. Everytime I go in a RS there seems to be a few less "components" and

Thread view Attachments: 0

RE: [AVR-Chat] (Was) Re: Why won't this work?

2004-10-05 by Henry Carl Ott

I'll chirp in here, I've not run 98 in a while, but I do vaguely remember having some stability issues with the ice200 and win98. I know this is not exactly your problem, but may give another avenue to explore (or perhaps just waste more time) But... all my problems traced back t

Thread view Attachments: 0

GCC "swicht" WINAVR

2004-10-05 by fjch100

Hi, I have problems with the implementation of "swicht" this is the code: swicht (data_temp) { case TIME_NON_VALID: // some code... break; case TIME_ZERO: // some code... break; } this is the error from GCC: test_rmt.c:139: warning: implicit declaration of function `swicht'

Thread view Attachments: 0

RE: [AVR-Chat] (Was) Re: Why won't this work?

2004-10-04 by John Samperi

At 07:56 PM 3/10/04 -0700, you wrote: > >I have not used the ICE200 with 4.x yet. Does reset (shift-F5) solve the >problem? > NO. :-(( The only thing that seems to get it working again (sometimes) is to repeatedly go into "select platform and device" i.e. ICE200 and 8535 in this

Thread view Attachments: 0

Re: [AVR-Chat] Re: Using an AVR to drive a relay?Is it possible?

2004-10-04 by Dave VanHorn

> >I'd be tempted to start with Grayhill I/O modules for this. They are >isolated which eliminates a lot of worries. I know they work well at >isolating the micro from inductive kick back. Exactly what I was going to suggest. :) I see no reason that you couldn't take an AVR, add

Thread view Attachments: 0

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.