2007-04-20 by jasonparkerhendrix
The clock only has 4 pins. I have them connected like this: pin 1 floating. pin 4 to ground. pin 5 to xtal1 on the atmega32. pin 8 to voltage. I have no other clock related connections connected. Thanks, Jason --- In AVR-Chat@yahoogroups.com, "David VanHorn" wrote: > > On 4/20/07
Thread view
Attachments: 0
2007-04-20 by jasonparkerhendrix
When set to use an internal clock (atmega32), my app works ok. When set to use an external clock (fuses CKSEL = 0000 and SUT = 10) the chip does nothing. I assume I have something wired incorrectly. I'm using this external clock: http://www.abracon.com/Oscillators/ach.pdf I have
Thread view
Attachments: 0
2007-04-20 by jasonparkerhendrix
Thanks for your help! I made very good use of the epcos tool and everything is working great now. --- In AVR-Chat@yahoogroups.com, Ralph Hilton wrote: > > On Thu, 19 Apr 2007 20:03:43 -0000 you wrote: > > >Does anyone know where I might find some example Winavr code for > >readin
Thread view
Attachments: 0
2007-04-20 by Ralph Hilton
On Thu, 19 Apr 2007 20:03:43 -0000 you wrote: >Does anyone know where I might find some example Winavr code for >reading the temperature from an NTC Thermistor Probe >(http://www.epcos.com/inf/50/db/ntc_06/ProbeAss__B57020__M2020.pdf) >connected to one of the adc pins of an avr (
Thread view
Attachments: 0
2007-04-19 by Jim Wagner
You need to construct a voltage divider with the thermistor and a second fixed resistor. It is connected with the fixed resistor between ADC input and AVref and the variable resistor between ADC input and ground (usually). If you used AVcc for Vref, then connect the fixed resisto
Thread view
Attachments: 0
2007-04-19 by jasonparkerhendrix
Does anyone know where I might find some example Winavr code for reading the temperature from an NTC Thermistor Probe (http://www.epcos.com/inf/50/db/ntc_06/ProbeAss__B57020__M2020.pdf) connected to one of the adc pins of an avr (atmega32)? I would also like to know how the 2 wir
Thread view
Attachments: 0
2007-04-19 by Reza
Sorry, I'm too late always, but: as you know AVR is an 8 bits micro which means each transaction to memory allowed only in 8 bits at one time. but filling memory unlike 80x86 CPU's is not an embedded instruction, safest way is to use memset function but, if speed is most importan
Thread view
Attachments: 0
2007-04-19 by stevech11
Ah so. Well in that cast, no doubt the fastest way to clear the array is to call memset() since it's probably optimized asm code, as said earlier in this thread. --- In AVR-Chat@yahoogroups.com, "kernels_nz" wrote: > > In this application, the arrays represent individual LEDS on
Thread view
Attachments: 0
2007-04-19 by kernels_nz
In this application, the arrays represent individual LEDS on the led nameboard. These run as 8 * 8 modules from 4 * 16 bit Constant current shift registers. Similar to 74HC494, but with Constant Current Drivers. I need to clear the arrays everytime I change the display, I found i
Thread view
Attachments: 0
2007-04-18 by stevech11
Below, do you mean that the array would be zero'd once each time the program runs (such as after a reset) ? The K&R C standard and most run-time initialization programs do for sure zero static storage once. In my experience, it's rather rare to have to repeatedly zero out an arra
Thread view
Attachments: 0
2007-04-18 by John Samperi
At 08:52 AM 19/04/2007, you wrote: >how do you hook up the Dragon to the >external board? It's the standard ISP setup, it is well documented in the STK500 docs. >Looking at the "Devicesheet for the ATmega48 If you are using the M48 go to my website's download page and have a look
Thread view
Attachments: 0
2007-04-18 by John Samperi
At 08:22 AM 19/04/2007, you wrote: >Is it possible to change the output voltage on a Dragon? Not that I know of, unlike the STK500. The voltage output is 5V from the USB bus. You can put a 3V LDO regulator on your board and run it that way, you should be able to read the VTG from
Thread view
Attachments: 0
2007-04-18 by Richard Cooke
John, I think that's good news but how do you hook up the Dragon to the external board? Looking at the "Devicesheet for the ATmega48 in the Dragon's help file it looks like pin 6 of the VCC header (on the Dragon) is connected to pin 2 on the ISP header (also on the Dragon). Pin 4
Thread view
Attachments: 0
2007-04-18 by Richard Cooke
Hi Folks, Is it possible to change the output voltage on a Dragon? I have the unit and I'd like to hook it up to a 3.0V circuit but I'm not sure that I can change the voltage from the Dragon and I don't want to blow out my prototype. Thanks, Richard Cooke
Thread view
Attachments: 0
2007-04-18 by Ivan Gomez
Just write in part # / KEYWORD the following part number: 649-71600-306LF That is the 6 pin connector. Or go to these pages: http://www.mouser.com/search/refine.aspx?Ntt=649-71600-306LF http://www.mouser.com/catalog/629/1895.pdf Bob Gardner wrote: Thanks to all who replied. Mouse
Thread view
Attachments: 0
2007-04-18 by Don AE5K
Hi gang... Thought I'd pass along this info just in case someone else struggles with the same problem. The first part (below) is my query to Atmel AVR Technical Support (over a week ago), and the following is the response: > Either I do not understand the mega48 data sheet sectio
Thread view
Attachments: 0
2007-04-18 by David Appleton
Hey Guys, Would this work as well? static unsigned char array1[100]; [Non-text portions of this message have been removed]
Thread view
Attachments: 0
2007-04-17 by Dave Hylands
Hi guys, On 4/17/07, kernels_nz wrote: > Excellent catch about using comments in defines, it has caught me out > in the past because: > > #define max 100 //largest value > > in the line > > for (count = 0; count > will turn into something like: > > for (count = 0; count > which o
Thread view
Attachments: 0
2007-04-17 by Bob Gardner
Thanks to all who replied. Mouser is a good source for me but I just wasn't able to find them there. Thanks again, Bob --- In AVR-Chat@yahoogroups.com, "jrseattle2002" wrote: > > Mouser sells them: 649-71600-306LF $1.20 each. > > Atmel actually lists a source for these connectors
Thread view
Attachments: 0
2007-04-17 by kernels_nz
Excellent catch about using comments in defines, it has caught me out in the past because: #define max 100 //largest value in the line for (count = 0; count wrote: > > Watch out how you comment defines. SPIF will be replaced with a "7" and > the rest of the line will be commented
Thread view
Attachments: 0
2007-04-17 by Ralph Hilton
On Tue, 17 Apr 2007 16:03:56 -0000 you wrote: Are you actually calling the functions somewhere? >Hi Folks, > >This is probably something I'm overlooking but can somebody point me >in the right way concerning this? > >I need to add this to one of the header files: > >#define SPIF
Thread view
Attachments: 0
2007-04-17 by Bruce Parham
Watch out how you comment defines. SPIF will be replaced with a "7" and the rest of the line will be commented out. If you must comment inline, use a block comment: #define SPIF 7 /* bit position for the SPIF bit in the SPSR */ to preserve the rest of the line. Bruce --- In AVR-C
Thread view
Attachments: 0
2007-04-17 by Richard Cooke
Yes, they are called from the C file. It was a very late night last night and I finished (at least I thought I had) part of the code. I didn't actually add the C file into the project until this morning. A s soon as I actually called the functions the warnings went away. Thanks f
Thread view
Attachments: 0
2007-04-17 by dlc@frii.com
How about memset? void * memset ( void * ptr, int value, size_t num ); usage: #include #include int main () { memset (str,'-',6); } DLC > Hi guys, > > I was writing some software for a scrolling message board when I came > across the problem of clearing arrays during run-time in
Thread view
Attachments: 0
2007-04-17 by David Kelly
On Tue, Apr 17, 2007 at 09:58:09AM -0000, kernels_nz wrote: > Hi guys, > > I was writing some software for a scrolling message board when I came > across the problem of clearing arrays during run-time in C. Why bother clearing the array? Why not set count = 0 and simply overwrite
Thread view
Attachments: 0
2007-04-17 by Richard Cooke
Hi Folks, This is probably something I'm overlooking but can somebody point me in the right way concerning this? I need to add this to one of the header files: #define SPIF 7 // bit position for the SPIF bit in the SPSR If I add this I get 8 warnings complaining "Unreferenced fun
Thread view
Attachments: 0
2007-04-17 by BobGardner@aol.com
In a message dated 4/17/2007 6:08:28 A.M. Eastern Daylight Time, mike@whitewing.co.uk writes: >across the problem of clearing arrays during run-time in C. ================================================= memcpy and memset might be faster if the guy that wrote the library was a g
Thread view
Attachments: 0
2007-04-17 by John Clymer
If you want to clear the whole thing, use memset: memset(array1, 0, sizeof(array1)); For the AVR, this shouldn't save appreciable time. For larger architectures, this can result in much faster execution, as this can be extended out to 16, 32 and 64 bit fills rather than 8 bit fil
Thread view
Attachments: 0
2007-04-17 by Mike Harrison
On Tue, 17 Apr 2007 09:58:09 -0000, you wrote: >Hi guys, > >I was writing some software for a scrolling message board when I came >across the problem of clearing arrays during run-time in C. > >Usually I do something like: > >unsigned char array1[100]; >unsigned char count; > >fo
Thread view
Attachments: 0
2007-04-17 by Alex Gibson
zolauri wrote: > I use a digit scope that is in the subject. I'd like to know if > anybody know > this model or somebody has any kind of experience with it. > > It gives an error message after every single startup so I'd like to > know how > serious the problem is. > > I have put
Thread view
Attachments: 0
2007-04-17 by John Samperi
At 06:26 PM 17/04/2007, you wrote: > > I have worked at two companies where the use of Maxim > > parts is out right band. Well...I now know why!! After being extremely helpful in supplying samples for DS32KHz TCXO in DIP they are quoting 20 weeks for any QTY!! (I have designed th
Thread view
Attachments: 0
2007-04-17 by Alex Gibson
Bob Paddock wrote: > On Sunday 15 April 2007 04:13, Alex Gibson wrote: > >> Usually avoid using maxim parts because they can be quite >> hard to get ... > > I have worked at two companies where the use of Maxim > parts is out right band. Even the Big Name Distributor's here > in
Thread view
Attachments: 0
2007-04-17 by kernels_nz
Hi guys, I was writing some software for a scrolling message board when I came across the problem of clearing arrays during run-time in C. Usually I do something like: unsigned char array1[100]; unsigned char count; for (count = 0; count
Thread view
Attachments: 0
2007-04-16 by jrseattle2002
Mouser sells them: 649-71600-306LF $1.20 each. Atmel actually lists a source for these connectors: http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3891 Good luck -- In AVR-Chat@yahoogroups.com, "Bob Gardner" wrote: > > I have been looking for 6 pin, female, 2 row IDC con
Thread view
Attachments: 0
2007-04-16 by Ori Y
Hi Try at FARNELL P/N :1097021 the best part supplier I know. hope it will help www.farnell.com Ori --- Bob Gardner wrote: > I have been looking for 6 pin, female, 2 row IDC > connectors and flat > ribbon cable for AVR ISP programming cables but > haven't found them in > any of m
Thread view
Attachments: 0
2007-04-16 by David Kelly
On Apr 14, 2007, at 11:54 AM, Bob Gardner wrote: > I have been looking for 6 pin, female, 2 row IDC connectors and flat > ribbon cable for AVR ISP programming cables but haven't found them in > any of my normal sources - Digikey, Mouser, Jameco. Maybe they have > them but I have
Thread view
Attachments: 0
2007-04-16 by John Samperi
At 02:54 AM 15/04/2007, you wrote: >I have been looking for 6 pin, female, 2 row IDC connectors Future Electronics (Canada?) 09185065813 6 way IDC connector Enter the above part number, for ribbon cable I use 10 ways and remove the other 4 wires VERY CAREFULLY :) Regards John Sam
Thread view
Attachments: 0
2007-04-15 by Jim Wagner
On 15 Apr 2007 04:29:42 -0700,15 Apr 2007 04:29:42 -0700,Sun, 15 Apr 2007 07:24:01 -0400 Bob Paddock wrote: > > On Sunday 15 April 2007 04:13, Alex Gibson wrote: > > >Usually avoid using maxim parts because they can be > quite > >hard to get ... > > I have worked at two companies
Thread view
Attachments: 0
2007-04-15 by Bob Paddock
On Sunday 15 April 2007 04:13, Alex Gibson wrote: >Usually avoid using maxim parts because they can be quite >hard to get ... I have worked at two companies where the use of Maxim parts is out right band. Even the Big Name Distributor's here in the "Rust Belt Region" as Maxim vie
Thread view
Attachments: 0
2007-04-15 by Alex Gibson
Robert wrote: > Why don't you use I2C to link to other microprocessors? It's more > effective, no termination problems to deal with. > > Robert > >>> I am using a micocontroller to communicate with 18 other >>> microcontrollers via rs489. Using the IC MAX3088, and a 100 ohm >>> r
Thread view
Attachments: 0
2007-04-14 by np np
If the processors are Km apart what baud rate are you using? ----- Original Message ---- From: Robert To: AVR-Chat@yahoogroups.com Sent: Saturday, 14 April, 2007 12:57:53 PM Subject: [AVR-Chat] Re: rs485 communication Why don't you use I2C to link to other microprocessors? It's m
Thread view
Attachments: 0
2007-04-14 by John Samperi
At 09:57 PM 14/04/2007, you wrote: >Why don't you use I2C to link to other microprocessors? The other micros could be a Km away?? Regards John Samperi ******************************************************** Ampertronics Pty. Ltd. 11 Brokenwood Place Baulkham Hills, NSW 2153 AUST
Thread view
Attachments: 0
2007-04-14 by Bob Gardner
I have been looking for 6 pin, female, 2 row IDC connectors and flat ribbon cable for AVR ISP programming cables but haven't found them in any of my normal sources - Digikey, Mouser, Jameco. Maybe they have them but I have been unable to find them. Can anybody offer me sources an
Thread view
Attachments: 0
2007-04-14 by Robert
Why don't you use I2C to link to other microprocessors? It's more effective, no termination problems to deal with. Robert > > I am using a micocontroller to communicate with 18 other > > microcontrollers via rs489. Using the IC MAX3088, and a 100 ohm > > resistor across A and B..
Thread view
Attachments: 0
2007-04-13 by Aaron
magzky02 wrote: > > I am using a micocontroller to communicate with 18 other > microcontrollers via rs489. Using the IC MAX3088, and a 100 ohm > resistor across A and B.. Since there are 19 MAX3088, there are also > 19 100 ohm in parallel. IS there something wrong with this? the
Thread view
Attachments: 0
2007-04-13 by jasonparkerhendrix
Thanks for your help. You helped me realize exactly what the problem was, and it's working great now. Thanks! --- In AVR-Chat@yahoogroups.com, Michael Ardai wrote: > > The low bit of the address selects R/W. That would make > 0110 111x be 6E for write and 6F for read. See figure
Thread view
Attachments: 0
2007-04-13 by Michael Ardai
The low bit of the address selects R/W. That would make 0110 111x be 6E for write and 6F for read. See figure 5 in the data sheet. BTW, I can't remember if you are using a TMP75 or a TMP175. The TMP75 doesn't allow for floating addresses. /mike
Thread view
Attachments: 0
2007-04-13 by jasonparkerhendrix
Thanks for this code example! For some reason, the temperature is reported to be 255 C. Obviously this means something isn't right. Can you give me any hints to what I may have done incorrectly? The only thing I changed in the code was to this: #define DEV_ADDR 0x37 Because accor
Thread view
Attachments: 0
2007-04-12 by Ranjit Puri
Thanks Alex, The files can also be had from http://ranjit.puri.googlepages.com/I2C_AVR_sampleC.zip Regards Ranjit On 12 Apr 2007 05:21:13 -0700, Alex Gibson wrote: > > Ranjit Puri wrote: > > Hi, > > > > Heres some classic bit-banged I2C code (written for AVR GCC) that talks > to
Thread view
Attachments: 0
2007-04-12 by jeff_smith_8992
Peter Fleury has some example I2C code (I2C Master Interface) available at his web site: http://homepage.hispeed.ch/peterfleury/avr-software.html --- In AVR-Chat@yahoogroups.com, "jasonparkerhendrix" wrote: > > Does anyone have example winavr code for working with temperature > s
Thread view
Attachments: 0