Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: AVR Studio Update

2008-11-11 by englsprogeny

Graham,

Sorry about the lack of detail.

Here's more:

AVR Studio
Version 4.14
Build 589

WinAVR GCC 20080610

----------------code-------------

#include <avr/io.h>

void main(void)

{
	
	volatile int count;
	volatile int marker;
	char readB;
	
	
	DDRB = 0x00;	//all inputs
	PORTB = 0xff;	//pullups

	DDRC = 0Xff;
	PORTC = 1;
	
	
	count= 1;
	
	while(1)
	{
		count++;
		

		readB = PINB;

		if(PORTC & 0x80)
			PORTC = 0x01;
		else

			PORTC = PORTC<<1;

	
		if(readB != 0xff)
			PORTC = ~readB;



	

		if(count >250){
			
			marker = 0;

			count = 3;
			}

	}

}
----------------end of code




--- In AVR-Chat@yahoogroups.com, "Graham Davies" <Yahoo37849@...> wrote:
>
> --- In AVR-Chat@yahoogroups.com, "englsprogeny" <englsprogeny@> 
> wrote:
> 
> > Should I buy a better JTAG-ICE?
> > Should I use something else to debug
> > software?  Thanks for your input.
> 
> I don't think you've given us nearly enough information to do more than 
> guess at your problem.  What *version* of AVR Studio are you using?  
> What compiler (including version)?  What switches and options?  Have 
> you tried stepping through at the assembly code level?  Do you have a 
> complete program (not just a snippet) that exhibits the problem?
> 
> Graham.
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.