2013-05-19 by englsprogeny1
Hi Dave, Can you give us a code example? I see that this library is to be used with GCC. I always use external pullup resistors on my I2C lines. Is something else trying to write to the DIO used for SDA? --- In AVR-Chat@yahoogroups.com, "Dave McLaughlin" wrote: > > Hi all, > > >
Thread view
Attachments: 0
2013-05-19 by Dave McLaughlin
Hi all, I have an ATMega328P and trying to use the I2C Master interface but when I send the start bit I am seeing a series of what appears to be clocks on the SCL line and nothing on the SDA. I would expect SDA to be high at the same time as SCL goes hi and then SDA goes low but
Thread view
Attachments: 0
2013-05-17 by David VanHorn
I've been reading this guide from Atmel: http://www.atmel.com/Images/doc7715.pdf They mention what needs to be tested, but not how to accomplish it. I'm interested in knowing thoughts on how to achieve this in non-spaghetticode ASM. Note that the premise is that there may be some
Thread view
Attachments: 0
2013-05-14 by Dave McLaughlin
This is the init code. I have a licensed copy of Codevision so I took some of the init code from that to build the AVR GCC programme. I needed 64 bit long for the Zigbee to work and right now, Codevision does not support it :) #define ADC_VREF_TYPE ((0 Did you set up the MUX? > C
Thread view
Attachments: 0
2013-05-14 by Dave McLaughlin
This is the init code. I have a licensed copy of Codevision so I took some of the init code from that to build the AVR GCC programme. I needed 64 bit long for the Zigbee to work and right now, Codevision does not support it :) #define ADC_VREF_TYPE ((0 Did you set up the MUX? > C
Thread view
Attachments: 0
2013-05-14 by enkitec@gmail.com
Did you start up the ADC? Mark On 14-May-13 04:56, Cat C wrote: > Did you set up the MUX? > Cat > > -----Original Message----- > > From: Dave McLaughlin > Sent: 14 May 2013 02:23:42 GMT > To: AVR-Chat@yahoogroups.com > Subject: [AVR-Chat] Can you have split ADC usage > > Hi all,
Thread view
Attachments: 0
2013-05-14 by Cat C
Did you set up the MUX? Cat -----Original Message----- From: Dave McLaughlin Sent: 14 May 2013 02:23:42 GMT To: AVR-Chat@yahoogroups.com Subject: [AVR-Chat] Can you have split ADC usage Hi all, I have a small board from another project that only has PA0 to PA5 of an ATMega324P br
Thread view
Attachments: 0
2013-05-14 by John Samperi
At 05:06 PM 14/05/2013, you wrote: >If this fails I may switch to using an Arduino with the Mega328 as I >can debug this via the debug wire interface. Don't you have JTAG set up with the Mega324? Also: >I2C bus (PA4 and PA5) Any reason why you can't use the REAL I2C/TWI pins on P
Thread view
Attachments: 0
2013-05-14 by Dave McLaughlin
Yes. All setup and code to read the ADC should work. If this fails I may switch to using an Arduino with the Mega328 as I can debug this via the debug wire interface. That way I don't have any issues with ADC and digital on the same port. Dave… From: AVR-Chat@yahoogroups.com [mai
Thread view
Attachments: 0
2013-05-14 by Dave McLaughlin
Yes, pull ups disabled Even if I pull the input to GND it still reads 1023 I'll be back on it tonight so will try a few other ideas. Dave. From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of John Samperi Sent: 14 May 2013 09:57 To: AVR-Chat@yahoogroups.c
Thread view
Attachments: 0
2013-05-14 by John Samperi
At 12:23 PM 14/05/2013, you wrote: >Is it possible to use the ADC on PortA on only 2 channels, ie mixed digital >and analog like this? Yes, do it all the time. >I have tried but the 2 ADC channels (1 and 2) are always returning a 1023 >bit reading. >I have disabled the digital on
Thread view
Attachments: 0
2013-05-14 by Dave McLaughlin
Hi all, I have a small board from another project that only has PA0 to PA5 of an ATMega324P brought out and I need to do the following: 1 pulse input (PA0/INT0) 2 ADC input (PA1 and PA2) 1 digital output (PA3) I2C bus (PA4 and PA5) Is it possible to use the ADC on PortA on only 2
Thread view
Attachments: 0
2013-05-13 by M.Sadegh Azarkaman
Hi guys Does SSD1928 interfacing protocols are supported in AVR ? is it possible to run it with AVR (at-mega series)? does anyone have an example code ? or any suggestion? Best regards. [Non-text portions of this message have been removed]
Thread view
Attachments: 0
2013-05-13 by Dave McLaughlin
My bad. I was using parenthesis. It was a long day. I found the fault. The analyser was set for negative logic and it should have been positive. I could then see that there was escape characters in the telemetry but my Xbee modules where configured without them. :) Dave. From: AV
Thread view
Attachments: 0
2013-05-12 by David VanHorn
Never hurts to include parens. CLKPR = (1 wrote: > My mistake, it is: > > > > CLKPR = 1 > > > > > From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf > Of Dave McLaughlin > Sent: 12 May 2013 22:43 > To: AVR-Chat@yahoogroups.com > Subject: [AVR-Chat] AVR GCC
Thread view
Attachments: 0
2013-05-12 by Dave McLaughlin
My mistake, it is: CLKPR = 1
Thread view
Attachments: 0
2013-05-12 by Dave McLaughlin
Hi All, I am trying to get Zigbee working with an Arduino board. A Mega2560. I am not using Arduino, instead I am using AVR Studio 6.1 and GCC as I need 64 bit integers. My normal Codevision compiler does not currently support these. The issue is that I can't get any response fro
Thread view
Attachments: 0
2013-05-01 by Bernie
Seems kinda obvious now, but I wasn't getting there on my own [:">] Thanks for taking the trouble to write. Will give it a go. Cheers Bernie --- In AVR-Chat@yahoogroups.com, David VanHorn wrote: > > Now from a real keyboard: > > As long as the motor hasn't moved, then re-energizi
Thread view
Attachments: 0
2013-04-28 by David VanHorn
Now from a real keyboard: As long as the motor hasn't moved, then re-energizing with the same states, and accelerating from there will work. If the motor could move, then you will need some sort of position information from an encoder or some such. If you are using the port to ke
Thread view
Attachments: 0
2013-04-28 by David VanHorn
You need to.keep a var with the old output state just before you turned them off. Then restore that before moving. On Apr 28, 2013 10:50 AM, "Bernie" wrote: > Hi, > > I have implemented a project using an ATMega328 to drive a stepper motor. > Once the motor has reached the positi
Thread view
Attachments: 0
2013-04-28 by Bernie
Hi, I have implemented a project using an ATMega328 to drive a stepper motor. Once the motor has reached the position required, I don't need it to move any more for say, 10 minutes at a time. The motor is taking current 100% of the time of course. I'd like to turn the power to th
Thread view
Attachments: 0
2013-04-24 by englsprogeny1
Benny, You can also use an inexpensive ISP programmer along with Pony Prog. The Pony Prog interface is easy to use it's free. I've purchased ISP programmers from ebay with great results. --- In AVR-Chat@yahoogroups.com, "Benny Smith" wrote: > > Following up on my previous query t
Thread view
Attachments: 0
2013-04-22 by John Samperi
At 02:11 AM 23/04/2013, you wrote: >Can I assume that the ATMEL object file is the Hex file? (It is certainly >the biggest of the 6 files.) No, the .hex file is the Hex file for the flash and the .eep file, if any, is the Hex file for the EEPROM. >I need an example of how to use
Thread view
Attachments: 0
2013-04-22 by Benny Smith
Following up on my previous query to the group: Codevision AVR creates the following files when my program is successfully compiled: 1) COFF Symbolic Debug File; size: 20kB 2) STR1 file; 1kB 3) SYM1 file; 6kB 4) SYM2 file; 3kB 5) SYM3 file; 1kB 6) ATMEL Object file; 40kB Can I as
Thread view
Attachments: 0
2013-04-15 by David VanHorn
The STK-500 makes a pretty good programmer, and you can drive it from the command line to set fuses etc. The AVRISP same, only smaller. On Sun, Apr 14, 2013 at 6:19 PM, John Samperi wrote: > At 09:23 AM 15/04/2013, you wrote: > >There must be a way to use these files on another P
Thread view
Attachments: 0
2013-04-15 by John Samperi
At 09:23 AM 15/04/2013, you wrote: >There must be a way to use these files on another PC to program ATMega chips >without installing a copy of Codevision to do it. AVR Studio as suggested is one choice. AVRDUDE programmer is another. You can get a GUI for that. AVROSP II is yet a
Thread view
Attachments: 0
2013-04-14 by Philippe Habib
You can generate your hex file using Codevision and then load the hex files using AVR studio. You can also load eeprom contents using AVR Studio if your project uses eeprom to store config information. ----- Original Message ----- From: "Benny Smith" To: AVR-Chat@yahoogroups.com
Thread view
Attachments: 0
2013-04-14 by Benny Smith
I have used Codevision AVR to develop a program for lighting control. We are about to go into production and I need to program the ATMega chip on each board as part of the production flow. I have a single-user license for Codevision, which I use on my development system (PC). I a
Thread view
Attachments: 0
2013-04-12 by Dropbox
Hi there, Reid Simonsen wants you to try Dropbox! Dropbox lets you bring all your photos, docs and videos with you anywhere and share them easily. Get started here. https://www.dropbox.com/l/GcOHKHCOa2HxbgzGFK4kIK Thanks! - The Dropbox Team _______________________________________
Thread view
Attachments: 0
2013-03-21 by Martin McKee
I've not actually implemented any of them in any of my projects, but there are several interesting clock synchronization protocols that have been designed specifically for CAN. A google search for "Controller Area Network Clock Synchronization" will land upon quite a number of pa
Thread view
Attachments: 0
2013-03-21 by Dave McLaughlin
Hi Chuck, Why not just have one device that is the master clock send the time periodically over the CAN bus. Because CAN is multi-master and if you use a high priority ID, all the devices will receive at the same time and they will then update their internal clocks to match this
Thread view
Attachments: 0
2013-03-21 by David Kelly
On Mar 20, 2013, at 4:58 PM, Chuck Hackett wrote: > Upon receiving the time message the controller would compare it to its > internal clock. If its time is less than the received time I would have it > send its time out on the bus. If its time was greater than or equal to the > r
Thread view
Attachments: 0
2013-03-20 by Chuck Hackett
In my application I have many (>20) ATMega1284p based controller boards connected by a long (over 2,000') CAN data bus. Up until now I have not needed to coordinate time across the boards but I am now implementing logic where I need that ability. I think my needs are served if I
Thread view
Attachments: 0
2013-03-18 by Jim Wagner
SMT is more sensitive that through-hole because the body of the part is subject to greater temperature change and much more rapidly. For example, in SMT (in a reflow machine), the whole body if the part is raised to nearly the solder melting temperature. But through hole, even on
Thread view
Attachments: 0
2013-03-18 by Bob Paddock
On Fri, Mar 15, 2013 at 12:01 PM, Steven Hodge wrote: > > > > I realize this is off-AVR topic, but why the sudden(?) proliferation of > putting parts in moisture-sealed packaging (e.g., by Digi-Key and Mouser), > when they were previously not so packaged? Must the accompanying Th
Thread view
Attachments: 0
2013-03-18 by bayramdavies
--- In AVR-Chat@yahoogroups.com, "Steven Hodge" wrote: > Thanks, I think I'll just keep them in > their packages, re-sealed as best I > can, but otherwise ignore the warnings. For what it's worth, that's what I've always done and it doesn't seem to have got me into any trouble. I
Thread view
Attachments: 0
2013-03-18 by Steven Hodge
Thanks, I think I'll just keep them in their packages, re-sealed as best I can, but otherwise ignore the warnings. From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of Tim Mitchell Sent: Monday, March 18, 2013 8:49 AM To: AVR-Chat@yahoogroups.com Subject:
Thread view
Attachments: 0
2013-03-18 by Tim Mitchell
----Original Message---- From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of Steven Hodge Sent: 18 March 2013 14:17 To: AVR-Chat@yahoogroups.com Subject: RE: [AVR-Chat] moisture-sealed packaging > So, Tim, in my case I use solder paste, a pre-heater and
Thread view
Attachments: 0
2013-03-18 by Steven Hodge
So, Tim, in my case I use solder paste, a pre-heater and a hot air nozzle from a rework station. Might it be safe to assume there is less of a problem than with an oven? Steve From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of Tim Mitchell Sent: Friday,
Thread view
Attachments: 0
2013-03-15 by Tim Mitchell
----Original Message---- From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of Steven Hodge Sent: 15 March 2013 16:02 To: AVR-Chat@yahoogroups.com Subject: [AVR-Chat] moisture-sealed packaging > I realize this is off-AVR topic, but why the sudden(?) > prol
Thread view
Attachments: 0
2013-03-15 by Steven Hodge
I realize this is off-AVR topic, but why the sudden(?) proliferation of putting parts in moisture-sealed packaging (e.g., by Digi-Key and Mouser), when they were previously not so packaged? Must the accompanying Threat of Dire Doom be taken seriously if limits are exceeded? Why d
Thread view
Attachments: 0
2013-02-27 by Philippe Habib
Thank you. That's good to know about the address range. PRR is at 0x64 according to the datasheet. ----- Original Message ----- From: "Don Kinzer" To: AVR-Chat@yahoogroups.com Sent: Wednesday, February 27, 2013 3:48:11 PM Subject: [AVR-Chat] Re: Saving PRR in assembler --- In AVR
Thread view
Attachments: 0
2013-02-27 by Philippe Habib
I've got some free time so I'm playing with the assembler. I want to write an assembly function that will read the ADC and return the value. The first thing I want to do is save the contents of the PRR so that I can restore it to where it was on exit. The mov instruction only see
Thread view
Attachments: 0
2013-02-27 by Don Kinzer
--- In AVR-Chat@yahoogroups.com, Philippe Habib wrote: >PRR is at 0x64 according to the datasheet. I should have mentioned that the LDS/STS method will work for any I/O address - those are 4-byte instructions. In contrast, IN/OUT instructions are 2-byte so that's the motivation f
Thread view
Attachments: 0
2013-02-27 by Don Kinzer
--- In AVR-Chat@yahoogroups.com, Philippe Habib wrote: > The mov instruction only seems to like "real" registers > and the command mov r17,PRR does not work. The PRR register is in the I/O space. If the address is 0x31 or less, you can use the IN and OUT instructions; otherwise,
Thread view
Attachments: 0
2013-02-25 by David V
--- In AVR-Chat@yahoogroups.com, Jim Wagner wrote: > > I believe that the ONLY way to mask interrupts while single-stepping is to clear the IE flag bit in the Status Register. S6 has an option to "hide" the interrupts from you, but it doesn't seem to work very well yet. You can t
Thread view
Attachments: 0
2013-02-25 by David V
Am I just not finding the option to read osccal and program it to flash or EE, or does this actually not work in S6?
Thread view
Attachments: 0
2013-02-14 by Jim Wagner
No problem here. Jim Wagner ----- Original Message ----- From: "bobgardner@aol.com" To: AVR-Chat@yahoogroups.com Sent: Thursday, February 14, 2013 9:10:00 AM Subject: [AVR-Chat] AVRfreaks Real Slow on Feb 14 AVRfreaks seems to be suffering a seizure. Can anyone else read messages
Thread view
Attachments: 0
2013-02-14 by bobgardner@aol.com
AVRfreaks seems to be suffering a seizure. Can anyone else read messages? [Non-text portions of this message have been removed]
Thread view
Attachments: 0
2013-02-07 by Mauro Zanin
A big thank from Modena. Ciao!!! Mauro To: AVR-Chat@yahoogroups.com From: samperi@ampertronics.com.au Date: Tue, 5 Feb 2013 05:24:51 +1100 Subject: Re: [AVR-Chat] Strange issue... on AVR Studio 4 At 11:52 PM 4/02/2013, you wrote: >do you have an older version on AVR Studio 4 inst
Thread view
Attachments: 0