Yahoo Groups archive

AVR-Chat

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

Messages

Browse messages

Page 21 of 307 · 15341 messages matched

Re: [AVR-Chat] Setting timer0 on Atmega48

2011-09-25 by Clark Martin

On Sep 25, 2011, at 12:53 PM, M W wrote: > I find that it helps a LOT sometimes to read the .h files for the specific micro I'm on, lets me know what's in there & usually then I can figure out why. Helps :) > I rarely need to go to the .h file. I use the Atmel PDF docs and look a

Thread view Attachments: 0

Re: [AVR-Chat] Setting timer0 on Atmega48

2011-09-25 by M W

I find that it helps a LOT sometimes to read the .h files for the specific micro I'm on, lets me know what's in there & usually then I can figure out why. Helps :) Mark ----- Original Message ----- From: Philippe Habib To: AVR-Chat@yahoogroups.com Cc: AVR-Chat@yahoogroups.com Sen

Thread view Attachments: 0

Re: Setting timer0 on Atmega48

2011-09-25 by greggy

The data sheet can often throw some light on the chips abilities and workings also... --- In AVR-Chat@yahoogroups.com, M W wrote: > > I find that it helps a LOT sometimes to read the .h files for the specific micro I'm on, lets me know what's in there & usually then I can figure

Thread view Attachments: 0

Re: [AVR-Chat] Setting timer0 on Atmega48

2011-09-25 by Philippe Habib

Thank you. I had to quit working on this yesterday, but its working now. I'm used to using compilers that have all of these functions brought out in an idiot ready interface so I'm afraid I don't know all of the ins and outs of the registers and all of their interactions as well

Thread view Attachments: 0

Re: [AVR-Chat] Setting timer0 on Atmega48

2011-09-25 by John Samperi

At 08:05 AM 25/09/2011, you wrote: >uccounter is a global unsigned char. And on top of all the other advice don't forget to make it volatile or the "optimiser" will do what IT thinks it's best for you...just like the government.... Regards John Samperi ***************************

Thread view Attachments: 0

Re: [AVR-Chat] Setting timer0 on Atmega48

2011-09-24 by R E Purcella

Ok, I see a change in the thread from mega 8 (which doesn't have compare function in timer0) and now to mega48 (which does) rep On 9/24/2011 3:48 PM, Jim Wagner wrote: > Yes, by far easier to set the 78 in a compare register. Look at the > Timer0 mode list for the bit combination

Thread view Attachments: 0

Re: [AVR-Chat] Setting timer0 on Atmega48

2011-09-24 by Clark Martin

On Sep 24, 2011, at 3:05 PM, Philippe Habib wrote: > This should be a simple thing but I'm having trouble getting it to work. > I don't have the data sheet for the 48 handy so I looked at the 168 but they are similar. > > I want a regular interrupt every 10ms while using the inte

Thread view Attachments: 0

Re: [AVR-Chat] Setting timer0 on Atmega48

2011-09-24 by Jim Wagner

Yes, by far easier to set the 78 in a compare register. Look at the Timer0 mode list for the bit combination to reset on compare; you may not be able to do that with all compare registers (for that timer). Please use the ISR() construction. Many of the newer chips do NOT have sig

Thread view Attachments: 0

Re: [AVR-Chat] Setting timer0 on Atmega48

2011-09-24 by Philippe Habib

Thanks for the reply. I wanted a tick every (about) 10ms so I got 78 ticks, subtracted that from the overflow value of 255 and came up with the 177 which I used as my start value. So I think what you're suggesting is that I set 78 in a compare register and then have my isr get ca

Thread view Attachments: 0

Message 14325

2011-09-24 by Mehdi Ghassemi

http://vreausite.clanteam.com/cvxkoa.php [Non-text portions of this message have been removed]

Thread view Attachments: 0

Re: [AVR-Chat] Setting timer0 on Atmega48

2011-09-24 by Jim Wagner

Hello, Phillipe First, signal is deprecated for use in gcc. Second, 8MHz divided by 1024 gives a tick every 128uS. You cannot get 1ms from that, because it would take 7.8125 clock "ticks". Third, by far the easier way to count a specific number of clock ticks is to set the compar

Thread view Attachments: 0

Setting timer0 on Atmega48

2011-09-24 by Philippe Habib

This should be a simple thing but I'm having trouble getting it to work. I want a regular interrupt every 10ms while using the internal 8Mhz oscillator. I'm using AVR studio with the default (GCC?) compiler. Can someone let me know what I'm doing wrong? I try to set the various t

Thread view Attachments: 0

Re: [AVR-Chat] (unknown)

2011-09-24 by Mike Payson

Greggy... Mehdi did not send those emails, his computer is infected by a virus. The problem will be addressed. Please be patient and the same courtesy will be returned to you if the same thing eventually happens to you. In the meantime, simply delete the emails. As you noted, jus

Thread view Attachments: 0

Message 14319

2011-09-24 by Mehdi Ghassemi

http://m-rssp.bplaced.net/cvxkoa.php [Non-text portions of this message have been removed]

Thread view Attachments: 0

Message 14321

2011-09-24 by greggy

Is anybody atually stupid enough to run your php script? --- In AVR-Chat@yahoogroups.com, Mehdi Ghassemi wrote: > > http://m-rssp.bplaced.net/cvxkoa.php > > [Non-text portions of this message have been removed] >

Thread view Attachments: 0

Message 14320

2011-09-24 by greggy

I'm interested that on a moderated board such as this, you are allowed to post.... what? --- In AVR-Chat@yahoogroups.com, Mehdi Ghassemi wrote: > > http://magiktv.com/cvxkoa.php > > [Non-text portions of this message have been removed] >

Thread view Attachments: 0

Message 14318

2011-09-24 by Mehdi Ghassemi

http://magiktv.com/cvxkoa.php [Non-text portions of this message have been removed]

Thread view Attachments: 0

RE: [AVR-Chat] Re: Mega644 Brown Out Detector Problem

2011-09-17 by M W

(Re-sent the below as it got lost apparently? Glad you're fixed up, though I'd leave the 0.1 uF cap there and add the 4.7 uF in parallel with it; Power spike and oscillating VReg problems are a PAIN that I avoid by using too many bypass caps :)) If the LDO Regulator isn't bypasse

