2005-04-21 by Dave Hylands
Hi David, > Then when the interrupt is serviced it is cleared by the CPU back to > zero. BTW, the docs do not say precisely WHEN during the interrupt > service routine.... Anyway, the docs say repeatedly that the flag > can be cleared by the user BY WRITING A 1 TO THE FLAG REGIST
Thread view
Attachments: 0
2005-04-21 by Dennis Kazar
Judging from some of the past email, I thought some of you might be interested in attending this seminar. D ----- Original Message ----- From: Embedded Systems Programming To: DKAZAR@SBCGLOBAL.NET Sent: Wednesday, April 20, 2005 3:29 PM Subject: Dennis, please confirm you are att
Thread view
Attachments: 0
2005-04-21 by David Kelly
On Thu, Apr 21, 2005 at 09:25:57AM -0700, Dennis Clark wrote: > > > Of all the things to take me to task for... I'm surprised that as long > as gcc has been in the works, and as many big projects have used it, > that it isn't fully ANSI C compliant yet. What do you perceive "full
Thread view
Attachments: 0
2005-04-21 by Colin Paul Gloster
On Thu, Apr 21, 2005 at 11:51:07AM -0400, Brian Dean wrote: "On Thu, Apr 21, 2005 at 10:30:45AM +0100, Colin Paul Gloster wrote: > "[..] > [..]gcc [..] > [..] > [..] It is full ANSI C so far as I can tell > [..]" > > GCC is not compatible with full ANSI C. Please see > HTTP://GCC
Thread view
Attachments: 0
2005-04-21 by Dennis Clark
Of all the things to take me to task for... I'm surprised that as long as gcc has been in the works, and as many big projects have used it, that it isn't fully ANSI C compliant yet. Learn something new every day! DLC Colin Paul Gloster wrote: > Hello DLC, > > On Tue, Apr 19, 2005
Thread view
Attachments: 0
2005-04-21 by Brian Dean
On Thu, Apr 21, 2005 at 10:30:45AM +0100, Colin Paul Gloster wrote: > "[..] > [..]gcc [..] > [..] > [..] It is full ANSI C so far as I can tell > [..]" > > GCC is not compatible with full ANSI C. Please see > HTTP://GCC.GNU.org/gcc-3.4/c99status.html Actually, "full ANSI" is not
Thread view
Attachments: 0
2005-04-21 by arhodes19044
One slightly unexpected (to me) aspect of the interrupt flag register function is that a zero menas that the flag is not set. When triggered by the CPU it goes to one. Then when the interrupt is serviced it is cleared by the CPU back to zero. BTW, the docs do not say precisely WH
Thread view
Attachments: 0
2005-04-21 by David Kelly
On Thu, Apr 21, 2005 at 03:49:50AM -0000, arhodes19044 wrote: > > Were you getting weird timer performance in simulation or in real life? ICE-Cube on a Mavric-II. Also without the ICE-Cube. I won't say its "weird", just different than expected. Can't find where Atmel says the out
Thread view
Attachments: 0
2005-04-21 by Colin Paul Gloster
Hello DLC, On Tue, Apr 19, 2005 at 09:39:38AM -0600, dlc@frii.com wrote: "[..] [..]gcc [..] [..] [..] It is full ANSI C so far as I can tell [..]" GCC is not compatible with full ANSI C. Please see HTTP://GCC.GNU.org/gcc-3.4/c99status.html
Thread view
Attachments: 0
2005-04-21 by David Kelly
On Apr 20, 2005, at 6:34 PM, arhodes19044 wrote: > It has got to be a simulator issue. I agree that only one interrupt > will get triggered for an individual timer function. I don't follow what you are saying. > It is just that I can clearly see the TC0 overflow interrupt get set
Thread view
Attachments: 0
2005-04-21 by Chuck Hackett
> From: Jim Wagner > > Chuck - > > The following is a wild guess as I have not done this on a > micro. My guess is that the term "application", in this > context, may not be a good fit in the micro world. You will > need to do the required user interface and such, but it > probab
Thread view
Attachments: 0
2005-04-21 by arhodes19044
--- In AVR-Chat@yahoogroups.com, David Kelly wrote: > > I don't follow what you are saying. > It doesn't really matter. It seemed as if you thought that I expected interupts to cascade automatically across timers and functions. I did not. Were you getting weird timer performance
Thread view
Attachments: 0
2005-04-20 by arhodes19044
I just tried to set AVR studio to emulate the AVR103 It WORKED JUST FINE. Clearly there are issues with the emulation of the timer functions in the 128 simulation. I am very relieved. It was SUPPOSED to work right. Because I had thought long and hard about the code. That is suppo
Thread view
Attachments: 0
2005-04-20 by Jim Wagner
Chuck - The following is a wild guess as I have not done this on a micro. My guess is that the term "application", in this context, may not be a good fit in the micro world. You will need to do the required user interface and such, but it probably is not useful to attach the name
Thread view
Attachments: 0
2005-04-20 by Chuck Hackett
Is anyone familiar with uIP? I have downloaded the AVR port from: http://www.laskater.com/projects/uipAVRgettingstarted.htm and the small test application compiled and ran first time (trial version of ImageCraft compiler but it also has #ifdef to support gcc). The only change I h
Thread view
Attachments: 0
2005-04-20 by arhodes19044
I am sorry if I mis-typed. It is TC1A triggering a TC0 interrupt. I have not tested this on the ATmega128, because I just got it today, and I am waiting for my ICE-cube which will arrive in a day or 2. It has got to be a simulator issue. I agree that only one interrupt will get t
Thread view
Attachments: 0
2005-04-20 by Chuck Hackett
> From: David Kelly > > On Apr 15, 2005, at 6:43 PM, Chuck Hackett wrote: > > > Well, I discovered part of my problem. .... > > I'm thinking that it has something to do with the > > differences in support for stdout (usart) but I haven't nailed it down. > > I see a different reli
Thread view
Attachments: 0
2005-04-20 by Chuck Hackett
> From: wbounce > > It has taken me a while but I finally have a stable version of winavr. > From the little I have seen there are differences in compilers. I have > run across some CodeVision examples and the syntax is difference enough > to cause problems. Not enough that I cou
Thread view
Attachments: 0
2005-04-20 by Hugo Oliveira
Hi everyone, I am sorry to insist, but I can' t move foward for one week. Is there anyone here using AT90PWM? Could anyone try my code for AD conversion on the amplifier channel and tell me if works? I am using the AVRStudio debugger but cannot find out what is wrong. The program
Thread view
Attachments: 0
2005-04-20 by stevech
CodeVision (super easy, low cost) and ??? others support the tiny addressing modes for chips with small RAMs (256 Bytes or less). This permits 8 bit pointers. I used this to really cram a lot more code in a small chip than with GCC which does not support this model - made a big d
Thread view
Attachments: 0
2005-04-20 by Ivan Vernot
Check the archives - this question comes up a lot :-) The main contenders are (approx, in order of cost) - IAR - IDE based compiler. Most expensive, generally regarded as having best (tightest) code generation. Check out people's comments of their level of tech support and report
Thread view
Attachments: 0
2005-04-19 by airmaledfw
--- In AVR-Chat@yahoogroups.com, "arhodes19044" wrote: > > When the 2 timers are running simultaneously then I get the timer 1 > output compare triggering the timer2 overflow function (I can't tell > if the code is jumped to, or if there was an interrupt to get there). > Tony, It
Thread view
Attachments: 0
2005-04-19 by Dave Hylands
Hi DLC, > There are IDE's out there for gcc-avr on the Windoze platform, I've not > seen any for Linux or Mac yet, but I've not yet exhausted my searches > either. The IDE's usually handle the makefile generation and use, but > aren't as flexible as the command line "make" is. Ac
Thread view
Attachments: 0
2005-04-19 by Mike Perks
Dave Hylands wrote: > > "I downloaded AVR-GCC and it looks quite complete. I will try to > > work a little with it. > > > > It seems cumbersome to have to "make" everything manually each time, > > but I am sure it will become easy. > > > > I'd rather just have a menu selection ca
Thread view
Attachments: 0
2005-04-19 by Colin Paul Gloster
Hi, On Tue, Apr 19, 2005 at 04:18:20PM +0100, Paul Curtis wrote: "[..] > > void foo(void); > > takes no parameters in K & R C and C89. void foo(void) is ILLEGAL in K&R C, it was an ANSI extension. K&R C doesn't even have prototypes! [..]" Good point.
Thread view
Attachments: 0
2005-04-19 by dlc@frii.com
Tony, There are IDE's out there for gcc-avr on the Windoze platform, I've not seen any for Linux or Mac yet, but I've not yet exhausted my searches either. The IDE's usually handle the makefile generation and use, but aren't as flexible as the command line "make" is. I've found g
Thread view
Attachments: 0
2005-04-19 by Dave Hylands
> "I downloaded AVR-GCC and it looks quite complete. I will try to > work a little with it. > > It seems cumbersome to have to "make" everything manually each time, > but I am sure it will become easy. > > I'd rather just have a menu selection called "compile and run"" Perhpas lo
Thread view
Attachments: 0
2005-04-19 by Colin Paul Gloster
On Fri, Apr 08, 2005 at 02:08:15PM +0100, Paul Curtis wrote: "I believe it's the difference between void foo(); And void foo(void); The first is a function that takes unspecified parameters and the second is a function that takes no parameters." Please forgive me if I make seriou
Thread view
Attachments: 0
2005-04-19 by Paul Curtis
Hi, > On Fri, Apr 08, 2005 at 02:08:15PM +0100, Paul Curtis wrote: > > "I believe it's the difference between > > void foo(); > > And > > void foo(void); > > The first is a function that takes unspecified parameters and > the second is a function that takes no parameters." > > Pl
Thread view
Attachments: 0
2005-04-19 by Colin Paul Gloster
Antonthy had said: "[..] [..] I need some language complier such as GCC or Bascom-AVR. I'd love suggestions for a FREE or very inxepensive compiler. [..]" Tony has said: "I downloaded AVR-GCC and it looks quite complete. I will try to work a little with it. It seems cumbersome to
Thread view
Attachments: 0
2005-04-19 by Mark Weston
Oops, good point Dave. Mark Post your free ad now! Yahoo! Canada Personals
Thread view
Attachments: 0
2005-04-19 by arhodes19044
Great questions! GCC is nice and free, but does it come at a cost? Are there worthwhile "value-added" features for the more costly compilers? The command line interface is slightly annoying but not impossible, even when I still have not completely solved my problem with runing th
Thread view
Attachments: 0
2005-04-18 by D. Daniel McGlothin
And there is Larry Barello's http://barello.net/Papers/Motion_Control/index.htm (PID specific info starts about halfway down). HTH, Daniel
Thread view
Attachments: 0
2005-04-18 by Jim Wagner
Good article: "PID Without a PhD" at Embedded Systems: http://www.embedded.com/2000/0010/0010feat3.htm Jim On Mon, 18 Apr 2005 09:18:31 -0500 "Chuck Hackett" wrote: > > > > > > > From: Dave Mucha > > > > .... > > I am hoping there is a simple solution with a PID > type control. >
Thread view
Attachments: 0
2005-04-18 by Hugo Oliveira
Hi everyone, I am using the new AT90PWM3 and i am having some problems with the AD conversion on the amplifier channel. The program gets stuck when checking the flag ADASCR that supposedly would be clear after the conversion. I think few people have used this mic, but maybe those
Thread view
Attachments: 0
2005-04-18 by Chuck Hackett
> From: Dave Mucha > > .... > I am hoping there is a simple solution with a PID type control. > > I searched the list, but got tired of only finding stuPID and raPID > with the PID search. > > Any ideas where to start ? "Nuts & Volts" magazine had a series of articles recently on
Thread view
Attachments: 0
2005-04-18 by arhodes19044
As you may have seen from other posts, I am trying to write (and then simulate) timer functions. Currently I have 2 timers running. Timer 1 runs at a prescale of 1 and trivvers an output compare avery 16,000 counts (1 millisecond). When this runs as the only timer process, it wor
Thread view
Attachments: 0
2005-04-18 by Bernd Felsche
On Monday 18 April 2005 09:13, Dave Mucha wrote: > I have a servo motor that accepts step and direction inputs and I want > to monitor a very dynamic process. > The process is plasma torch cutting. Typically a couple hundred volts, > but a simple voltage divider will yield a usea
Thread view
Attachments: 0
2005-04-18 by James Hatley
Hello, When you search google (or whatever) try it with quotes around it like "pid" and you may get closer to what you are looking for. As far as your problem monitoring a "couple hundred volts" you might try an optical isolator. There are many, NEC has a bunch so does Fairchild
Thread view
Attachments: 0
2005-04-18 by arhodes19044
Yes, I would have thought that setting FOCn _should_ initiate everything an output compare would do. But the docs definitely say it will not make an interrupt. I guess it will just do whatever is programmed for the OCn pin. I tried setting the OCF1C bit but an interrupt did not o
Thread view
Attachments: 0
2005-04-18 by Don Kinzer
--- In AVR-Chat@yahoogroups.com, "arhodes19044" wrote: > The ATmega docs say that I just need to raise the OCF1C in ETIFR > and then the interrupt will be executed (on the next clock tick, I > suppose). As I read it, OCF1C is a flag that is set when the timer meets certain condit
Thread view
Attachments: 0
2005-04-17 by Dave Mucha
Hi all, I have a servo motor that accepts step and direction inputs and I want to monitor a very dynamic process. The process is plasma torch cutting. Typically a couple hundred volts, but a simple voltage divider will yield a useable signal. The process is very noisy. This means
Thread view
Attachments: 0
2005-04-17 by arhodes19044
Got it. The Atmel docs are very good IF you already understand what you need to do. Otherwise it is not too easy to figure it all out. A set of well commented examples would do wonders. Comments of ehst is being set and WHY. I have asked a new question on this board. I have the m
Thread view
Attachments: 0
2005-04-17 by arhodes19044
I am using TC1 to time milliseconds for a real-time clock. I am using a prescale of 1 and count to 16,000. I could use a larger prescale, but this way I can adjust the clock speed slightly. I also want to manually trigger one of the other counter channels (OC1C) to cause the exec
Thread view
Attachments: 0
2005-04-17 by mostafahegab
i want help for programming attiny15l as a flasher any one help me
Thread view
Attachments: 0
2005-04-16 by wbounce
It has taken me a while but I finally have a stable version of winavr. >From the little I have seen there are differences in compilers. I have run across some codevision examples and the syntax is difference enough to cause problems. Not enough that I could not follow what was go
Thread view
Attachments: 0
2005-04-16 by Russell Shaw
Russell Shaw wrote: > Chuck Hackett wrote: > >> Well, I discovered part of my problem. The program I'm working with was >> originally written for the ImageCraft C compiler and I'm using >> WinAVR(gcc)... >> Thanks in advance for any guidance you may be able to provide. Correction
Thread view
Attachments: 0
2005-04-16 by Ivan Vernot
----- Original Message ----- From: "John Samperi" samperi@ampertronics.com.au > To: AVR-Chat@yahoogroups.com > Sent: Saturday, April 16, 2005 9:02 AM Subject: Re: [AVR-Chat] Debugging ATMega16 > > >Sorry can't help - I am a happy Imagecraft C User. > > You will be absolutely ecst
Thread view
Attachments: 0
2005-04-16 by Russell Shaw
Chuck Hackett wrote: > Well, I discovered part of my problem. The program I'm working with was > originally written for the ImageCraft C compiler and I'm using WinAVR(gcc). I > tried to convert everything as well as I could but apparently something I don't > understand is going o
Thread view
Attachments: 0
2005-04-16 by Ivan Vernot
----- Original Message ----- From: "Chuck Hackett" egroupscdh@WhiteTrout.net > To: AVR-Chat@yahoogroups.com > Sent: Saturday, April 16, 2005 9:34 AM Subject: RE: [AVR-Chat] Debugging ATMega16 > > BTW: I checked out your web site. Can you briefly describe the "RTD Serial > Protoco
Thread view
Attachments: 0