Yahoo Groups archive

AVR-Chat

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

Messages

Browse messages

Page 59 of 307 · 15341 messages matched

Re: WinAVR / GCC question re Stack

2009-03-25 by Graham Davies

--- In AVR-Chat@yahoogroups.com, David VanHorn wrote: > ... what was I passing it without the &? You were passing BootString[i], which is the value of the i'th element of the array BootString. Since you've put BootString in program memory, the address of the array is an address i

Thread view Attachments: 0

Re: [AVR-Chat] Re: WinAVR / GCC question re Stack

2009-03-25 by David VanHorn

> You're passing to pgm_read_byte_near() character values taken from data memory at the address of BootString in program memory. I would expect some kind of warning from the compiler about the implicit cast from the char value to the pointer expected as the argument. Do you have

Thread view Attachments: 0

Re: [AVR-Chat] Re: WinAVR / GCC question re Stack

2009-03-25 by David VanHorn

This almost seems to work, but the string is stored in pgm space, but pgm_read_byte_near is returning values that aren't anything like what's in the string. const char BootString[] PROGMEM = " Signon Msg "; for (i=0; 16 > i; i++) { LCD_Data_A = pgm_read_byte_near(BootString[i]);

Thread view Attachments: 0

Re: WinAVR / GCC question re Stack

2009-03-25 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, David VanHorn wrote: > lcd_putc(pgm_read_byte_near(&(BootString[i]))); > what was I passing it without the &? The ampersand is the "address of" operator. Without it, the value being passed was the byte in RAM whose address happens to be the same a

Thread view Attachments: 0

Re: WinAVR / GCC question re Stack

2009-03-25 by Graham Davies

--- In AVR-Chat@yahoogroups.com, David VanHorn wrote: > > ... pgm_read_byte_near is returning > values that aren't anything like > what's in the string ... > LCD_Data_A = pgm_read_byte_near(BootString[i]); > lcd_putc(LCD_Data_A); You're passing to pgm_read_byte_near() character v

Thread view Attachments: 0

Re: Fuse Question

2009-03-25 by Graham Davies

--- In AVR-Chat@yahoogroups.com, farhan ahmad wrote: > > ... I have designed the PCB ... (ATMEG64L) > ... For 100 PCB's ... Is there any efficient > way of programming the PCB without worrying > about Fuse Bits. Farhan, So, you've learned that you will have to deal with fuses but

Thread view Attachments: 0

Re: Studio Fuse Question

2009-03-25 by Graham Davies

--- In AVR-Chat@yahoogroups.com, John Samperi wrote: > The confusion only happens in your mind ... I have to say that I'm with John on this. Sometimes it's a little tricky to figure out what you can do with fuses (and lock bits) and which option you actually want, but once you're

Thread view Attachments: 0

Re: [AVR-Chat] Studio Fuse Question

2009-03-25 by John Samperi

At 03:37 PM 25/03/2009, you wrote: >High Fuse Byte Bit No Description Default Value >RSTDISBL(1) 7 External Reset Disable 1 (unprogrammed) >DWEN 6 debugWIRE Enable 1 (unprogrammed) >SPIEN(2) 5 Enable Serial Program 0 (programmed, SPI > and Data Downloading programming enabled) Th

Thread view Attachments: 0

Re: [AVR-Chat] Studio Fuse Question

2009-03-25 by dlc

John, David gave one example, here are some more (from the MEGA168): High Fuse Byte Bit No Description Default Value RSTDISBL(1) 7 External Reset Disable 1 (unprogrammed) DWEN 6 debugWIRE Enable 1 (unprogrammed) SPIEN(2) 5 Enable Serial Program 0 (programmed, SPI and Data Downloa

Thread view Attachments: 0

Re: [AVR-Chat] Another C-ish question

2009-03-25 by David Kelly

On Mar 24, 2009, at 1:36 PM, David VanHorn wrote: > I frequently end up using a bunch of timers in a 1mS ISR, that are > decremented to zero by the ISR, and set by some other task. > > The code would end up looking like this: > > if (0 if (0 and so on. > > Is there a more efficie

Thread view Attachments: 0

Re: [AVR-Chat] Flowcode?

2009-03-25 by John Samperi

At 12:31 PM 25/03/2009, you wrote: >letting a program free to design code is a bad idea, ...and that's how the planet is taken over/destroyed in Terminator. Let's put a stop to this as Arnie is now too busy as a politician to save the world again!!! Regards John Samperi *********

Thread view Attachments: 0

Re: [AVR-Chat] Fuse Question

2009-03-25 by John Samperi

At 11:40 AM 25/03/2009, you wrote: >You might consider using a couple simple batch files, What's wrong with the Auto function in Studio's programmer interface? Once you set all the parameters just click on Auto and the chip -all of it- will be programmed. Option 2 embed the fuses

Thread view Attachments: 0

Re: [AVR-Chat] Flowcode?

2009-03-25 by Kathy Quinlan

I agree, we know what we are doing in the most part ;) but letting a program free to design code is a bad idea, how will it know that we are using non standard ports for something ? or do we have to cookie cutter all our hardware to fit the confines of a program to develop our fi

Thread view Attachments: 0

Re: [AVR-Chat] Fuse Question

2009-03-25 by Jim Hatley

Programming the fuses is just part of AVRs but it is really easy. You might consider using a couple simple batch files, one for setting the fuses and another for programming the part. It is easy and inexpensive with AVRISP or AVRISPII. Jim ----- Original Message ----- From: farha

Thread view Attachments: 0

Re: [AVR-Chat] Fuse Question

2009-03-25 by David VanHorn

You do need to assure that the fuses are set for your application. If you're not using the 1 MHz internal RC, you'll need to set fuses, at least the clock oscillator and CKOPT fuses if applicable to your chip. You might find an app that I wrote a while back interesting. It's in t

Thread view Attachments: 0

Re: Fuse Question

2009-03-25 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "Jim Hatley" wrote: >You might consider using a couple simple batch files, one >for setting the fuses and another for programming the part. You should be able to do it with just one. The example below shows how you can set the fuses and program th

Thread view Attachments: 0

Re: WinAVR / GCC question re Stack

2009-03-24 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, David VanHorn wrote: > How do I use strings in program space, instead of having the system > copy them into ram, on boot, and eat up that ram permanently? See the file avr/pgmspace.h. Also, there is a tutorial on the subject: http://www.avrfreaks.

Thread view Attachments: 0

Re: Fuse Question

2009-03-24 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, farhan ahmad wrote: >Is there any efficient way of programming the PCB >without worrying about Fuse Bits. The only ways to get around programming the fuse bits is to design your product so that the factory default fuse settings are acceptable. In

Thread view Attachments: 0

RE: [AVR-Chat] Flowcode?

2009-03-24 by Julian Higginson

From: http://www.matrixmultimedia.com/product.php?Prod=Flowcode%20V3%20for%20AVR&P HPSESSID= "The use of macros allows students to control highly complex electronic devices without getting bogged down in understanding the programming involved." Oh dear.... I thought writing code

Thread view Attachments: 0

Re: [AVR-Chat] Re: WinAVR / GCC question re Stack

2009-03-24 by David VanHorn

> // assign the sentinel address > uint8_t *sentinel = (uint8_t *)0x234; > > // set the sentinel value > *sentinel = 0xcc; > > // check the sentinel value > if (*sentinel != 0xcc) > { > // stack overrun occurred > } Ok, that does what I wanted, thanks. :) That brings up another q

Thread view Attachments: 0

Re: [AVR-Chat] WinAVR / GCC question re Stack

2009-03-24 by David Kelly

On Tue, Mar 24, 2009 at 12:40:32PM -0400, David VanHorn wrote: > How can I assign a variable to a specific point in SRAM? Declare a pointer and set its value to the address you want to read. Study the AVR register definitions for syntax to use so that your pointer doesn't consume

Thread view Attachments: 0

Another C-ish question

2009-03-24 by David VanHorn

I frequently end up using a bunch of timers in a 1mS ISR, that are decremented to zero by the ISR, and set by some other task. The code would end up looking like this: if (0

Thread view Attachments: 0

Re: WinAVR / GCC question re Stack

2009-03-24 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, David VanHorn wrote: > How can I assign a variable to a specific point in SRAM? The simplest way to accomplish this is to use a pointer and initialize the pointer to the address of interest. // assign the sentinel address uint8_t *sentinel = (uint

Thread view Attachments: 0

Re: Flowcode?

2009-03-24 by lukus_78

--- In AVR-Chat@yahoogroups.com, BobGardner@... wrote: > > Looks like Real Bad News for programmers. Might give Project managers a tingly feeling all up and down their legs. I don't think we should worry about barriers being lowered - there'll always be a need for people who have

Thread view Attachments: 0

Re: [AVR-Chat] Flowcode?

2009-03-24 by David VanHorn

On Tue, Mar 24, 2009 at 12:01 PM, Zack Widup wrote: > I dunno, my experience is that if you don't know anything about programming > you're going to get into trouble somewhere along the line. I doubt if it is > going to be able to create programs as good as those by someone who kn

Thread view Attachments: 0

WinAVR / GCC question re Stack

2009-03-24 by David VanHorn

How can I assign a variable to a specific point in SRAM? What I'm trying to do, is implement a guard against stack growing down into the data. Ideally, I'd allocate some variable to a point X bytes below the top of SRAM, and above the top of allocated memory, and watch it for any

Thread view Attachments: 0

Re: [AVR-Chat] Flowcode?

2009-03-24 by David VanHorn

On Tue, Mar 24, 2009 at 11:27 AM, wrote: > Looks like Real Bad News for programmers. Might give Project managers a tingly feeling all up and down their legs. I'm wondering how useful it would be on real projects. They show ARM and PIC targets as well.

Thread view Attachments: 0

Re: [AVR-Chat] Flowcode?

2009-03-24 by Zack Widup

I dunno, my experience is that if you don't know anything about programming you're going to get into trouble somewhere along the line. I doubt if it is going to be able to create programs as good as those by someone who knows what he's doing. Zack On Tue, Mar 24, 2009 at 10:27 AM

Thread view Attachments: 0

Re: [AVR-Chat] Flowcode?

2009-03-24 by BobGardner@aol.com

Looks like Real Bad News for programmers. Might give Project managers a tingly feeling all up and down their legs. -----Original Message----- From: David VanHorn To: AVR-Chat@yahoogroups.com Sent: Tue, 24 Mar 2009 10:40 am Subject: [AVR-Chat] Flowcode? Is anyone here using "Flowc

Thread view Attachments: 0

Flowcode?

2009-03-24 by David VanHorn

Is anyone here using "Flowcode"? I just ran across it, looks interesting. http://www.matrixmultimedia.com/flowcode.php -- "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...

Thread view Attachments: 0

Fuse Question

2009-03-24 by farhan ahmad

Dear All, I am using ATMEL AVR Studio 4. Everytime when I programmed the new micro-controller, I have to worry about some fuse bits. Is there anybody who knows programming of ATMEL AVR (ATMEGA64L) without having to worry about these Fuse Bits? Actually I have designed the PCB and

Thread view Attachments: 0

Re: [AVR-Chat] Studio Fuse Question

2009-03-24 by David VanHorn

On Tue, Mar 24, 2009 at 1:40 AM, John Samperi wrote: > At 04:26 PM 24/03/2009, you wrote: >>Yeah, but sometimes fuse programmed turns a feature on and sometimes it >>turns a feature off. > > ??can you give us an example of when a programmed fuse turns a feature off? A programmed

Thread view Attachments: 0

Re: [AVR-Chat] Studio Fuse Question

2009-03-24 by John Samperi

At 04:26 PM 24/03/2009, you wrote: >Yeah, but sometimes fuse programmed turns a feature on and sometimes it >turns a feature off. ??can you give us an example of when a programmed fuse turns a feature off? Regards John Samperi *****************************************************

Thread view Attachments: 0

Re: [AVR-Chat] Studio Fuse Question

2009-03-24 by Jim Wagner

Thanks, John Jim Wagner On Mar 23, 2009, at 10:18 PM, John Samperi wrote: > At 03:11 PM 24/03/2009, you wrote: > >can someone tell me whether a fuse check mark in Studio > >represents "programmed" or "un-programmed". > > Checked=programmed or 0 > > Regards > > John Samperi > > **

Thread view Attachments: 0

Re: [AVR-Chat] Studio Fuse Question

2009-03-24 by dlc

Yeah, but sometimes fuse programmed turns a feature on and sometimes it turns a feature off. That is the MOST infuriating "feature" of the AVR series of parts, it's hard to tell by the documentation whether something is on or off! DLC John Samperi wrote: > At 03:11 PM 24/03/2009,

Thread view Attachments: 0

Re: [AVR-Chat] Studio Fuse Question

2009-03-24 by John Samperi

At 03:11 PM 24/03/2009, you wrote: >can someone tell me whether a fuse check mark in Studio >represents "programmed" or "un-programmed". Checked=programmed or 0 Regards John Samperi ******************************************************** Ampertronics Pty. Ltd. 11 Brokenwood Plac

Thread view Attachments: 0

Studio Fuse Question

2009-03-24 by Jim Wagner

Greetings - I am trying to put together a reasonable GUI for Mac users who use the gcc install called "AVR MacPack". It is progressing well but I have a problem. That is how to represent the fuse and lock bits. I would like to do it in the same sense as Atmel Studio. But, I don't

Thread view Attachments: 0

Re: IDR register?

2009-03-19 by Graham Davies

--- In AVR-Chat@yahoogroups.com, David VanHorn wrote: > ... in the Jtag ice MKii manual ... > an IDR register ... "Enable I/O Debug > Register" > What's this, and what devices is it on? This is probably a new feature and like most high-tech new features gets called by different n

Thread view Attachments: 0

Re: [AVR-Chat] Re: IDR register?

2009-03-19 by wagnerj@proaxis.com

> --- In AVR-Chat@yahoogroups.com, David VanHorn wrote: >> >> I just noticed something in the Jtag ice MKii manual about an IDR >> register... >> "Enable I/O Debug Register" >> >> What's this, and what devices is it on? > > Anyone?? > > > I was curious and did some searching. JTA

Thread view Attachments: 0

Re: IDR register?

2009-03-19 by Dave VanHorn

--- In AVR-Chat@yahoogroups.com, David VanHorn wrote: > > I just noticed something in the Jtag ice MKii manual about an IDR register... > "Enable I/O Debug Register" > > What's this, and what devices is it on? Anyone??

Thread view Attachments: 0

Re: GCC on M32, WIERD happenings.

2009-03-19 by Dave VanHorn

Resolved.. It was a helper function that was being called to do a divide. The math routines weren't compiled by me, and weren't compiled with debugging information, so Studio didn't know what was going on apparently.. Also, it was a missed optimization bug. I'd set up to divide b

Thread view Attachments: 0

[AVR-Chat] help me interface atmega8535 ds1307 sht11

2009-03-16 by Ardian sandy

i am can't read valid humidity and temperature on my LCD???before i change transstart??? Lebih bergaul dan terhubung dengan lebih baik. Tambah lebih banyak teman ke Yahoo! Messenger sekarang! http://id.messenger.yahoo.com/invite/ [Non-text portions of this message have been remov

Thread view Attachments: 0

Re: Bls: Bls: [AVR-Chat] help me interface atmega8535 ds1307 sht11

2009-03-14 by prkuve

--- In AVR-Chat@yahoogroups.com, Ardian sandy wrote: > > > > this my code jim.... > > > /***************************************************** > This program was produced by the > CodeWizardAVR V1.24.2b Professional > Automatic Program Generator > © Copyright 1998-2004 Pavel Haid

Thread view Attachments: 0

Re: Bls: [AVR-Chat] help me interface atmega8535 ds1307 sht11

2009-03-14 by prkuve

--- In AVR-Chat@yahoogroups.com, Ardian sandy wrote: > > > > give me sample code to interface it... > i can't display data from sht11 and ds1307 in my LCD, i am use sample c program from sht11 vendor,, > mybe u can correct my code inset this mail > Ardian 3oz^ > > > > Berbagi fot

Thread view Attachments: 0

Re: Bls: [AVR-Chat] help me interface atmega8535 ds1307 sht11

2009-03-14 by prkuve

--- In AVR-Chat@yahoogroups.com, Ardian sandy wrote: > > > > give me sample code to interface it... > i can't display data from sht11 and ds1307 in my LCD, i am use sample c program from sht11 vendor,, > mybe u can correct my code inset this mail > Ardian 3oz^ > > > > Berbagi fot

Thread view Attachments: 0

Bls: Bls: [AVR-Chat] help me interface atmega8535 ds1307 sht11

2009-03-14 by Ardian sandy

this my code jim.... /***************************************************** This program was produced by the CodeWizardAVR V1.24.2b Professional Automatic Program Generator © Copyright 1998-2004 Pavel Haiduc, HP InfoTech s.r.l. http://www.hpinfotech.ro e-mail:office@hpinfotech.ro

Thread view Attachments: 0

Re: Bls: [AVR-Chat] help me interface atmega8535 ds1307 sht11

2009-03-14 by Jim Wagner

On Mar 13, 2009, at 8:47 PM, Ardian sandy wrote: > > > give me sample code to interface it... > i can't display data from sht11 and ds1307 in my LCD, i am use > sample c program from sht11 vendor,, > mybe u can correct my code inset this mail > Ardian 3oz^ > > Berbagi foto Flickr

Thread view Attachments: 0

Bls: [AVR-Chat] help me interface atmega8535 ds1307 sht11

2009-03-14 by Ardian sandy

give me sample code to interface it... i can't display data from sht11 and ds1307 in my LCD, i am use sample c program from sht11 vendor,, mybe u can correct my code inset this mail Ardian 3oz^ Berbagi foto Flickr dengan teman di dalam Messenger. Jelajahi Yahoo! Messenger yang se

Thread view Attachments: 0

[AVR-Chat] EEPROM

2009-03-13 by Guido Helmstetter

Hi John Samperi Thank you for your reply just uploaded eep file and it worked a treat. 'A friend in need a friend indeed' thanks again Guido guidohelm@yahoo.com.au Stay connected to the people that matter most with a smarter inbox. Take a look http://au.docs.yahoo.com/mail/smarte

Thread view Attachments: 0

Re: [AVR-Chat] help me interface atmega8535 ds1307 sht11

2009-03-13 by Jim Wagner

On Mar 12, 2009, at 5:00 PM, Ardian sandy wrote: > please help me how to interface ATMega8535 to RTC(DS1307) and > Humidity sensor (SHT11) and SD/MM 1Gb and LCD 20x2 and USART to > hyperterminal,,, > plese give my code and schematic i am use codevision v 1.24 > tanks your attenti

Thread view Attachments: 0

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.