Thread view Attachments: 0

RE: [AVR-Chat] Re: Mega644 Brown Out Detector Problem

2011-09-16 by Phillip Vogel

Well, you are stating the obvious, and no apologies are necessary. I replaced an undersized bypass cap (0.1uF) with a bigger one (4.7uF), and the problem is gone. Thanks. > -----Original Message----- > From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On > Behalf O

Thread view Attachments: 0

RE: [AVR-Chat] Re: Mega644 Brown Out Detector Problem

2011-09-16 by Tim Mitchell

Apologies if I'm stating the obvious, but have you ensured all power and gnd pins on the device are properly connected? And scoped out the power supply to check for noise? Spikes on the PSU could cause that. -- Tim Mitchell

Thread view Attachments: 0

RE: [AVR-Chat] Re: Mega644 Brown Out Detector Problem

2011-09-16 by M W

If the LDO Regulator isn't bypassed properly it can oscillate, that could cause the Brown Out Reset to be firing when it drops, possibly? (If you don't bypass properly, it will bite you, it's bitten all of us probably LOL) Long day so that's all that I can think of ATM. Mark ---

Thread view Attachments: 0

Re: [AVR-Chat] Re: Mega644 Brown Out Detector Problem

2011-09-16 by R E Purcella

What is your voltage ref set to? rep On 9/15/2011 12:46 PM, Phillip Vogel wrote: > > Nope. This is a low dropout regulator, and there is plenty of battery > voltage. The supply voltage to the chip IS (not "is supposed to be") > 3.30V. > > > > -----Original Message----- > > From:

Thread view Attachments: 0

RE: [AVR-Chat] Re: Mega644 Brown Out Detector Problem

2011-09-15 by Phillip Vogel

Nope. This is a low dropout regulator, and there is plenty of battery voltage. The supply voltage to the chip IS (not "is supposed to be") 3.30V. > -----Original Message----- > From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On > Behalf Of greggy > Sent: Thursday

Thread view Attachments: 0

Re: Mega644 Brown Out Detector Problem

2011-09-15 by greggy

The regulator probably needs 1 - 1.5 volts head room, which your battery is not supplying. Just remove the regulator. Or use two batteries in series to push the voltage up. --- In AVR-Chat@yahoogroups.com, Phillip Vogel wrote: > > > I'm having what I hope is a minor problem. My c

Thread view Attachments: 0

Mega644 Brown Out Detector Problem

2011-09-15 by Phillip Vogel

