2005-04-25 by arhodes19044
I see in the docs how to use the registers to access the EEPROM on my ATmega128. However, Which part of it is allowed to be used? Is there nothing in it unless I use it myself? Does GCC-avr give me tools to allocate variables in eeprom automatically? Should I use MALLOC in some m
Thread view
Attachments: 0
2005-04-25 by Brian Dean
On Sat, Apr 23, 2005 at 03:18:44PM +0200, Nazeer Vawda wrote: > I got the following task to carry out,and im totally lost. Its the first time > im programming in AVR. Where do i start?? > > Write properly documented c-code to run the A/D converter in 8-bit mode on 2 > channels an
Thread view
Attachments: 0
2005-04-24 by stevech
My recommendation: use the freeware version of Codevision AVR and A/D and libraries -----Original Message----- From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of stevech Sent: Sunday, April 24, 2005 4:06 PM To: AVR-Chat@yahoogroups.com Subject: RE: [AVR
Thread view
Attachments: 0
2005-04-24 by stevech
Seems like a fairly unreasonably complex assignment from the prof if you are an undergrad. The challenge is to select and learn to use the tools. -----Original Message----- From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of Nazeer Vawda Sent: Saturday,
Thread view
Attachments: 0
2005-04-24 by Brian Dean
On Sun, Apr 24, 2005 at 03:22:00AM -0000, arhodes19044 wrote: > Yes it is the Mavcric-IIb! I am glad the cap is already there. I > foud that I got decent readings once I fixed my code and set the ACR > to use the AVCC instead of the "default" AREF. > > One other question: in one
Thread view
Attachments: 0
2005-04-24 by Brian Dean
Hi Tony, On Sun, Apr 24, 2005 at 02:08:52AM -0000, arhodes19044 wrote: > The docs say "AVCC, with external capacitor at AREF pin". Do I HAVE > to use the cap? If so, what size? This is your MAVRIC-IIB, correct? If so, then it already has the cap installed. -Brian -- Brian Dean BD
Thread view
Attachments: 0
2005-04-24 by arhodes19044
Yes it is the Mavcric-IIb! I am glad the cap is already there. I foud that I got decent readings once I fixed my code and set the ACR to use the AVCC instead of the "default" AREF. One other question: in one of the little write-ups here on ADC, it said that "AVCC should be connec
Thread view
Attachments: 0
2005-04-24 by arhodes19044
Thanls for the feedback. I have the datasheet for the display. It suggests a pot of 10k or 20k. I used a simple voltage divider with 2 10k resistors. After experimentation, I found that the optimal voltage divider delivers pure GROUND to the contrast pin. So that is how I have it
Thread view
Attachments: 0
2005-04-24 by arhodes19044
Oh, yeah. Look at that. I will correct it. I think I may also need to change my voltage reference. Zeros at REFS1:0 use AREF. I think I want the internal AVCC. The docs say "AVCC, with external capacitor at AREF pin". Do I HAVE to use the cap? If so, what size? -Tony --- In AVR-C
Thread view
Attachments: 0
2005-04-23 by Larry Barello
Pay close attention to your first line of code.... It isn't doing what you intended.
Thread view
Attachments: 0
2005-04-23 by arhodes19044
Ok, I solved the LCD display issue. I can now interact directly with the board. The cpu is an ATmega128 on a Mavric-IIb board. I wired in a small keypad and that works well. I now am trying to read a multi-position rotary switch with ADC. I have it set to a position where the vol
Thread view
Attachments: 0
2005-04-23 by arhodes19044
Yes, the data sheet IS hard to find. Thanks for the source. I eventually figured out what I was doing wrong. I had 2 versions of the include file and I modified the wrong one with the new pin assignments for the LCD!!!! DUMB DUMB. But it was right there in the PN window. But it w
Thread view
Attachments: 0
2005-04-23 by Mark
I have found the file. Thanks. Mark Jordan On 23 Apr 2005 at 15:20, Leon Heller wrote: > > > ----- Original Message ----- > From: Mark Jordan > To: AVR-Chat@yahoogroups.com > Sent: Saturday, April 23, 2005 2:20 PM > Subject: [AVR-Chat] Looking for the Tiny2313 INC file > > > > Hi
Thread view
Attachments: 0
2005-04-23 by Mark Jordan
Would someone please send me a copy? I just don't want to download lots of megabytes just to use some 10 kB of files. Thanks. Mark Jordan On 23 Apr 2005 at 15:20, Leon Heller wrote: > > > ----- Original Message ----- > From: Mark Jordan > To: AVR-Chat@yahoogroups.com > Sent: Satu
Thread view
Attachments: 0
2005-04-23 by Leon Heller
----- Original Message ----- From: Mark Jordan To: AVR-Chat@yahoogroups.com Sent: Saturday, April 23, 2005 2:20 PM Subject: [AVR-Chat] Looking for the Tiny2313 INC file Hi, I'm looking for the ATTiny2313 assembler include file. Have searched the Atmel site but no luck. It's inclu
Thread view
Attachments: 0
2005-04-23 by Mark Jordan
Hi, I'm looking for the ATTiny2313 assembler include file. Have searched the Atmel site but no luck. Thanks. Mark Jordan
Thread view
Attachments: 0
2005-04-23 by Nazeer Vawda
I got the following task to carry out,and im totally lost. Its the first time im programming in AVR. Where do i start?? Write properly documented c-code to run the A/D converter in 8-bit mode on 2 channels and read values from 2 potentiometers. Use the push-buttons to select the
Thread view
Attachments: 0
2005-04-23 by Zack Widup
Hi Tony, Besides all the other good advice you've already gotten (the one jerk notwithstanding) you might want to study the manual for the HD44780. I believe that's the chip used in the Optrex LCD's. The data sheet for the 44780 is a bit hard to come by but I have it on my websit
Thread view
Attachments: 0
2005-04-23 by Leon Heller
----- Original Message ----- From: arhodes19044 To: AVR-Chat@yahoogroups.com Sent: Saturday, April 23, 2005 1:50 AM Subject: [AVR-Chat] New LCD will not work. Wow, the members here are SO helpful. Especially being patient with a newbie like me. Well, the next problem is getting m
Thread view
Attachments: 0
2005-04-23 by arhodes19044
But maybe he is not so far off the mark. WHile it was not a stupid question.... Maybe I am stupid. I had taken the generic LCD.h file and saved it as lcd.h.bak. I then edited the H file and then created the hex file. unfortunately I edited the bak file, not the H file. So, of cou
Thread view
Attachments: 0
2005-04-23 by arhodes19044
But maybe he is not so far off the mark. WHile it was not a stupid question.... Maybe I am stupid. I had taken the generic LCD.h file and saved it as lcd.h.bak. I then edited the H file and then created the hex file. unfortunately I edited the bak file, not the H file. So, of cou
Thread view
Attachments: 0
2005-04-23 by David Kelly
On Apr 22, 2005, at 7:50 PM, arhodes19044 wrote: > When you power up an LCD should it do anything visible without any > connection other than power (+,-) and the "LCD drive" which is > supposed to be in the neighborhood of 1/2 VDD? The top line of 2-line displays, the only line o
Thread view
Attachments: 0
2005-04-23 by Dave VanHorn
At 08:57 PM 4/22/2005, Larry Barello wrote: >Sounds like a joke in poor taste. Hardly worth taking seriously. I didn't see a smiley, and it wasn't funny.
Thread view
Attachments: 0
2005-04-23 by Larry Barello
Sounds like a joke in poor taste. Hardly worth taking seriously. -----Original Message----- From: AVR-Chat@yahoogroups.com At 08:19 PM 4/22/2005, arhodes19044 wrote: >Well, maybe one member is not so helpful. Maybe does not really >need to be here any more..... I think I nuked hi
Thread view
Attachments: 0
2005-04-23 by Alex Shepherd
To quickly check hardware, I often use the BASCOM-AVR BASIC compiler environment. It has GUI menu's to very easily configure it to drive LCD's wired to any pins and then print a message to the LCD to check you have it working. Cheers Alex
Thread view
Attachments: 0
2005-04-23 by Ivan Vernot
Another thing to keep in mind is that a voltage is required to set the contrast. The voltage however varies for different LCDs (Some are happy with a 0-5V range others need a -Ve supply. You will need to check the data sheet One simple thing to try is to wire a potentiometer (the
Thread view
Attachments: 0
2005-04-23 by Dave VanHorn
At 08:19 PM 4/22/2005, arhodes19044 wrote: >Well, maybe one member is not so helpful. Maybe does not really >need to be here any more..... I think I nuked him while you were typing this.
Thread view
Attachments: 0
2005-04-23 by Dave VanHorn
At 08:14 PM 4/22/2005, Jørn Tore Ørsland wrote: >fuck you!!!!!!!!! DONT ASK SUTSH A STUPID >QUESTIN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Member removed. LCD displays generally don't display anything useful on powerup, but you should be able to vary the contrast voltage, and get
Thread view
Attachments: 0
2005-04-23 by Jørn Tore Ørsland
fuck you!!!!!!!!! DONT ASK SUTSH A STUPID QUESTIN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ----- Original Message ----- From: "arhodes19044" To: Sent: Saturday, April 23, 2005 2:50 AM Subject: [AVR-Chat] New LCD will not work. > > > Wow, the members here are SO helpful. Especially b
Thread view
Attachments: 0
2005-04-22 by arhodes19044
Well, maybe one member is not so helpful. Maybe does not really need to be here any more..... -Tony --- In AVR-Chat@yahoogroups.com, Jørn Tore Ørsland wrote: > fuck you!!!!!!!!! DONT ASK SUTSH A STUPID > QUESTIN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > ----- Original Message -----
Thread view
Attachments: 0
2005-04-22 by arhodes19044
Wow, the members here are SO helpful. Especially being patient with a newbie like me. Well, the next problem is getting my LCD working. It is a brand new optrex dmc-61230. I have it hooked up for 4 bit parallel. I have it all wired up and all the wires are going to where I think
Thread view
Attachments: 0
2005-04-22 by Brian Dean
On Fri, Apr 22, 2005 at 03:05:51PM -0000, arhodes19044 wrote: > I have not used the printf functions yet since I just started using > these uC's. But, don't I have to use printf and its variants with a > certain output stream? Not with 'sprintf()' which writes its output into a m
Thread view
Attachments: 0
2005-04-22 by Graham Davies
--- In AVR-Chat@yahoogroups.com, "arhodes19044" wrote: > Of course you are right. No, he isn't. To call a bug a feature just because it is documented is to destroy the distinction between functionality that is useful to the user and functionality that is detrimental. For example,
Thread view
Attachments: 0
2005-04-22 by Robert Adsett
At 03:36 PM 4/22/05 +0100, Paul Curtis wrote: >Robert et al, > > > At 02:18 PM 4/22/05 +0000, arhodes19044 wrote: > > >I see the modulo function for floats, but is there an > > integer version > > >of modulo? I did not see that. > > > > % > >% is indeed the integer modulus (remai
Thread view
Attachments: 0
2005-04-22 by Paul Curtis
Robert et al, > At 02:18 PM 4/22/05 +0000, arhodes19044 wrote: > >I see the modulo function for floats, but is there an > integer version > >of modulo? I did not see that. > > % % is indeed the integer modulus (remainder after division) operator, but implementations are allowed t
Thread view
Attachments: 0
2005-04-22 by Brian Dean
On Fri, Apr 22, 2005 at 02:18:15PM -0000, arhodes19044 wrote: > Is there a "dtoa" to convert a float to ascii? I seem to remember > something from my days when I used C very regularly, but now that I > am getting back into it, I can not recall. 'sprintf()' works. -Brian -- Brian
Thread view
Attachments: 0
2005-04-22 by Robert Adsett
At 02:18 PM 4/22/05 +0000, arhodes19044 wrote: >I see the modulo function for floats, but is there an integer version >of modulo? I did not see that. % Robert " 'Freedom' has no meaning of itself. There are always restrictions, be they legal, genetic, or physical. If you don't be
Thread view
Attachments: 0
2005-04-22 by Colin Paul Gloster
On Fri, Apr 22, 2005 at 02:18:15PM -0000, Tony wrote: "[..] I see the modulo function for floats, but is there an integer version of modulo? I did not see that." This has nothing to do with strings. C does not need an integral modulo function because it provides the % modulo oper
Thread view
Attachments: 0
2005-04-22 by arhodes19044
Thanks for pointing me to the div functions. I believe I will be always working with positive numbers, but I have not finalized that part of the work. I will have to see how it evolves. Right now I am getting up to speed on the use and programming of the ATmega128. Then get back
Thread view
Attachments: 0
2005-04-22 by arhodes19044
I have not used the printf functions yet since I just started using these uC's. But, don't I have to use printf and its variants with a certain output stream? I have an LCD display setup as a 4-bit parallel device. I do not have it set up for any interrupt driven output, but I mi
Thread view
Attachments: 0
2005-04-22 by arhodes19044
Oh, yeah!!! % I forgot about that operator! Thanks! Yes it was not really a sting issue, but I needed to know that one too. -Tony --- In AVR-Chat@yahoogroups.com, Colin Paul Gloster wrote: > On Fri, Apr 22, 2005 at 02:18:15PM -0000, Tony wrote: > > "[..] > > I see the modulo func
Thread view
Attachments: 0
2005-04-22 by arhodes19044
Of course you are right. The problem with that is one of expectations. Why should TC3 operate so differently from the others? I would expect it to work the same! I suppose it could be a "feature", and would be so if documented, I suppose. But, if the designers had not intended th
Thread view
Attachments: 0
2005-04-22 by arhodes19044
I found itoa() in the stdlib.h. I see the modulo function for floats, but is there an integer version of modulo? I did not see that. Is there a "dtoa" to convert a float to ascii? I seem to remember something from my days when I used C very regularly, but now that I am getting ba
Thread view
Attachments: 0
2005-04-22 by arhodes19044
What happens when you write a 1 to a bit in TIFR that is already zero. I suppose it stays zero.... -Tony P.S. That means that one can not manually set the interrupt flag to create a software controlled interrupt? -T --- In AVR-Chat@yahoogroups.com, Dave Hylands wrote: >By making
Thread view
Attachments: 0
2005-04-22 by Chuck Hackett
> From: Dave Hylands > > .... > However, the interrupt flag register is special. > .... > This is because setting the bits in the flag register happens in > hardware. There's NO way to atomically do any bit manipulations on > this particular register. > > All the software can do
Thread view
Attachments: 0
2005-04-21 by Dave Hylands
Hi Chcuk, > > The reason that writing a 1 to it clears it is because if you write a > > 1 to some other bit in the same register, you're writing a zero to all > > of the other bits. > > ????? > > I assume when one writes a 1 to a register bit position one is ORing it into the > r
Thread view
Attachments: 0
2005-04-21 by Chuck Hackett
> From: Dave Hylands > > .... > The reason that writing a 1 to it clears it is because if you write a > 1 to some other bit in the same register, you're writing a zero to all > of the other bits. ????? I assume when one writes a 1 to a register bit position one is ORing it into t
Thread view
Attachments: 0
2005-04-21 by David Kelly
On Thu, Apr 21, 2005 at 12:49:10PM -0700, Dave Hylands wrote: > > 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 th
Thread view
Attachments: 0
2005-04-21 by John Samperi
At 03:35 AM 22/04/2005, you wrote: >But apparently writing a 1 >to the register that already has a 1 will reset the 1..... Yep, quite standard procedure with other brands of micros too, well at Least I know Motorola does the same way. Regards John Samperi ************************
Thread view
Attachments: 0
2005-04-21 by David Kelly
On Thu, Apr 21, 2005 at 05:35:04PM -0000, arhodes19044 wrote: > > A man once said: "Documented bugs are features only when you want to > make lemonade." > > I doubt he was wise, because that man was me, just now. > > > --- In AVR-Chat@yahoogroups.com, David Kelly wrote: > > > > A
Thread view
Attachments: 0