Thanks Larry for the reply. Yup, I set the /SS pin as an output. But anyway I've solved the problem. It's because of the optimization. When I change the...
Hi, There is a simple solution for the optimalisation fun in combination with while loops define a nop #define nop() __asm__ __volatile__ ("nop" ::) And in...
Sounds like you have a variable shared between an interrupt handler and your main code. The main code doesn’t realize that the variable can change abruptly...
All control registers should be declared volatile. If this one isn’t that is a bug in the chip header file (avr/io.h…) I use the code, below, without the...
I'm still trying to figure out why I can't use AvrxDelay function but I can use _delay_ms I also tested both Timers 0 and 2 with a diagnostic I wrote to...
Dan, You should be able to debug this in the simulator without too much trouble. Set the delay to 1 or 2 so you don't need to wait for too many interrupts...
If you are using _delay_ms() from avr-libc's #include <util/delay.h>, then you are not using a timer. avr-libc's _delay_ms() uses a code loop that calculates...
Shane, My code hasn't had signal.h in a long time either, I'm just trying to run the demos as delivered. I had updated to 2.6g and avrx_signal.h asks for...
This is probably a question for Larry, following up on my R2-R8 reserved registers modification. While everything appeared to be working 100%, I changed the...
I don’t recall using anything other than the C call parameters and two temporary (c clobber) registers. A bad pointer ($0004) would write to R4 but that...
Larry, thanks for your reply, I did some more digging... Unfortunately I only have a AVR Dragon, but it's good enough to single step the avrx functions. Turns...
Z should be pointing to a timer control block. CancelTimer is trying to add the count of the canceled timer to the count of the next timer in the queue. Why...
Hi Larry, I just did an experiment - reverting to the vanilla kernel, and the problem still exists. It's just that it is masked when the registers are popped...
Richard, I can attest that the assembly is fine. I've used AvrXCancelTimer() many times. Look further up in the AvrXCancelTimer source to see that the Z...
As you probably noticed AvrX does absolutely no runtime or compile time checking of parameters or arguments. One of the reasons it is so small and fast. I...
... Bruce, do you also try to run the BasicTest*.c which are delivered with AVRx? I had problems in the past with the Basictest3. I use several AVRs, several...
Is the declaration for the tcb is outside all functions in the global scope? Is there anything "next" to the tcb in memory, such as an array, that is exceeding...
I want a quick running ISR sample bits and send it to a process waiting for it, the ISP shall at the most send four different messages in one loop to the same...
Don't use message ack-ing from an ISR... the ISR is waiting for an ACK, but because it's in an interrupt, the task doesn't get to run until the interrupt is...
Well, it's hard to say exactly what's going on because you haven't included all the code. For example, I don't see where Uart4_Sample and Uart5_Sample are set...
The time tick is running at 1ms, why not use a delay with the task for 1ms then check the message queues, create a seperate task that is a queue manager, don't...
I want to have four 4800 SW-uarts (need the other two as well on the mega128). My idea was to have a bit sampler which goes on 50uS ticks and every 1mS do a...
Perhaps an intermediate step would be to define a rx_queue for each uart, it seems that the first ackmessage is getting confused and is sending to the wrong...
Good point, I thought since it's a queue, FIFO, that the first message would be done first and the ack would correspond to that first message and so on. A good...
Acks apply to the element pulled off the queue. Queues are FIFO. ... From: avrx@yahoogroups.com [mailto:avrx@yahoogroups.com] On Behalf Of tord.lindner Sent:...
Waits are on a semaphore buried in the object (message, timer, whatnot). Consumers wait on the semaphore in the queue head, Producers wait on the (ACK)...
I'm sure most of you have seen the Vex 6-channel remote sets that have been on the surplus sites for a while now. MPJA just closed theirs out for $10 each and...