2007-06-18 by Ralph Hilton
On Mon, 18 Jun 2007 13:02:17 -0400 you wrote: >I think you need to disconnect the voltage divider using an fet. The voltage divider will draw more juice than the avr in sleep mode! I assume you read the datasheet about the half dozen or so best ways to cut down on power consumpti
Thread view
Attachments: 0
2007-06-18 by Richard Cooke
Thanks folks for the quick replies. I'm not going to worry too much about the current consumption while the unit is turned on since the RF chip will be using 12 mA so 1 or 2 uA more won't kill me. I'm just worried about the input impedance affecting the ADC reading. Thanks, Richa
Thread view
Attachments: 0
2007-06-18 by kernels_nz
This is excellent advice from Bob, using a fet to connect / disconnect the power supply to the voltage divider also means you can use lower value resistors for the divider, I have had some issues with resistors > 1M OHM. Not sure what the input impedance of the A2D pin on the mic
Thread view
Attachments: 0
2007-06-18 by np np
Never thought I would hear the day when someone slagged off macros. Much of my PIC code was macros. 16 bit add's, BNC, BNE, BGE etc etc load16bits etc etc etc For me it got rid of silly mistakes. Its not needed so much no C is used a lot. ----- Original Message ---- From: "microb
Thread view
Attachments: 0
2007-06-18 by BobGardner@aol.com
I think you need to disconnect the voltage divider using an fet. The voltage divider will draw more juice than the avr in sleep mode! I assume you read the datasheet about the half dozen or so best ways to cut down on power consumption? (turn off a/d, turn off pullups, which slee
Thread view
Attachments: 0
2007-06-18 by subscriptions@aeolusdevelopment.com
Richard Cooke Wrote >I'm trying to minimize current consumption and I'm using the internal >1.1V reference so I'm using a voltage divider 1M + 3M to bring the >signal down to below the 1.1V reference. I don't care how long the >conversion takes as I'm only making the measurement
Thread view
Attachments: 0
2007-06-18 by microbrix@gmail.com
i've never been a big fan of macros. i like to see the actual code. normally there's only a few points in the code that actually talk to the i/o directly anyway, so just fixing them by hand is easy. On 6/18/07, Don Kinzer wrote: > --- In AVR-Chat@yahoogroups.com, "David VanHorn"
Thread view
Attachments: 0
2007-06-18 by Phillip Vogel
You might have a look at avrlib. There are many example programs, including one that controls up to eight RC servos. http://hubbard.engr.scu.edu/embedded/avr/avrlib Phillip ________________________________ From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Thread view
Attachments: 0
2007-06-18 by Richard Cooke
Hi Folks, I'm using the ATmega48V in a project and I need to monitor the battery level (2 AAA cells) every so often and when low give an indication to the user that it's time to change them. I'm trying to minimize current consumption and I'm using the internal 1.1V reference so I
Thread view
Attachments: 0
2007-06-18 by David VanHorn
On 6/18/07, joe_magee44 wrote: > Hello I have just acquired a mega128, and intend using it for a > software radio control. I have dabbled in the past in Uprocessors, > (Z80) a long time ago. I used machine code, and hand assembled it.... > I dropped it at that point and havent do
Thread view
Attachments: 0
2007-06-18 by Don Kinzer
--- In AVR-Chat@yahoogroups.com, "David VanHorn" wrote: > One easy way to code it, is to use IN and OUT everywhere, > and fix them when the assembler complains. A more efficient alternative is to use a macro that expands to either IN/OUT or LDS/STS depending on the port address.
Thread view
Attachments: 0
2007-06-18 by David VanHorn
> USART1 and some of the timer registers may also be wonky with JTAG > and I reported this to Atmel as a bug. The registers show up with an > offset of -0x20 from what they should be. That's lovely.. This app uses usart 0 and 1. I'm going to try it on hardware today, I have my ST
Thread view
Attachments: 0
2007-06-18 by joe_magee44
Hello I have just acquired a mega128, and intend using it for a software radio control. I have dabbled in the past in Uprocessors, (Z80) a long time ago. I used machine code, and hand assembled it.... I dropped it at that point and havent done any since. I am looking for some ser
Thread view
Attachments: 0
2007-06-18 by John Samperi
At 02:04 PM 18/06/2007, you wrote: >No, this is just in sim. There COULD be a problem with the simulator, may want to try an earlier version of Studio like 4.11 or 4.12. I know that several things got messed up with the M128 in the latest version of Studio. Waiting for SP1... If
Thread view
Attachments: 0
2007-06-18 by David VanHorn
On 6/18/07, Hans Kallen wrote: > You may want to check this one out: > > http://www.avrcard.com/products/avrcard.htm > > It has all the features you are looking for, although it may not be > that small. Yup, relatively huge. :( The one from germany looks good, I just wish it was
Thread view
Attachments: 0
2007-06-18 by David VanHorn
> Haha was this board one of the "small boards" you were asking about > the other day? No, this is just in sim.
Thread view
Attachments: 0
2007-06-18 by John Samperi
At 12:39 PM 18/06/2007, you wrote: >It was jumping to the T0 overflow >vector of the boot loader ISR table that dosen't exist! Haha was this board one of the "small boards" you were asking about the other day? If you got one from somewhere then they may have been doing you a "fav
Thread view
Attachments: 0
2007-06-18 by John Samperi
At 12:39 PM 18/06/2007, you wrote: >I never turned on the boot vector, I haven't even done an app with a >boot loader yet, but it's apparently on by default. Someone correct >me if I'm wrong, but AFAIK that should NOT be. It should NOT be on by default, can you turn the fuse OFF?
Thread view
Attachments: 0
2007-06-18 by John Samperi
At 12:33 PM 18/06/2007, you wrote: >Now in the above code, if I manually set the GIE bit in SREG at the >first nop, a few instructions later, it does a jump to $00F020! More silly questions, the code has ben assembled for the M128 using the m128def.inc. Can you use the JTAG debug
Thread view
Attachments: 0
2007-06-18 by Hans Kallen
You may want to check this one out: http://www.avrcard.com/products/avrcard.htm It has all the features you are looking for, although it may not be that small. Best regards, Hans
Thread view
Attachments: 0
2007-06-18 by David VanHorn
Interesting! It appears to be a problem with the boot vector select. I never turned on the boot vector, I haven't even done an app with a boot loader yet, but it's apparently on by default. Someone correct me if I'm wrong, but AFAIK that should NOT be. If I manually click IVCE, a
Thread view
Attachments: 0
2007-06-18 by David VanHorn
On 6/17/07, John Samperi wrote: > At 12:05 PM 18/06/2007, you wrote: > >Any call I make AFTER the SEI, ends up in this wierd place. > >That means that it's almost certainly an ISR that's vectored to the > >wrong place, but it's not jumping to the interrupt vectors > > You are usi
Thread view
Attachments: 0
2007-06-18 by John Samperi
At 12:05 PM 18/06/2007, you wrote: >Any call I make AFTER the SEI, ends up in this wierd place. >That means that it's almost certainly an ISR that's vectored to the >wrong place, but it's not jumping to the interrupt vectors You are using JMP and NOT RJMPs in the vectors I hope.
Thread view
Attachments: 0
2007-06-18 by David VanHorn
ps: even this workaround: in temp,sreg ori temp,$80 out sreg,temp causes the same problem!
Thread view
Attachments: 0
2007-06-18 by David VanHorn
I've tracked it down, but still it makes no sense... It's the SEI instruction! That's the last thing I do before hitting the idle loop. Any call I make AFTER the SEI, ends up in this wierd place. That means that it's almost certainly an ISR that's vectored to the wrong place, but
Thread view
Attachments: 0
2007-06-18 by Dave Hylands
On 6/17/07, larry barello wrote: > > PORTA &= _BV(PA1); > If (random value) > PORTA |= _BV(PA1); > > You can define PORTA as a bit-field and have the compiler do the work for > you. It seems to me that if ( random value) is going to be 1 except when random value is 0. I expect th
Thread view
Attachments: 0
2007-06-17 by larry barello
PORTA &= _BV(PA1); If (random value) PORTA |= _BV(PA1); You can define PORTA as a bit-field and have the compiler do the work for you. // ----------------- Header info... Typedef struct { Uint8_t bit0:1; Uint8_t bit1:1; Uint8_t bit2:1; Uint8_t bit3:1; Uint8_t bit4:1; Uint8_t bit5
Thread view
Attachments: 0
2007-06-17 by BobGardner@aol.com
In a message dated 6/17/2007 5:46:40 P.M. Eastern Daylight Time, kernels@slingshot.co.nz writes: unsigned char random_value; while(1){ random_value = Get_Random_Value(); if (random_value) sbi(PORTA, PA1); else cbi(PORTA, PA1); } ==================================== As long as tho
Thread view
Attachments: 0
2007-06-17 by kernels_nz
Hi guys, I played with AVR GCC over the weekend a bit to try and optimize some code I had written in Codevision that wasnt executing fast enough to my liking. As a matter of interest, with just very minor but clearly important optimizations, I took code that took 57us to execute
Thread view
Attachments: 0
2007-06-16 by David VanHorn
On 6/16/07, John Samperi wrote: > At 08:14 AM 17/06/2007, you wrote: > >M128, it shouldn't be ANYWHERE near there though.. > > Is your code LESS than 64K? Or are you passing the 64K boundary? > I have never gone past that so don't really know what lies beyond > that. WAY less. 30
Thread view
Attachments: 0
2007-06-16 by John Samperi
At 08:25 AM 17/06/2007, you wrote: >I'm developing an automatic ass kicking machine right now, >I sign you up for one? Yes please!! I have put a hole in the brick wall where I keep on banging my head every time I mess up :-D Regards John Samperi **********************************
Thread view
Attachments: 0
2007-06-16 by John Samperi
At 08:14 AM 17/06/2007, you wrote: >M128, it shouldn't be ANYWHERE near there though.. Is your code LESS than 64K? Or are you passing the 64K boundary? I have never gone past that so don't really know what lies beyond that. >In the disasm, the call reads as rcall PC+0268 Have you
Thread view
Attachments: 0
2007-06-16 by Roy E. Burrage
Dave and John, I'm developing an automatic ass kicking machine right now, to be used when I do something that's really dumb. The first copy is mine. Shall I sign you up for one? The biggest problem to date has been finding a size 11EEE combat boot like my Drill Instructor in Boot
Thread view
Attachments: 0
2007-06-16 by David VanHorn
> What is PHYSICALLY there? Have you loaded the code into the simulator > or used other debugging tools to have a look at that location? Yup, in the sim, $FFFF is what's at that location, but the RCALL isn't calling that location. > Included the wrong interrupt vectors (SOMEONE d
Thread view
Attachments: 0
2007-06-16 by John Samperi
At 06:42 AM 17/06/2007, you wrote: >I get "invalid opcode 0xFFFF at address 0x00f020 >The address is always the same! What is PHYSICALLY there? Have you loaded the code into the simulator or used other debugging tools to have a look at that location? Included the wrong interrupt
Thread view
Attachments: 0
2007-06-16 by Dave VanHorn
Starting off on another crash project.. Downloaded the latest studio. File assembles ok, no warnings or errors, but whenever I do a call or rcall off the main loop, I get "invalid opcode 0xFFFF at address 0x00f020 The address is always the same! I looked at the lst file, and the
Thread view
Attachments: 0
2007-06-15 by Dave Hylands
Hi Dave, > Given that I don't have WINE or anything like it available for 64 bit > Ubuntu, are there AVR tools for linux? I'd prefer to work in ASM, and > ideally, use the ICE-50, or Jtag ice, or AVR Dragon. avr-gcc is available for linux. That includes avr-as which is the assemb
Thread view
Attachments: 0
2007-06-15 by David VanHorn
> Both RS232, RS485 or 1 of each? :) Both 232. I could use 485 to talk to the host, but it's also got 232, and there's really no reason to go 485. > So either M162 or M164/324 in the smaller package chips. 128 has a slight preference, as I have app templates for it, but only a sl
Thread view
Attachments: 0
2007-06-15 by John Samperi
At 04:28 AM 16/06/2007, you wrote: >boards that support a dual-uart AVR. Both RS232, RS485 or 1 of each? :) >I really don't care which, as long as it's got two uarts, >like the M128. So either M162 or M164/324 in the smaller package chips. Regards John Samperi *******************
Thread view
Attachments: 0
2007-06-15 by Dave VanHorn
Given that I don't have WINE or anything like it available for 64 bit Ubuntu, are there AVR tools for linux? I'd prefer to work in ASM, and ideally, use the ICE-50, or Jtag ice, or AVR Dragon.
Thread view
Attachments: 0
2007-06-15 by stevech@san.rr.com
I have one of these. Can't beat the price. http://www.futurlec.com/ET-AVR_Stamp.shtml No on-board RS232 though. ----- Original Message ----- From: briangregory82 Date: Friday, June 15, 2007 12:21 pm Subject: [AVR-Chat] Re: physically small AVR board. To: AVR-Chat@yahoogroups.com
Thread view
Attachments: 0
2007-06-15 by David VanHorn
Too small.. No 232 drivers, xtal, or support components. But, you're thinking in the right domain.
Thread view
Attachments: 0
2007-06-15 by Per-Tore Aasestrand
Check out this one: http://cgi.ebay.de/Adapter-mit-ATMega128-2-x-RS232_W0QQitemZ280066067195QQihZ018QQcategoryZ10662QQcmdZViewItem Regards, Per-Tore At 20:28 15.06.2007, you wrote: >I have an immediate need for at least four boards that support a dual- >uart AVR. I really don't c
Thread view
Attachments: 0
2007-06-15 by Tim Gilbert
How small is small? Regards, Tim Gilbert JEM Innovation Inc. 303-926-9053 (office) 303-437-4342 (cell) 720-890-8582 (fax) www.jeminnovation.com www.pdksolutions.com ----- Original Message ----- From: Dave VanHorn To: AVR-Chat@yahoogroups.com Sent: Friday, June 15, 2007 12:28 PM S
Thread view
Attachments: 0
2007-06-15 by briangregory82
I personally love the Robostix: http://gumstix.com/store/catalog/product_info.php?products_id=139&osCsid=
Thread view
Attachments: 0
2007-06-15 by Dave VanHorn
I have an immediate need for at least four boards that support a dual- uart AVR. I really don't care which, as long as it's got two uarts, like the M128. It is very important that the board be physically small. I need the serial driver (max chip) and pads on the I/O pins, xtal an
Thread view
Attachments: 0
2007-06-15 by mago Umandam
I am using two ADC's here (current and voltage monitoring). one ADC to measure voltage from 0-70. and another for current from 0-500 mA. For current monitoring, I used a current sense resistor and a precision op amp plus ADC. For the voltage monitoring, i used a voltage divider p
Thread view
Attachments: 0
2007-06-15 by Ken Arck
Tried Mouser? At 05:34 PM 6/14/2007, you wrote: >Hi Folks, > >Sorry for this off-topic post but I've run out of ideas. Does anybody >know where I can get 10 to 20 pieces of a 12MHz SMD crystal with Cload >of less than 16pF, ESR less than 100 ohms and a frequency tolerance of >bet
Thread view
Attachments: 0
2007-06-15 by David VanHorn
On 6/14/07, Richard Cooke wrote: > Hi Folks, > > Sorry for this off-topic post but I've run out of ideas. Does anybody > know where I can get 10 to 20 pieces of a 12MHz SMD crystal with Cload > of less than 16pF, ESR less than 100 ohms and a frequency tolerance of > better than +
Thread view
Attachments: 0
2007-06-14 by Richard Cooke
Yes - it looks like they carry Abracon and their Cload is 18pF which is a bit too high. --- In AVR-Chat@yahoogroups.com, Ken Arck wrote: > > Tried Mouser? > > At 05:34 PM 6/14/2007, you wrote: > > >Hi Folks, > > > >Sorry for this off-topic post but I've run out of ideas. Does any
Thread view
Attachments: 0