I'm not really sure what this is related to. I've been away from my bot for a year -- I thought it was new baby related, but now I relize I had gotten ...
Hi, I was wondering what the easiest way of testing real-time performance in AvrX? For starters, I thought about simply toggling a bit in the IDLE task so I...
You can use registers all you want, just make sure that the interrupts are off while your are using them. Twiddling an output bit shouldn't require any...
Looks good Larry. I never realised you already had that in there. It's just a matter of defining DEBUG. (the code is #ifdef'ed). At first I wanted to "toggle"...
Thanks to everyone who replied. After much testing, the problem appears to actually be that the crystal socket went bad on my STK-500 It was just incredibly...
Curious...i'm starting out in robotics (done quite a bit of assy coding for Tiny12 parts and am working with the Mega8 right now) and have been reading about...
Get the WinAvr GCC C compiler (www.avrfreaks.net), look at the AvrX sample code & test cases. Modify them, or write from scratch, your own using a text...
... For a 'practical' introduction, I found your Dilbert2 project to be very helpfull. The Examples/test cases are abstract. I could grasp the concepts better...
Personally I use a mega128 for the main "brain" which interfaces to a bunch of lowly mega8 via an I2C (TWI) bus. It's unfortunate Atmel doesn't have a smaller...
That is a good idea, I should update Dilbert II to the latest GCC or publish the balancing robot code as tutorial's on how to structure a working application. ...
What about the tiny26? ... From: Stephane Gauthier Personally I use a mega128 for the main "brain" which interfaces to a bunch of lowly mega8 via an I2C (TWI)...
AvrX was originally written to run on the at90s2313 with only 128 bytes of memory. The current GCC version needs at least 512 bytes of SRAM to be useful...
Yeah, that's on my TODO list. I know it has a USI interface which is basic hardware for implementing SPI, I2C and UART using a bit of software. It's much...
Google is your friend: there are tiny26 master & slave I2C routines already written. It looks like mostly setting up the configuration and then after that it...
I keep looking at the Tiny26 but the package size is the same (MELF) or larger (SO-20) compared to the Mega8 (TQFP) for a lot less of everything. Digikey has...
Hey all, Looking through the AvrX examples I starte making some conclusions about the code. I was hopeing somone could confirm if I'm right, or explain why I'm...
... This is why I said look at the Dilbert2 code, from www.barello.net ... In hardware.h there are comments that explain setting the tickrate and macros that...
1 & 2: Yes. There are several reasons why you might want to separate a timer function from blocking. For example, you could set up two semaphores: one on a...
While surfing TI.com, I found an interesting app note that decribed extending the spi bus beyond the 18cm maximum. In essence, you put an rs-485 serial bus ...
Larry: Actually, I just tried searching for it and aside for a Bascom version of it I didn't find much so I was wondering if you could post the URL for this...
Actually, I don't know if it's the same site or not but I found it as a new entry in the AvrFreaks.net academy section. (april 04). Thanks, ... internal PLL ...
Hi, all (and Larry too!) I think I have found a nasty little bug having to do with the naked task functions defined by AvrX, and the way AVR-GCC handles local ...
This is a normal result of the "naked". Since a local frame is *not* set up, forcing a variable (lclVariable) onto the frame by taking it's address will fail....
Hi, Larry. I figured I would have to do something like making my "addressable" variables static. What does the "noreturn" attribute do? I expect it defines a ...
Oh wait! I missed the significance of your last statement. So, I can call a subroutine from the task, and do my stuff from there, right? The "addressable"...
NoReturn doesn't save registers, but it does create a stack frame. I don't think it has a return either, but the few extra instructions are small potatoes in...