2007-06-04 by briangregory82
--- In AVR-Chat@yahoogroups.com, "Don Kinzer" wrote: > > A more general solution is to implement what is commonly called > a "software UART" that is driven by a timer interrupt. [...] > Thanks for the advice. Apparently avrlibc has a software UART implementation. Are you familiar
Thread view
Attachments: 0
2007-06-04 by Don Kinzer
--- In AVR-Chat@yahoogroups.com, "briangregory82" wrote: > SERIN: As a guess I would think I could start polling the pin > for the first low-high transition [...] What you've described would suffice for a primitive serial input function. It would, of course, suffer from the same
Thread view
Attachments: 0
2007-06-04 by Reza
--- Hamid wrote: > hello. > i want to write a program that displays dot, line, > circle, bitmap pictures, etc on the graphical lcd > (128x64 uses KS0108 driver) by AVR using > codevisionavr. > can u send me some functions that do this jobs? > thanks. > > > -----------------------
Thread view
Attachments: 0
2007-06-03 by briangregory82
First I want to thank everyone for their help with the software SPI, I managed to interface with the HM55B compass successfully. For that solution, I ended up just writing shiftin/shiftout routines. If anyone wants to see my code it is here: http://docwiki.gumstix.org/Robostix_an
Thread view
Attachments: 0
2007-06-02 by Hamid
hello. i want to write a program that displays dot, line, circle, bitmap pictures, etc on the graphical lcd (128x64 uses KS0108 driver) by AVR using codevisionavr. can u send me some functions that do this jobs? thanks. --------------------------------- You snooze, you lose. Get
Thread view
Attachments: 0
2007-06-01 by Ralph Hilton
On Fri, 1 Jun 2007 08:31:28 -0700 (PDT) you wrote: >Hi > I have done such thing before. > My code is like bellow > the function "Source_transmit()" transsends 4 bytes in each call. > > Mohammad. I'm glad I'm not responsible for maintaining that code! Try some spacing, separate li
Thread view
Attachments: 0
2007-06-01 by maria mastik
Hi I have done such thing before. My code is like bellow the function "Source_transmit()" transsends 4 bytes in each call. Mohammad. code --> #define source_SCK PORTC.2 #define source_MOSI PORTC.4 #define source_MISO PINC.3 #define source_RST PORTC.5 //===========================
Thread view
Attachments: 0
2007-06-01 by Cat
Maybe it's as you say, I don't know otherwise, but I think Asynchronous communications CAN recover clock (if not too far off) using any of the techniques described in these postings... so if a UART could just do it somehow in HW rather than SW... In synchronous mode, these contro
Thread view
Attachments: 0
2007-06-01 by np np
It certainly worked in the projects I worked on. Its definitely a lot more complicated than a simple software UART function. A lot of care has to go into the timing loops to get it right. Also you will find you need a faster processor to get the same baud rate than when using a s
Thread view
Attachments: 0
2007-05-31 by Jim Wagner
Cat - I'm not very clear on this but async data really does not use "clock recovery". However, some of the synchronous modes do (manchester comes to mind). The "standard algorithm" is to detect the leading edge of the start bit, then sample some number of times during the first e
Thread view
Attachments: 0
2007-05-31 by dlc@frii.com
Many of the commercial serial servo and serial LCD modules require you to send out a preamble byte - Usually it is 0x55, which if you look at it is an alternating set of '1' and '0'. This will allow you to time the bit pattern and figure out how you should sample the bit cells, t
Thread view
Attachments: 0
2007-05-31 by Cat
Page 136 in the ATmega8 doc2486.pdf mentions some "clock recovery" but I'm not sure what it does... could it do some of this adaptation by itself, in the USART? Cat ----- Original Message ----- From: "np np" To: Sent: Thursday, May 31, 2007 4:01 PM Subject: Re: [AVR-Chat] Re: Wha
Thread view
Attachments: 0
2007-05-31 by np np
You could try some adaptive software to work out the baud rate ? We wanted to use a cheap internal osc so had the PC send out some 55H characters before transmission. The PIC measured the bits and used the value as the length of a bit. It then could match itself to the rx and tx
Thread view
Attachments: 0
2007-05-31 by Mike Harrison
On Thu, 31 May 2007 15:27:21 -0600 (MDT), you wrote: > That is a brilliant tuning suggestion! I never thought of that one > . Another "gotcha" when using the internal RC oscillators is >that they are not as stable over temperature ..or voltage >as a resonator or crystal. >As long
Thread view
Attachments: 0
2007-05-31 by David VanHorn
On 5/31/07, dlc@frii.com wrote: > That is a brilliant tuning suggestion! I never thought of that one > . Another "gotcha" when using the internal RC oscillators is > that they are not as stable over temperature as a resonator or crystal. > As long as you stay pretty close to the
Thread view
Attachments: 0
2007-05-31 by dlc@frii.com
That is a brilliant tuning suggestion! I never thought of that one . Another "gotcha" when using the internal RC oscillators is that they are not as stable over temperature as a resonator or crystal. As long as you stay pretty close to the 20-25C temperature range they are fine,
Thread view
Attachments: 0
2007-05-31 by kernels_nz
Hi guys, Only bit of advice that I can give from my own experience is that the on chip RC oscillator is FINE for UART when your running on a accurate 5V supply AND you program the OSCCAL register with the correct value. If your VCC is low (3V or 3.3V) etc, you can still use the U
Thread view
Attachments: 0
2007-05-31 by Samir Lohani
One technique I've used with great success in RC oscillator Nitron devices is to use the target to itself calibrate the half-bit delay loop.I get the target to send $7F to the micro at the start of the serial session. The serial line is low for exactly one-bit period, which is us
Thread view
Attachments: 0
2007-05-31 by dlc@frii.com
> On 5/30/07, dlc wrote: >> I've gotten 9600 baud to work well with the internal 1MHz oscillators of >> the Tiny11. You can handle quite a bit of slop reading serial data if >> your baud rate is low enough. > > Unfortunately, clock speed error is proportional, so 5% error is 5% >
Thread view
Attachments: 0
2007-05-31 by BobGardner@aol.com
> Can anyone point me to a bit-bang SPI example? ============================================= #define DATHI() PORTB |= 0x01; #define DATLO() PORTB &= ~0x01; #define CLKHI() PORTB |= 0x02; #define CLKLO() PORTB &= ~0x02; void bb(char n){ unsigned char msk; msk=0x80; while(msk){ i
Thread view
Attachments: 0
2007-05-31 by Ralph Hilton
On Wed, 30 May 2007 16:36:56 -0400 you wrote: >Can anyone point me to a bit-bang SPI example? I'm trying to talk to one of >these: >http://www.parallax.com/detail.asp?product_id=29123 > >Perhaps someone has an equivalent to SHIFTOUT and SHIFTIN in C? > >Thanks, >Brian Gregory Her
Thread view
Attachments: 0
2007-05-31 by briangregory82
Wow! Thanks for everyone's help. Brian
Thread view
Attachments: 0
2007-05-31 by Mark Nowell
Anyone know the cheapest/quickest way to get an ATNGW100 in UK? Thanks, Mark Dave Hylands wrote: > Hi, > > On 5/30/07, thormj_altea wrote: > >> http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4102 >> >> Looks nifty. >> Not at Digikey. >> > > DigiKey Part number is: ATNGW
Thread view
Attachments: 0
2007-05-31 by Leon
----- Original Message ----- From: "Brian Gregory" To: Sent: Wednesday, May 30, 2007 9:36 PM Subject: [AVR-Chat] Bit-bang SPI > Can anyone point me to a bit-bang SPI example? I'm trying to talk to one > of > these: > http://www.parallax.com/detail.asp?product_id=29123 > > Perhaps
Thread view
Attachments: 0
2007-05-31 by David VanHorn
On 5/30/07, Brian Gregory wrote: > Can anyone point me to a bit-bang SPI example? I'm trying to talk to one of > these: > http://www.parallax.com/detail.asp?product_id=29123 > > Perhaps someone has an equivalent to SHIFTOUT and SHIFTIN in C? > Haven't done it in C, but I've had a
Thread view
Attachments: 0
2007-05-31 by David VanHorn
On 5/30/07, dlc wrote: > I've gotten 9600 baud to work well with the internal 1MHz oscillators of > the Tiny11. You can handle quite a bit of slop reading serial data if > your baud rate is low enough. Unfortunately, clock speed error is proportional, so 5% error is 5% error in b
Thread view
Attachments: 0
2007-05-31 by dlc
I've gotten 9600 baud to work well with the internal 1MHz oscillators of the Tiny11. You can handle quite a bit of slop reading serial data if your baud rate is low enough. DLC Cat wrote: > Thanks guys, > > I'll connect it to an ext osc, but I was curious. > > Cat > > > > Yahoo!
Thread view
Attachments: 0
2007-05-31 by David VanHorn
On 5/30/07, stevech11 wrote: > Grab AVRCalc off the projects section. > If your oscillator was exactly 8MHz, the error at 38400 is small. I > don't know what's involved in calibrating the on-board oscillator and > how it's affected by temperature or Vcc changes. Generally speakin
Thread view
Attachments: 0
2007-05-31 by Cat
Thanks guys, I'll connect it to an ext osc, but I was curious. Cat
Thread view
Attachments: 0
2007-05-30 by BobGardner@aol.com
In a message dated 5/30/2007 6:24:19 P.M. Eastern Daylight Time, catalin_cluj@hotmail.com writes: What serial speed (RS232) can I achieve using the built-in oscilator, running at 8MHz? I'm using the "Fleury" serial library, but it looks like I can't go above 38400bps... would thi
Thread view
Attachments: 0
2007-05-30 by Dave Hylands
Hi, On 5/30/07, thormj_altea wrote: > http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4102 > > Looks nifty. > Not at Digikey. DigiKey Part number is: ATNGW100-ND Quantity is zero because they sell out fast. Order it and it will be backordered and shipped when the next or
Thread view
Attachments: 0
2007-05-30 by Cat
Hi, What serial speed (RS232) can I achieve using the built-in oscilator, running at 8MHz? I'm using the "Fleury" serial library, but it looks like I can't go above 38400bps... would this be because the RC clock is not precise enough, or because 8MHz is not fast enough to go abov
Thread view
Attachments: 0
2007-05-30 by Thomas Keller
thormj_altea wrote: > > http://www.atmel. com/dyn/products /tools_card. asp?tool_ id=4102 > > > Looks nifty. > Not at Digikey. > > Anyone here know what's up? > Apparenlty Digikey isn;t carrying it for some reason. The page you refer to has a buy now link, which links to two vend
Thread view
Attachments: 0
2007-05-30 by John Samperi
At 06:02 AM 31/05/2007, you wrote: > 2. A AVR Dragon (I'll build my own optoisolators) [digikey] > 4. JTAG ICE mk II [digikey] These would be the only ones that would work as they have debugWire facility, just checked and the Dragon supports the chip (~US$49). I believe that ther
Thread view
Attachments: 0
2007-05-30 by stevech11
Grab AVRCalc off the projects section. If your oscillator was exactly 8MHz, the error at 38400 is small. I don't know what's involved in calibrating the on-board oscillator and how it's affected by temperature or Vcc changes. --- In AVR-Chat@yahoogroups.com, "Cat" wrote: > > Hi,
Thread view
Attachments: 0
2007-05-30 by Brian Gregory
Can anyone point me to a bit-bang SPI example? I'm trying to talk to one of these: http://www.parallax.com/detail.asp?product_id=29123 Perhaps someone has an equivalent to SHIFTOUT and SHIFTIN in C? Thanks, Brian Gregory
Thread view
Attachments: 0
2007-05-30 by Ian Drennan
dlc@frii.com wrote: > Hi folks, > > I have a BasicX-24 module and I want to program it directly, no Basic > interpreter involved because I need a brain in a project that has a 24 > pin slot and this is the smallest footprint around for that. So, has > anyone done this and which p
Thread view
Attachments: 0
2007-05-30 by thormj_altea
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4102 Looks nifty. Not at Digikey. Anyone here know what's up?
Thread view
Attachments: 0
2007-05-30 by thormj_altea
I'm trying to debug a line-powered AT90PWM3 (yay motors. Code works *mostly*) application. I need to go beyond "debug by printf", so I think I need to get another piece besides the STK500.... Can I use (I guess in order of preference, but correct me if I should prefer different o
Thread view
Attachments: 0
2007-05-29 by dlc@frii.com
Hi folks, I have a BasicX-24 module and I want to program it directly, no Basic interpreter involved because I need a brain in a project that has a 24 pin slot and this is the smallest footprint around for that. So, has anyone done this and which pins are the ones to use to get d
Thread view
Attachments: 0
2007-05-29 by bzijlstra
Check www.mcselec.com, homebase of Bascom-AVR. Check the forum there. In Bascom-AVR there is AVR-DOS and with that you can read Compact flash, HDD, MMC, SD. You can also check my homepage for some examples. http://members.home.nl/bzijlstra and some pictures on http://benshobbycor
Thread view
Attachments: 0
2007-05-28 by Reza
--- hamid ildar wrote: > Hello. > I want to read a stick memory or MMC by AVR with > BASCOM software. > Please help me. > Thank you... > > > > --------------------------------- > Be a better Globetrotter. Get better travel answers > from someone who knows. > Yahoo! Answers - Chec
Thread view
Attachments: 0
2007-05-28 by hamid ildar
Hello. I want to read a stick memory or MMC by AVR with BASCOM software. Please help me. Thank you... --------------------------------- Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. [Non-text portions of this message ha
Thread view
Attachments: 0
2007-05-27 by Eric Engler
--- In AVR-Chat@yahoogroups.com, "Hans Kallen" wrote: > http://www.avrcard.com/products/playground_overview.htm > The "more" link is bad.
Thread view
Attachments: 0
2007-05-23 by Hans Kallen
--- In AVR-Chat@yahoogroups.com, "Tim Gilbert" wrote: Hello Darren, Check out this site: http://www.avrcard.com/products/avrcard.htm and http://www.avrcard.com/products/playground_overview.htm Best regards, Hans
Thread view
Attachments: 0
2007-05-22 by Tim Gilbert
Darren, Check out www.pdksolutions.com Tim ----- Original Message ----- From: Darren Worley To: AVR-Chat@yahoogroups.com Sent: Tuesday, May 22, 2007 7:52 AM Subject: [AVR-Chat] Wanted... Hi all, I have a one off project for home, and I'm looking for some prebuilt H/W. So if any o
Thread view
Attachments: 0
2007-05-22 by Darren Worley
Hi all, I have a one off project for home, and I'm looking for some prebuilt H/W. So if any of you have any circuits or kits or your own projects available prebuilt (or even blank PCB's) that could suit and that you want to sell, drop me an email of list if you like with some spe
Thread view
Attachments: 0
2007-05-22 by tim48v
--- In AVR-Chat@yahoogroups.com, "Darren Worley" wrote: > I have a one off project for home, and I'm looking for some prebuilt H/W. So > if any of you have any circuits or kits or your own projects available > prebuilt (or even blank PCB's) that could suit and that you want to se
Thread view
Attachments: 0
2007-05-19 by Tim Gilbert
Just how much current does an Atmega169P with an LCD display on draw? I know what the charts say but what about the real world? I'm planning to put it into powersave between updates (once a second) and would like to hit
Thread view
Attachments: 0
2007-05-19 by haben jemal
hi has anybody worked with this chip before AT86RF401 i was wondering if anybody had worked with some simple transmitter circuits with this chip so that it could be a example or a push start for me thanks or if u have other options please just mail it thanks ---------------------
Thread view
Attachments: 0