Re: Counter/Timer Question
2005-06-23 by arhodes19044
Now, let us know how it turned out! --- In AVR-Chat@yahoogroups.com, "jeff_smith_8992" wrote: > Thanks to everyone for all the Timer/Counter information and tips. > > Jeff
Yahoo Groups archive
Messages
Page 208 of 307 · 15341 messages matched
2005-06-23 by arhodes19044
Now, let us know how it turned out! --- In AVR-Chat@yahoogroups.com, "jeff_smith_8992" wrote: > Thanks to everyone for all the Timer/Counter information and tips. > > Jeff
2005-06-23 by Colin Paul Gloster
Somebody emailed: "I want to do some test with an H-bridge, but I don´t know how to use the scanf() function for receive characters from the UART. [..]" The scanf() function is documented in the book "The C Programming Language" by Brian W. Kernighan and Dennis M. Ritchie. Its co
2005-06-22 by xxximena2000
Hi... I want to do some test with an H-bridge, but I don´t know how to use the scanf() function for receive characters from the UART. If anybody have information abuot it, I´ll appreciate any help!!! Thanks
2005-06-21 by jeff_smith_8992
Thanks to everyone for all the Timer/Counter information and tips. Jeff --- In AVR-Chat@yahoogroups.com, "arhodes19044" wrote: > I do not think it is necessary to interrupt early, then dawdle for a > few cycles, then execute the interrupt code. In the simpler > method, there is a
2005-06-21 by Farzlina Ab.Hadi
hi, does anyone has work with cml modem cmx868 for v.22bis before? i try to find some example regarding the setting of the registers in cmx868 but only found the power up sequence. this is my first time working with modem and a bit lost. thank you for any help/reply elin
2005-06-21 by arhodes19044
I do not think it is necessary to interrupt early, then dawdle for a few cycles, then execute the interrupt code. In the simpler method, there is a slight "phase delay" of the interrupt code execution, but since it executes everytime with the same delay, then the next time it exe
2005-06-21 by Roy E. Burrage
You can also set up the prescaler and count registers for something slightly less than what you require, then waste a few cycles in the ISR to get your required time. System clock = 1 MHz Using a prescaler value of 32 and a count register value of 31 would give 992 timer overflow
2005-06-20 by arhodes19044
I agree that it is a major pain in the neck having powers of 2 as the prescaler, but NOT powers of 2 as the usual crystal freq. In my case I needed a 1 millisecond clock. So, I used a 16 bit clock for my 16MHz crystal. (8 bits would not do). I uses CTC mode with a prescaler of ze
2005-06-20 by James Hatley
Hello Mr. Jeff Smith, Well as the others have mentioned the internal oscillator isn't too accurate. 2% would be the best estimate of how fine you can tune it. But if that is OK, it is easy to get pretty much any even number you want. Study the Atmel manual carefully on your timer
2005-06-20 by David Kelly
On Mon, Jun 20, 2005 at 04:38:09PM -0000, jeff_smith_8992 wrote: > > When I use the AVR's internal oscillator or an external crystal > oscillator, like 1.0 MHz, is the frequency 1,000,000 Hz (give or take > a few Hz for accuracy, temp, etc)? And not a power of 2, like 2 to > the
2005-06-20 by Dave VanHorn
At 11:38 AM 6/20/2005, jeff_smith_8992 wrote: >When I use the AVR's internal oscillator or an external crystal >oscillator, like 1.0 MHz, is the frequency 1,000,000 You would be looking at something more like 1-ish MHz.
2005-06-20 by Ralph Hilton
On Mon, 20 Jun 2005 16:38:09 -0000 you wrote: > >When I use the AVR's internal oscillator or an external crystal >oscillator, like 1.0 MHz, is the frequency 1,000,000 Hz (give or take >a few Hz for accuracy, temp, etc)? And not a power of 2, like 2 to >the 20th = 1,048,576? > >Th
2005-06-20 by jeff_smith_8992
When I use the AVR's internal oscillator or an external crystal oscillator, like 1.0 MHz, is the frequency 1,000,000 Hz (give or take a few Hz for accuracy, temp, etc)? And not a power of 2, like 2 to the 20th = 1,048,576? The reason I'm asking, is because the prescaler divisors
2005-06-18 by John Samperi
At 01:50 PM 18/06/2005, you wrote: >Um, have you guys look at www.futurlec.com.au ? I buy most of my stuff >there because it is so cheap. I buy some of my stuff there too.....but....it hurts when I know I can get M8515 for AUD$3.20 if I had some qty >ATMEGA8515L-8PI ATMega8515L 4
2005-06-18 by MrMicro
Um, have you guys look at www.futurlec.com.au ? I buy most of my stuff there because it is so cheap. They have $4 shipping (orders under $50 or $7 shipping for orders over $50) - that is for 1-2 week shipping time. (they ship from a warehouse in Thailand but have an Aussie office
2005-06-17 by John Samperi
At 11:16 PM 17/06/2005, you wrote: >Speaking of Dick Smith Electronics, does he still have any stores in the >USA? Didn't know that there were any in the USA. Both Dick Smith and Tandy in Australia belong now to Woolworths and they have become pretty much the same....useless...as
2005-06-17 by Dave VanHorn
At 10:33 AM 6/17/2005, Jim Wagner wrote: >Where do you tell it to sleep again? Has it really finished >everything needed for the next int before being put to >sleep? We got it. I missed the part where it says that you have to wait before going back to sleep. See previous message.
2005-06-17 by Dave Hylands
> Please i want to be unsubscribed frmo this list Then it would be wise to follow the directions posted at the bottom of every email Note that it can take upto a day for this to completely take effect. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/
2005-06-17 by amr elnady
Hi all Please i want to be unsubscribed frmo this list --- Kathy Quinlan wrote: > Hi all, > > Kat here your friendly list Mom. > > I have created a database where we can list the sort > of products we > sell, the idea is to keep the for sale listings out > of the group, and > als
2005-06-17 by Jim Wagner
Where do you tell it to sleep again? Has it really finished everything needed for the next int before being put to sleep? Jim On Fri, 17 Jun 2005 01:46:23 -0500 Dave VanHorn wrote: > > I must be missing something.. > > I have timer T0 running as a PWM generator with the AS0 > bit
2005-06-17 by Dave VanHorn
AHH!! A careful third look at the data sheet turns up this nugget: If Timer/Counter0 is used to wake the device up from Power-save or Extended Standby mode, precautions must be taken if the user wants to re-enter one of these modes: (and I do) The interrupt logic needs one TOSC1
2005-06-17 by Francisco Silva
The main point is that you MUST wait at least one timer clock cycle before *re-entering* sleep mode. The easyest way to do this is changing some register and waiting on ASSR. 2005/6/17, Dave VanHorn : > > > > >In assynchronous mode you must wait for the registers update (up to 2
2005-06-17 by Dave VanHorn
> >In assynchronous mode you must wait for the registers update (up to 2 >32kHz cycles). I use the following code on a atmega8. I thought the read of the ASSR register was supposed to return me ones in the low three bits, if those updates were not yet complete. It said that I cou
2005-06-17 by Zack Widup
On Fri, 17 Jun 2005, John Samperi wrote: > > >I live in sydney now, can anyone tell me where to buy some electronic > >components such as cheap capacitors, multimeters, soldering wire, etc? > >Are there any electronic components shop around kensington? thankyou > > There may be a
2005-06-17 by Francisco Silva
Hi Dave, 2005/6/17, Dave VanHorn : > > I must be missing something.. > In assynchronous mode you must wait for the registers update (up to 2 32kHz cycles). I use the following code on a atmega8. inline static void PowerSave(void) { MCUCR = (1
2005-06-17 by John Samperi
At 04:53 PM 17/06/2005, you wrote: >I just arrived in Australia and i will be living here for quite a >while. WELCOME! =D> > Mm... is it really that hard to get an AVR here? It's not hard, but I am a cheapskate and try to get them at the best price. Unfortunately when one orders
2005-06-17 by Astria Nur Irfansyah
I just arrived in Australia and i will be living here for quite a while. Mm... is it really that hard to get an AVR here? Coz usually in indonesia we can buy them online very easily from http://www.digi-ware.com (indonesian store). It's very cheap, the prices are in Indonesian Ru
2005-06-17 by Dave VanHorn
I must be missing something.. I have timer T0 running as a PWM generator with the AS0 bit in ASSR set, and external 32kHz crystal. Now I want to put the system to sleep, and have T0 wake me up once a second for time keeping. The problem is that once I go to sleep, the T0 int only
2005-06-17 by Peter Gargano
John Samperi wrote: > Thanks Jeffrey. One more possible supplier. The $12.00 > shipping cost is very attractive as I don't mind the > 2-3 weeks lead time. But even the UPS charge is pretty > good. Be wary of using UPS if that's an option they offer. Upon arrival UPS may ring you
2005-06-17 by John Samperi
At 10:15 AM 17/06/2005, you wrote: >Mouser claims to have the mega8515's in stock and >shipping to OZ seems much more reasonable than the >others you've quoted. Thanks Jeffrey. One more possible supplier. The $12.00 shipping cost is very attractive as I don't mind the 2-3 weeks l
2005-06-17 by Jeffrey Engel
John, Mouser claims to have the mega8515's in stock and shipping to OZ seems much more reasonable than the others you've quoted. $4.17 @ 25 $12.00 International mail ( wrote: > At 11:07 PM 16/06/2005, you wrote: > >Can you order from Digi-Key in the US? > ATMEGA8515-16AC is US $5
2005-06-16 by John Samperi
At 11:07 PM 16/06/2005, you wrote: >Can you order from Digi-Key in the US? ATMEGA8515-16AC is US $5.16 up to >24, and $3.24 for 25 or more. But I suppose the shipping costs could kill >you. I registered on Digikey's website yesterday. I send them an email enquiring about shipping
2005-06-16 by Russell Shaw
John Samperi wrote: > G'day all > > So my 'favorite' supplier Memec doesn't stock > the mega8515 and has bumped up the prices for Mega8 > by more than 50% since March >:-o I guess it may be the > result of having been taken over by Avnet! X;{ > > I need a couple of tubes of mega8
2005-06-16 by Dave VanHorn
At 09:59 AM 6/16/2005, Paul Maddox wrote: >Dave, > > > I was thinking that it was a 256 WORD table, which it isn't. > >ahh, fair point then. > > > So, the added proviso that it has to reside in the bottom 64k to work > > with the simple instruction set. > >well, the dvice wasn't
2005-06-16 by Kathy Quinlan
Kathy Quinlan wrote: > Hi all, > > Kat here your friendly list Mom. > > I have created a database where we can list the sort of products we > sell, the idea is to keep the for sale listings out of the group, and > also to help newbies find things. > > If you would like to include
2005-06-16 by Kathy Quinlan
Hi all, Kat here your friendly list Mom. I have created a database where we can list the sort of products we sell, the idea is to keep the for sale listings out of the group, and also to help newbies find things. If you would like to include products and companies that are not yo
2005-06-16 by Paul Maddox
Dave, > I was thinking that it was a 256 WORD table, which it isn't. ahh, fair point then. > So, the added proviso that it has to reside in the bottom 64k to work > with the simple instruction set. well, the dvice wasn't stated.. given the fact that the preffered soloution was so
2005-06-16 by Dave VanHorn
At 09:37 AM 6/16/2005, Paul Maddox wrote: >Dave, > > > Fine, so ldi R31,high(Table_Loc*2) as above, but what about the low byte? > > If the low byte has the MSB set on entry, then that needs to get into > > the LSB of the high byte, no? > >Not for me, at least not on the MEGA32 I
2005-06-16 by Paul Maddox
Dave, > Fine, so ldi R31,high(Table_Loc*2) as above, but what about the low byte? > If the low byte has the MSB set on entry, then that needs to get into > the LSB of the high byte, no? Not for me, at least not on the MEGA32 I'm running it on. It seems to run fine > Worse, if you
2005-06-16 by Dave VanHorn
At 03:20 AM 6/16/2005, Paul Maddox wrote: >Dave, > > >> >REVERSE: > >> > LDI R31,TABLE_LOC > >> > MOV R30,TEMP > >> > LPM TEMP > > > > Guess what... > > > > Isn't it obvious that this DOES NOT WORK? > >It works in my code and as I said in the mail... >the table needs to be on a p
2005-06-16 by Zack Widup
Yes, I had problems with them several years ago. It was a repeating pattern. I'll give someone the benefit of the doubt a couple times, as mistakes occasionaly do happen. But if it's three times in a row, "Three strikes and yo're out!" (That's from the US sport of baseball, for t
2005-06-16 by Zack Widup
On Thu, 16 Jun 2005, John Samperi wrote: > That would be in 40 pin PDIP commercial or industrial > temp atmega8515-16PC or atmega8515-16PI :-[ > Whoops, I didn't read this posting till I sent the last. Those are slightly more from Digi-Key. $5.27 for 1 to 24, $3.31 for 25 or more
2005-06-16 by Zack Widup
Can you order from Digi-Key in the US? ATMEGA8515-16AC is US $5.16 up to 24, and $3.24 for 25 or more. But I suppose the shipping costs could kill you. Zack On Thu, 16 Jun 2005, John Samperi wrote: > G'day all > > So my 'favorite' supplier Memec doesn't stock > the mega8515 and h
2005-06-16 by Peter Gargano
John Samperi wrote: > So my 'favorite' supplier Memec doesn't stock > the mega8515 and has bumped up the prices for Mega8 > by more than 50% since March >:-o I guess it may be the > result of having been taken over by Avnet! X;{ Bloody Avnet. They still owe me a few hundred dolla
2005-06-16 by Peter Gargano
John Samperi wrote: > That would be in 40 pin PDIP commercial or industrial > temp atmega8515-16PC or atmega8515-16PI :-[ I suggest the price went up because it's DIP, and they're charging a premium for it. Peter .
2005-06-16 by John Samperi
That would be in 40 pin PDIP commercial or industrial temp atmega8515-16PC or atmega8515-16PI :-[ Regards John Samperi ****************************************************** Ampertronics Pty. Ltd. 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA Tel. (02) 9674-6495 Fax (02)
2005-06-16 by John Samperi
G'day all So my 'favorite' supplier Memec doesn't stock the mega8515 and has bumped up the prices for Mega8 by more than 50% since March >:-o I guess it may be the result of having been taken over by Avnet! X;{ I need a couple of tubes of mega8515 (20 off) or even the older 90s85
2005-06-16 by Paul Maddox
Dave, >> >REVERSE: >> > LDI R31,TABLE_LOC >> > MOV R30,TEMP >> > LPM TEMP > > Guess what... > > Isn't it obvious that this DOES NOT WORK? It works in my code and as I said in the mail... the table needs to be on a page boundry and that TABLE_LOC should be double the value of its
2005-06-16 by John Samperi
At 05:29 PM 16/06/2005, you wrote >It's "von Neumann". 8-) Of course!! I have been up since 5 am...it's a wonder I'm still awake!! :-( Regards John Samperi ****************************************************** Ampertronics Pty. Ltd. 11 Brokenwood Place Baulkham Hills, NSW 2153 A
2005-06-16 by Leon Heller
----- Original Message ----- From: "John Samperi" To: Sent: Thursday, June 16, 2005 6:54 AM Subject: Re: [AVR-Chat] Re: This assembly oughta be something silly...Thanks > At 08:12 AM 16/06/2005, you wrote: >>No, I am not confused. > > You are contradicting me. :-D > >>The instruc