2009-11-03 by Zack Widup
Is there an assembly language version of that? Zack On Tue, Nov 3, 2009 at 4:19 AM, Marc R.J. Brevoort wrote: > > > Hi Erik, > > > > Who ever came up with this orignally was a frickin' genius. > > Sure, it's for PIC but the code is in C. > > A little helpful cut-n-paste to give y
Thread view
Attachments: 0
2009-11-03 by Marc R.J. Brevoort
Hi Erik, > Who ever came up with this orignally was a frickin' genius. > Sure, it's for PIC but the code is in C. > A little helpful cut-n-paste to give you the basic idea. > > ;static unsigned clock_A,clock_B,debounced_state; > ;unsigned debounce(unsigned new_sample) > ;{ > ; un
Thread view
Attachments: 0
2009-11-01 by erikc
http://www.dattalo.com/technical/software/pic/debounce.html Who ever came up with this orignally was a frickin' genius. Sure, it's for PIC but the code is in C. A little helpful cut-n-paste to give you the basic idea. ; ;static unsigned clock_A,clock_B,debounced_state; ; ;unsigne
Thread view
Attachments: 0
2009-10-31 by alex levenie
http://sites.google.com/site/khpiachbeu/pf8zmmhlsb
Thread view
Attachments: 0
2009-10-29 by Marc R.J. Brevoort
On Wed, 28 Oct 2009, wagnerj@proaxis.com wrote: > Due to the very strong similarities among all of the AVRs (both tiny and > mega), there is no real difference for debounce software between 2313 and > any other ARV. Searching 'debounce avr' gave plenty to work with, thanks to thi
Thread view
Attachments: 0
2009-10-28 by wagnerj@proaxis.com
> Hello, > > Can anyone point me to a (subscription-free!) > debounced button handler for ATtiny2313 written > in assembly? I'm just getting started, so any > links to example code are welcome! > > Many thanks, > Marc > Marc - Due to the very strong similarities among all of the
Thread view
Attachments: 0
2009-10-28 by Dave McLaughlin
I haven't got or seen any assembly as I don't tend to use it much these days but there is this on AVRFREAKS http://www.avrfreaks.net/index.php?module=Freaks%20Academy &func=viewItem&item_id=1801&item_type=project Is in WINAVR so likely to be C but it might be helpful? Cheers Dave
Thread view
Attachments: 0
2009-10-28 by Marc R.J. Brevoort
Hello, Can anyone point me to a (subscription-free!) debounced button handler for ATtiny2313 written in assembly? I'm just getting started, so any links to example code are welcome! Many thanks, Marc
Thread view
Attachments: 0
2009-10-25 by Steve Hodge
Graham, thanks for the great explanation. It is fairly obvious when you draw out the circuit diagram. People on this list are a wonderful resource! Steve From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of ecros_technology Sent: Saturday, October 24, 200
Thread view
Attachments: 0
2009-10-25 by Andrew Mathison
It all makes sense, many thanks. Greetings from Andy Mathison [Non-text portions of this message have been removed]
Thread view
Attachments: 0
2009-10-24 by Steve Hodge
Thanks, Graham and George. I already follow these rules with DIP packages, except for the long slits one - I'll keep them shorter in future. And switch to SMT ceramic decoupling cap's (I have been using 0.1 uF tantalum thru-hole). Your mention of hi and lo in parallel brings up s
Thread view
Attachments: 0
2009-10-24 by ecros_technology
--- In AVR-Chat@yahoogroups.com, "Steve Hodge" wrote: > > Your mention of hi and lo in parallel ... > I am using 68 uF ... goes off to the various > IC's, each with their own 0.1 uF decoupling > capacitor. Is this the situation you are > referring to? No. That's perfect. The 68 u
Thread view
Attachments: 0
2009-10-24 by Geo
Steve Hodge wrote: > I'm a newbie to SMT devices and I'm doing my first pcb layout with them. > With DIP packages I usually arrange them in a column straddling a Vcc power > bus. Is it OK to do the same with SOIC packages? Absolutely no problem doing that - as long as there is en
Thread view
Attachments: 0
2009-10-24 by Steve Hodge
I'm a newbie to SMT devices and I'm doing my first pcb layout with them. With DIP packages I usually arrange them in a column straddling a Vcc power bus. Is it OK to do the same with SOIC packages? Thanks, Steve __________ Information from ESET Smart Security, version of virus si
Thread view
Attachments: 0
2009-10-24 by ecros_technology
--- In AVR-Chat@yahoogroups.com, "Steve Hodge" wrote: > > I'm a newbie to SMT devices and I'm > doing my first pcb layout with them. > With DIP packages I usually arrange > them in a column straddling a Vcc > power bus. Is it OK to do the same > with SOIC packages? VCC routing ma
Thread view
Attachments: 0
2009-10-20 by Andrew Mathison
Or desolder the smd chips and make an adapter for the original chips..... Greetings from Andy Mathison [Non-text portions of this message have been removed]
Thread view
Attachments: 0
2009-10-20 by John Samperi
At 12:12 AM 21/10/2009, you wrote: >my question is: do I have to refrogramme the SMT version? why the code I >have for DIP version is not working. is there any kind of internal >difference in DIP version and SMT version. As someone else mentioned before the pin numbers are differ
Thread view
Attachments: 0
2009-10-20 by Dave VanHorn
Sounds like you need a troubleshooter.. I'm available. -- Sent from my Palm Pre frazgk wrote: I am not a programmer and i dont have any idea abou fuses and pwm channels. All the circuit is same as DIP version, the code is running on DIP version but makes problem in SMT version. S
Thread view
Attachments: 0
2009-10-20 by frazgk
I am not a programmer and i dont have any idea abou fuses and pwm channels. All the circuit is same as DIP version, the code is running on DIP version but makes problem in SMT version. SMT guyes (the Chinies) have tested and they say that the chip itself has no problem. my questi
Thread view
Attachments: 0
2009-10-20 by Антощенков Роман Викторович
Hello, Dave. > > As the Windows CE device is likely to be a SLAVE USB device the FT232R will > not work. You need the AVR to be a master or HOST as it is normally known. > You could try the Vinculum devices from FTDI as these are designed to be a > USB HOST with any microcontroll
Thread view
Attachments: 0
2009-10-20 by David VanHorn
I'm looking for work, ideally somewhere between Indianapolis IN and Pittsburgh PA Relocation along that corridor won't be an issue. I would consider going further afield for the right opportunity. Unfortunately, there's not a lot out there on the job boards, and I'm hoping that t
Thread view
Attachments: 0
2009-10-20 by Tim Mitchell
AT90USB1287 (basically a Mega128 with USB) can be a USB host. It's on the Atmel USB-KEY demo board which is only about $25 and is a good starting point to get it going. Atmel provide sample code for most USB classes. Some of the coding is a bit horrendous but it mostly works. --
Thread view
Attachments: 0
2009-10-20 by Dave McLaughlin
If you are designing a custom PCB then it is much more cost effective to build this HOST interface in. Your solution is idea if the hardware already exists and you have no way to modify it. Although, are they not specific to the task, such as camera to hard disk interface? Would
Thread view
Attachments: 0
2009-10-20 by Andrew Mathison
There are devices that can be placed between two slave USBs and transfer data between them. They are used to allow a camera to download to a USB hard disk for example.....I have one, it was not expensive. Would something like that help? Greetings from Andy Mathison [Non-text port
Thread view
Attachments: 0
2009-10-20 by Dave McLaughlin
As the Windows CE device is likely to be a SLAVE USB device the FT232R will not work. You need the AVR to be a master or HOST as it is normally known. You could try the Vinculum devices from FTDI as these are designed to be a USB HOST with any microcontroller communicating either
Thread view
Attachments: 0
2009-10-19 by wagnerj@proaxis.com
> Hello, wagnerj. > > >> Try FTDI FT232R chip. You can get it from Mouser and others. > Communicator has USB-slave port. Can FTDI FT232R chip emulate > USB-Master? > > > -- > Best regards, > Roman Antoshchenkov > mailto:djantoxa@rambler.ru > > FT232R is not a master, but FTDI doe
Thread view
Attachments: 0
2009-10-19 by Антощенков Роман Викторович
Hello, wagnerj. > Try FTDI FT232R chip. You can get it from Mouser and others. Communicator has USB-slave port. Can FTDI FT232R chip emulate USB-Master? -- Best regards, Roman Antoshchenkov mailto:djantoxa@rambler.ru
Thread view
Attachments: 0
2009-10-19 by wagnerj@proaxis.com
> Hello! > > Any idea to connect Windows CE communicator with USB miniB port to > ATMEGA? > > > -- > Best regards, > Roman Antoshchenkov > mailto:djantoxa@rambler.ru > > Try FTDI FT232R chip. You can get it from Mouser and others. Jim Wagner Oregon Research Electronics
Thread view
Attachments: 0
2009-10-19 by Антощенков Роман Викторович
Hello! Any idea to connect Windows CE communicator with USB miniB port to ATMEGA? -- Best regards, Roman Antoshchenkov mailto:djantoxa@rambler.ru
Thread view
Attachments: 0
2009-10-19 by enkitec@gmail.com
frazgk wrote: > I have checked all of your suggestions, pins and other things are OK. > Tell me if minor variations of crystal frequency can cause the problem, I think there may be some variations? my system is running on free RTOS, programmers have used multitasking techniques a
Thread view
Attachments: 0
2009-10-19 by frazgk
Thanks for your reply. I have checked all of your suggestions, pins and other things are OK. Tell me if minor variations of crystal frequency can cause the problem, I think there may be some variations? my system is running on free RTOS, programmers have used multitasking techniq
Thread view
Attachments: 0
2009-10-18 by wg0z@aol.com
Jim's right about pin numbers being different, DIP vs TQFP. double-check your schematic. the tqfp's "extra" 4 pins are two extra vcc/gnd pin pairs which must be implemented. regrdless of package, make sure the AVCC/AREF/GND triple (pins 27-29 of tqfp) is implemented too, even if
Thread view
Attachments: 0
2009-10-18 by Jim Wagner
On Oct 17, 2009, at 7:25 AM, frazgk wrote: > Hi > > I have a system designed by a local company based on Atmega32, and > its works fine. then I have it made from China on SMT. > Problem: SMT version is not generating PWM. I use the same programe > code on SMT version. > > I sent
Thread view
Attachments: 0
2009-10-17 by frazgk
Hi I have a system designed by a local company based on Atmega32, and its works fine. then I have it made from China on SMT. Problem: SMT version is not generating PWM. I use the same programe code on SMT version. I sent the prototype back to china and they test it with their own
Thread view
Attachments: 0
2009-10-16 by John Samperi
At 11:22 PM 16/10/2009, you wrote: >Anyone have this type of problem ? I must have been about the first person to find this bug when the Dragon first came out. Same thing, old JTAG worked with 300mm cable, the Dragon did not, Some older chips worked with longer cable, Mega164 and
Thread view
Attachments: 0
2009-10-16 by Jeff Blaine AC0C
David, You are right on the 10K - if the current needed to pull up is minimal, the Vdrop over that resistor will be minimal and all is well. But in a high noise environment (or where there is RF floating about), I like to use lower value pull ups if the sink capability of the dri
Thread view
Attachments: 0
2009-10-16 by David Kelly
On Fri, Oct 16, 2009 at 11:44:53AM -0300, Emerson Santos wrote: > Hi David > > Thanks for you reply > > But i can fix the problem soldering a 1K Pull UP in the TCK line of > JTAG in the ATmega164P board ... I don?t see anything about this in > the datasheet but works. > > heheheh
Thread view
Attachments: 0
2009-10-16 by Emerson Santos
Hi David Thanks for you reply But i can fix the problem soldering a 1K Pull UP in the TCK line of JTAG in the ATmega164P board ... I don´t see anything about this in the datasheet but works. hehehehe Emerson Santos 2009/10/16 David Kelly > > > On Fri, Oct 16, 2009 at 09:22:28AM -
Thread view
Attachments: 0
2009-10-16 by David Kelly
On Fri, Oct 16, 2009 at 09:22:28AM -0300, Emerson Santos wrote: > HI > > I?ve a AVR DRagon and I made a 10 pin flat cable with about 30 cm > length ... well , when I put a ATmega16 or mega32 .. its work fine (I > use the AVRSTudio 4.16 build 638), but with ATmega164p the JTAG fai
Thread view
Attachments: 0
2009-10-16 by Emerson Santos
HI I´ve a AVR DRagon and I made a 10 pin flat cable with about 30 cm length ... well , when I put a ATmega16 or mega32 .. its work fine (I use the AVRSTudio 4.16 build 638), but with ATmega164p the JTAG fail with a message that not can´t read ... when I use my hand to envolve the
Thread view
Attachments: 0
2009-10-16 by Jeff Blaine AC0C
Thanks Steven. This will save me some hardware hassle. Thanks/Jeff From: STEVEN HOLDER Sent: Friday, October 16, 2009 2:47 AM To: AVR-Chat@yahoogroups.com Subject: Re: [AVR-Chat] RESET connection between AVR and MCP23S17 port expander required? I don't think the reset line needs
Thread view
Attachments: 0
2009-10-16 by STEVEN HOLDER
I don't think the reset line needs to be connected to the avr, but it does need to be connected, as long as the standard R/C reset line combination is employed (as you would do on the reset line of the avr) then it won't be a problem as long as the pulse width timing is maitained
Thread view
Attachments: 0
2009-10-16 by Jeff Blaine AC0C
In the normal configuration, the MCP23S17 needs 5 lines tied to the AVR. One of these lines is the RESET line input to the MCP chip. As I read the data sheet, the use of that line is to allow the AVR to instruct that chip to perform a reset. I do not anticipate needing to issue t
Thread view
Attachments: 0
2009-10-16 by Jeff Blaine AC0C
Thank you very much John. That is what I needed to know. Regards, Jeff From: John Samperi Sent: Thursday, October 15, 2009 10:18 PM To: AVR-Chat@yahoogroups.com Subject: Re: [AVR-Chat] Sharing JTAG test pins as I/O At 10:16 AM 16/10/2009, you wrote: >The Atmel document shows only
Thread view
Attachments: 0
2009-10-16 by John Samperi
At 10:16 AM 16/10/2009, you wrote: >The Atmel document shows only a mention of "LOAD" via a set of resistors. >And no other mention. So I am unsure if this is correct. Your other 2 assumptions are correct. Using the JTAG pins while connected to something (ie LEDs or switches for
Thread view
Attachments: 0
2009-10-15 by keepwalking188
Please help to confirm this understanding of sharing the JTAG pins. I know it works with ISP, but JTAG seems to be less clear... I want to use the 4 JTAG pins as output pins in the normal mode operation. However, for debugging, I also want to use these 4 JTAG pins to run ICE. As
Thread view
Attachments: 0
2009-10-14 by dlc
Thanks Dave, I'll look into hacking it - This looks REALLY familiar, quite similar to the one that I use. I suppose that I shouldn't be surprised, it seems that all of them are roughly based off of the Atmel app note and everyone just tweaks it for use. :) DLC Dave Hylands wrote:
Thread view
Attachments: 0
2009-10-13 by Dave Hylands
Hi Dennis, > I have one over here: > > > Or if the above gets clobbered, > , click on Projects, avr, bootloader-stk500 > > I modified it to send out a character at the start, but you can tweak > it however you like :) > > I've used it with ATMega8's, 16's and ATMega128's. The #if
Thread view
Attachments: 0
2009-10-13 by Dave Hylands
Hi Dennis, On Tue, Oct 13, 2009 at 8:17 AM, Dennis Clark wrote: > >> there are many on avrfreaks.net - projects section. >> One that is easily setup for the old (OLD) mega8535 is BLIPS. It too is >> on avrfreaks.net. It includes a GUI based PC side program too. You'll >> need atm
Thread view
Attachments: 0
2009-10-13 by Dennis Clark
> there are many on avrfreaks.net - projects section. > One that is easily setup for the old (OLD) mega8535 is BLIPS. It too is > on avrfreaks.net. It includes a GUI based PC side program too. You'll > need atmel's AVR studio (free). I've seen this one, but I don't want something
Thread view
Attachments: 0