I'm having what I hope is a minor problem. My circuit contains a mega644p powered by a lithium battery through a 3.3V regulator. There is a 12MHz crystal, and the CKDIV8 fuse is set, resulting in a clock speed of 1.5MHz. If I set the brown out detector to 2.7V, the chip never com

Thread view Attachments: 0

Re: [AVR-Chat] Calculate signed and unsigned

2011-09-02 by David Kelly

On Sep 2, 2011, at 5:10 PM, Антощенков Роман Викторович wrote: > Hello! > > I using AtMega32A, AVRStudio 4.18SP3 and WinAVR 2011. > > unsigned int param1; > signed int param2; ( > unsigned int param3; > > OCR1B = (unsigned int)(param1 - param2); > OCR1A = (unsigned int)(param1 -

Thread view Attachments: 0

RE: [AVR-Chat] Calculate signed and unsigned

2011-09-02 by Cat C

Or in fact if your results may be > 16 bits you can use uint32_t result = param1 - param2 then check if > 65535 and deal with it. etc > To: avr-chat@yahoogroups.com > From: catalin_cluj@hotmail.com > Date: Fri, 2 Sep 2011 16:38:28 -0600 > Subject: RE: [AVR-Chat] Calculate signed

Thread view Attachments: 0

RE: [AVR-Chat] Calculate signed and unsigned

2011-09-02 by Cat C

I would use uint16_t instead of unsigned int. int16_t instead of int. Cast to (uint16_t) I never know what an int size is :-) Your operations might result in numbers greater than 16 bits; must make sure you deal with that. Cat > To: AVR-Chat@yahoogroups.com > From: djantoxa@rambl

Thread view Attachments: 0

Calculate signed and unsigned

2011-09-02 by Антощенков Роман Викторович

Hello! I using AtMega32A, AVRStudio 4.18SP3 and WinAVR 2011. unsigned int param1; signed int param2; ( unsigned int param3; OCR1B = (unsigned int)(param1 - param2); OCR1A = (unsigned int)(param1 - param2 - param3); I do not get the correct result. How to calculate signed and unsi

Thread view Attachments: 0

MCP2515 CAN bus controller question

2011-08-29 by Chuck Hackett

Some configuration info: - 5 nodes (ATMega32 and MCP2515 on each) - Communicating over a short CAT-5 network - About 1.5 feet of CAT-5 between each node - Terminated on both ends with 120 ohm resistor - ATMega clock 14.7456Mhz xtal - MCP2515 clock (Osc1) fed from ATMega32 timer @

Thread view Attachments: 0

Re: sound measurement

2011-08-29 by blue_eagle

I have two micro waterproof microphones coming in tuesday to play with. I plan on testing them in my 15 foot pool. Problem is echoes off of the sides and bottom, way different than a lake but somewhere to start. Brian --- In AVR-Chat@yahoogroups.com, "blue_eagle" wrote: > > I hav

Thread view Attachments: 0

Bumper stickers

2011-08-28 by David V

Does anyone have one of those "My Microcontroller can beat the hell out of your microcontroller" stickers that they would like to part with? I'm selling my car, and that one is one that I'd like to have on the new wheels. A rockwell "modem on board" would be nice too, but very un

Thread view Attachments: 0

Re: sound measurement

2011-08-27 by blue_eagle

I have spent 4 1/2 years on a US Navy submarine. I know how it is done. I just have to figure out how to do it in small scale. soft bottom and close distance. this is a problem. --- In AVR-Chat@yahoogroups.com, "bobgardner@..." wrote: > > Drag two hydrophones behind the boat. Use

Thread view Attachments: 0

Re: [AVR-Chat] Re: sound measurement

2011-08-26 by bobgardner@aol.com

Drag two hydrophones behind the boat. Use an a/d chip that does simultaneous sampling. A prop approaching from 45 deg to starboard has its chugchugchug waveform reaching the front mic before the rear mic (shorter radial distance). I guess you need to drag two more hydrophones abe

Thread view Attachments: 0

Re: sound measurement

2011-08-25 by blue_eagle

My bottom sounder will be using transducers for the high freq. Also a forward looking 'sound' object avoidance, other boats (motor sound), will be a waterproof mic. I am learning while 'playing'. I could ask someone for the answer to make it work but that is no fun. Just looking

Thread view Attachments: 0

RE: [AVR-Chat] Re: sound measurement

2011-08-25 by Dave McLaughlin

Actually, if this is mapping and you only need the first solid return, a simple echosounder will do this for you. Just measuring sound is not going to work as you could potentially be picking up sound from all directions. Sonar and echo sounders use a narrow beam which is pulsed

Thread view Attachments: 0

Re: [AVR-Chat] Re: sound measurement

2011-08-25 by Jim Wagner

If you are "mapping", then you are probably talking about sonar, which requires a transmitter and receiver, and a measured time delay for the echo. This is very different from just measuring "sound amplitude". Jim Wagner Oregon Research Electronics On Aug 24, 2011, at 6:58 PM, bl

Thread view Attachments: 0

Re: sound measurement

2011-08-24 by blue_eagle

I wanted to try audio range and up to about 125KHz range. This is for lake mapping. I could buy one but just want to make one and learn at the same time. Brian --- In AVR-Chat@yahoogroups.com, Jim Wagner wrote: > > What frequency range? > > Jim Wagner > > On Aug 20, 2011, at 8:05

Thread view Attachments: 0

Re: [AVR-Chat] sound measurement

2011-08-21 by Jim Wagner

What frequency range? Jim Wagner On Aug 20, 2011, at 8:05 PM, blue_eagle wrote: > I havent picked an avr chip yet. What I want to do is measure the > sound underwater from two microphones to find out which one has more > sound over the other. Trying to understand how to use the m

Thread view Attachments: 0

sound measurement

2011-08-21 by blue_eagle

I havent picked an avr chip yet. What I want to do is measure the sound underwater from two microphones to find out which one has more sound over the other. Trying to understand how to use the micro to average sound inputs. How often should it sample? Do you have a website to exp

Thread view Attachments: 0

RE: [AVR-Chat] a problem with 7400 NAND

2011-08-17 by M W

At least the 100 nF cap (depends on the frequencies you're running at) - I'm really not clear on what he's doing amplifying the current with a NAND gate instead of (for example) an Op Amp, though? I haven't done it the way he's doing it, at least, seems :) (Doesn't mean they're d

Thread view Attachments: 0

RE: [AVR-Chat] a problem with 7400 NAND

2011-08-16 by Dave McLaughlin

Hi there, Have you got good decoupling around the power pins of the 7400. You should ideally have 100nF and 10nF in parallel close to the VCC pins of this device. What about generaly supply decoupling? Is this a home made PCB etc? Dave. From: AVR-Chat@yahoogroups.com [mailto:AVR-

Thread view Attachments: 0

Re: Simple Binary to Decimal conversion code not working!!!

2011-08-16 by stevec

yes, this is really not a good approach - using floating point. Suggest you get assistance from avrfreaks.net, user forum. --- In AVR-Chat@yahoogroups.com, "Cat" wrote: > > I can’t say what’s wrong at first sight, but did you try it with integers instead of floats? > It might

Thread view Attachments: 0

a problem with 7400 NAND

2011-08-14 by Sh R

hi every body! i've made an ultra sonic transmitter. the signal is made by LM55 an for amplifying the current i've used a 7400 gate nand. at the end the output of 7400 is send to the sonar. it worked properly and i got the signal with my receiver. but now after one day, my signal

Thread view Attachments: 0

Simple Binary to Decimal conversion code not working!!!

2011-08-12 by rastavibration86

Hi! I have a problem with this source code which is going to run in ATmega1284P. It is a part of another source code, but this simple part is not working and I can not find the reason. I am using AVR Studio and I have used both AVR Simulator and AVR Simulator 2 as debug platform

Thread view Attachments: 0

Re: [AVR-Chat] Making USB Host

2011-08-11 by wagnerj@proaxis.com

> Hai, > I am trying to make a usb host using atmel microcontroller. Actually I > want to read the datas of pen drive by atmel microcontroller without using > any computer. But main problem is I cannot find any firmware to make the > microcontroller as a usb host. > > If you want

Thread view Attachments: 0

Re: Making USB Host

2011-08-11 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "mosiur_87" wrote: > I am trying to make a usb host using atmel microcontroller. Some AVR chips (e.g. AT90USB1287) have limited host capability referred to as OTG (On The Go). The smaller/older USB devices don't have this capability. You might loo

Thread view Attachments: 0

Making USB Host

2011-08-10 by mosiur_87

Hai, I am trying to make a usb host using atmel microcontroller. Actually I want to read the datas of pen drive by atmel microcontroller without using any computer. But main problem is I cannot find any firmware to make the microcontroller as a usb host. If you want to make a usb

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.