Re: [AVR-Chat] Speed of execution
2009-02-24 by David VanHorn
> GICR |= (0 ^^^^^ not disabling INT0 Ok, I have that fixed.
Yahoo Groups archive
Messages
Page 61 of 307 · 15341 messages matched
2009-02-24 by David VanHorn
> GICR |= (0 ^^^^^ not disabling INT0 Ok, I have that fixed.
2009-02-24 by wagnerj@proaxis.com
>> Well, interrupts are disabled inside ISRs! > > I'm well aware of that. > > I'm trying to get the ISRs (especially the first one) to be as fast as > possible. > > This is clipped from the file, it worked in monospaced font. > > > /-----------------------------------------------
2009-02-24 by David VanHorn
On Tue, Feb 24, 2009 at 4:10 PM, Bill Knight wrote: > David > In addition to the other responses, is the following what you > intended elsewhere? > > if ((Raw_Data_Size == 0) && !(GICR & (1 > (note usage of '==' and '&&') > > You might also want to revisit the following: > > GICR
2009-02-24 by John Samperi
At 08:08 AM 25/02/2009, you wrote: >Right, thanks, but that isn't my latency problem. What I was saying is that you are NOT turning off INT0.. but have both INTs running. GICR |= (0
2009-02-24 by Bill Knight
David In addition to the other responses, is the following what you intended elsewhere? if ((Raw_Data_Size == 0) && !(GICR & (1 I'm using GCC. > > When I comment out the first Debug_Port line, the debug pin does not go high. > When I leave it in, the debug pin goes high, but neve
2009-02-24 by David VanHorn
> Remember that 0
2009-02-24 by wagnerj@proaxis.com
>> So I have this Mega32 running at 4 MHz (yes, 4 MHz, I checked the fuses) >> >> I'm trying to measure two pulse widths, on INT0 and INT1 using T1 with >> a divisor of 1. >> The pulses have a minimum period of 5uS, nominal period of 14uS, and >> max of 23uS. >> I can't adjust th
2009-02-24 by John Samperi
At 07:43 AM 25/02/2009, you wrote: >GICR |= (0
2009-02-24 by David VanHorn
> Well, interrupts are disabled inside ISRs! I'm well aware of that. I'm trying to get the ISRs (especially the first one) to be as fast as possible. This is clipped from the file, it worked in monospaced font. /----------------------------------------------- Start aquiring A | /
2009-02-24 by wagnerj@proaxis.com
> So I have this Mega32 running at 4 MHz (yes, 4 MHz, I checked the fuses) > > I'm trying to measure two pulse widths, on INT0 and INT1 using T1 with > a divisor of 1. > The pulses have a minimum period of 5uS, nominal period of 14uS, and > max of 23uS. > I can't adjust those val
2009-02-24 by David VanHorn
So I have this Mega32 running at 4 MHz (yes, 4 MHz, I checked the fuses) I'm trying to measure two pulse widths, on INT0 and INT1 using T1 with a divisor of 1. The pulses have a minimum period of 5uS, nominal period of 14uS, and max of 23uS. I can't adjust those values. I enable
2009-02-24 by David VanHorn
>> Debug_Port |= (0
2009-02-24 by Charlie Heath
David, In your code you need to do this: Debug_Port &= ~(1 To: Sent: Tuesday, February 24, 2009 12:46 PM Subject: [AVR-Chat] ISR not exiting? > I'm using GCC. > > When I comment out the first Debug_Port line, the debug pin does not go high. > When I leave it in, the debug pin goe
2009-02-24 by David VanHorn
I'm using GCC. When I comment out the first Debug_Port line, the debug pin does not go high. When I leave it in, the debug pin goes high, but never goes low. Am I missing something special I have to do to exit an ISR? // Timer 0 overflow ISR ISR(TIMER0_OVF_vect) { Debug_Port |= (
2009-02-24 by Zack Widup
In the group's files you will find Dmcman_full.pdf contributed by donfrisky1 and HD44780.pdf contributed by me. These two files should have everything you need to know. Zack On 2/24/09, David VanHorn wrote: > > I need to implement a bargraph on a 44780 type LCD. > Can anyone poin
2009-02-24 by David VanHorn
I need to implement a bargraph on a 44780 type LCD. Can anyone point me to the appropriate chars, or a routine in C? Thanks -- "The very powerful and the very stupid have one thing in common. Instead of altering their views to fit the facts, they alter the facts to fit their view
2009-02-24 by Robert Adsett
Bob Paddock wrote: >>> The WDT is good for detecting the system running slower than it >>> should, but not for faster! >> You mean like this? >> >> http://focus.ti.com/lit/ds/symlink/tps3813k33.pdf > > Only if you never want to put the AVR to sleep to save > batteries. So more li
2009-02-24 by Bob Paddock
>> The WDT is good for detecting the system running slower than it >> should, but not for faster! > > You mean like this? > > http://focus.ti.com/lit/ds/symlink/tps3813k33.pdf Only if you never want to put the AVR to sleep to save batteries. 68HC11 handled this case far better th
2009-02-24 by Robert Adsett
David VanHorn wrote: > On Mon, Feb 23, 2009 at 12:54 PM, David Appleton wrote: >> >> Could we also do a timer test? >> Is 10uSec really 10uSec? > > The problem is that you have nothing to reference it to, other than > the crystal, unless you have some independent external timebas
2009-02-23 by David VanHorn
> Yes, very easily...the micro usually stops working or behaves badly... Thanks... :-P
2009-02-23 by John Samperi
At 02:39 AM 24/02/2009, you wrote: >In C, is there a simple way to test wether the system has run out of >memory while the program is running? Yes, very easily...the micro usually stops working or behaves badly... Regards John Samperi *********************************************
2009-02-23 by Don Kinzer
--- In AVR-Chat@yahoogroups.com, wagnerj@... wrote: > A variant of this question was just raised on AVRFreaks. The particular thread that was referred to dealt more specifically with RAM use issues specific to C++. The more general issue of estimating RAM requirements (including
2009-02-23 by David VanHorn
On Mon, Feb 23, 2009 at 12:54 PM, David Appleton wrote: > > > Could we also do a timer test? > Is 10uSec really 10uSec? The problem is that you have nothing to reference it to, other than the crystal, unless you have some independent external timebase. A 60Hz line signal would do
2009-02-23 by David Appleton
Could we also do a timer test? Is 10uSec really 10uSec? [Non-text portions of this message have been removed]
2009-02-23 by wagnerj@proaxis.com
> In C, is there a simple way to test wether the system has run out of > memory while the program is running? > > > -- > > "The very powerful and the very stupid have one thing in common. Instead > of > altering their views to fit the facts, they alter the facts to fit their > vi
2009-02-23 by David VanHorn
> Just trying to get up to speed with C myself. I think the standard > trick of getting an initialized var into a known location near the top > of ram, then check to see if your stack clobbered it is the simplest. > > Of course, you might be in bad shape at that point. Right. I'm
2009-02-23 by H. Carl Ott
On Mon, Feb 23, 2009 at 10:39 AM, David VanHorn wrote: > In C, is there a simple way to test wether the system has run out of > memory while the program is running? > > -- Just trying to get up to speed with C myself. I think the standard trick of getting an initialized var into
2009-02-23 by David VanHorn
In C, is there a simple way to test wether the system has run out of memory while the program is running? -- "The very powerful and the very stupid have one thing in common. Instead of altering their views to fit the facts, they alter the facts to fit their views... which can be
2009-02-23 by Don Kinzer
--- In AVR-Chat@yahoogroups.com, David VanHorn wrote: > In C, is there a simple way to test wether the system has > run out of memory while the program is running? Simple? No. But there is a way. The issues involved depend on which resources you're using in your C program. It als
2009-02-21 by Robert Adsett
David VanHorn wrote: > On Sat, Feb 21, 2009 at 11:27 AM, Bob Paddock wrote: >>> I was hoping someone here had done "exploding wire" experiments and >>> could offer guidance. >> http://www.pupman.com/hvlistarchives/ >> http://www.fusor.net >> >> Zetex has Avalanche rated transisto
2009-02-21 by David VanHorn
On Sat, Feb 21, 2009 at 11:27 AM, Bob Paddock wrote: >> I was hoping someone here had done "exploding wire" experiments and >> could offer guidance. > > http://www.pupman.com/hvlistarchives/ > http://www.fusor.net > > Zetex has Avalanche rated transistors. > http://www.zetex.com/
2009-02-21 by Bob Paddock
> I was hoping someone here had done "exploding wire" experiments and > could offer guidance. http://www.pupman.com/hvlistarchives/ http://www.fusor.net Zetex has Avalanche rated transistors. http://www.zetex.com/3.0/3-3-2b.asp?rid=14 If money is no object also look up Saturable
2009-02-20 by David VanHorn
> 1. How are you measuring your shunt voltage and waveform? A scope I presume. Yes > 2. Your shunt will be somewhat inductive at these frequencies and currents. Yes > 3. Your frequency components will appear because of the pulsed > waveform, so you'll need to be aware of that. Ri
2009-02-20 by Jim Wagner
Roy makes a good point about skin effect. Forgot about that. Could be part of your excessive impedance. Jim Wagner On Feb 19, 2009, at 10:25 PM, Roy E. Burrage wrote: > Done the exploding wire deal Dave, both intentionally and non. > > 1. How are you measuring your shunt voltage
2009-02-20 by Roy E. Burrage
Done the exploding wire deal Dave, both intentionally and non. 1. How are you measuring your shunt voltage and waveform? A scope I presume. 2. Your shunt will be somewhat inductive at these frequencies and currents. 3. Your frequency components will appear because of the pulsed w
2009-02-20 by David VanHorn
On Thu, Feb 19, 2009 at 9:37 PM, Jim Wagner wrote: > In this mode, the current capacity depends on a whole bunch of things. > Thermal mass, length, heat sinking capability of the end-terminals, > melting point of the alloy are just a few. You might be able to model > it with some
2009-02-20 by David VanHorn
> Hope you are using Kelvin contacts! I am. The results are still >3X too high to be believed.
2009-02-20 by Jim Wagner
In this mode, the current capacity depends on a whole bunch of things. Thermal mass, length, heat sinking capability of the end-terminals, melting point of the alloy are just a few. You might be able to model it with some sort of finite-element simulator but you would spend a lot
2009-02-20 by Jim Wagner
On Feb 19, 2009, at 5:28 PM, David VanHorn wrote: > > I would guess that for short pulses like that, it would be at > least 2X DC > > but that is just a guess. > > I'm operating at roughly 1kA > > The shunt is rated at 50mV/25A, and my last test shot read 5.5Vp with > a risetime
2009-02-20 by Jim Wagner
On Feb 19, 2009, at 7:26 AM, David VanHorn wrote: > Soapbox on.. > > The Feb 19th issue of EDN has an article that I found very > interesting. > Many of you have heard me speak on crystal oscillators, and how the > loading caps and drive levels need to be checked before committin
2009-02-20 by David VanHorn
400V into 100uH is what's going on.
2009-02-20 by David VanHorn
> I would guess that for short pulses like that, it would be at least 2X DC > but that is just a guess. I'm operating at roughly 1kA The shunt is rated at 50mV/25A, and my last test shot read 5.5Vp with a risetime of about 200uS and hold time of 750-ish uS. The shunt is suggestin
2009-02-20 by wagnerj@proaxis.com
Look at "Ampacity" in the wire tables. I think that rating has to do more like what you are looking for. The problem with industrial wire tables is that there is one rating for wire in a conduit and another based on free air, insulation melting, and so forth. National Electrical
2009-02-20 by David VanHorn
On Thu, Feb 19, 2009 at 7:35 PM, Kathy Quinlan wrote: > Slightly less than when it goes open circuit ;) BTDT, and got some cool sort of aerogelish thingys hanging in the air for a while.
2009-02-20 by Kathy Quinlan
Slightly less than when it goes open circuit ;) Regards, Kat. David VanHorn wrote: > > Off-topic slightly, but does anyone know what the current carrying > capacity of #16 magnet wire is, for T > DC I know, but I'm not finding any refs about short time periods. > > -- > > "The ve
2009-02-20 by David VanHorn
Off-topic slightly, but does anyone know what the current carrying capacity of #16 magnet wire is, for T
2009-02-19 by David VanHorn
Soapbox on.. The Feb 19th issue of EDN has an article that I found very interesting. Many of you have heard me speak on crystal oscillators, and how the loading caps and drive levels need to be checked before committing to a design. This article references a train crash in Fremon
2009-02-12 by Q boll
Hi All, I was wondering if anyone can help me. I am using an ISR (Int0 & Int1) of a ATMega168 with Bascom AVR. In this ISR's I have to handle some code but now the ISR take too much time. This code is for translating signals of the AD2S90 � resolver to digital converter http://ww
2009-02-11 by Tim Mitchell
Hi folks, Just wondering how many people have experience of using the AT90USB1287 in USB host/OTG mode. We have come upon a little problem with a certain batch of devices from atmel which do not work in host mode. They are revision 2, which has been out for a few years, and Atmel
2009-02-10 by David VanHorn
On Tue, Feb 10, 2009 at 1:44 PM, Steven Hodge wrote: > Yeah, I stupidly blundered into that one on the capacitor, all right. But, > I'll bite. I don't have any diodes. The power source is not an AC power > supply but a 12 VDC battery (a large 700 amp-hr boat system) and I don't >