From: mrdarrett on 27 Sep 2006 13:12 Simon Dice wrote: > I Agree with the others, but If you still want a reference book for > programming in C the AVRs, I can recomend you this one: > Embedded C Programming and the Atmel AVR > Authors are Barnett, Cox &Ocull > you can get it from B&N Ok, thanks for the reference. I think I'll try and build my own programmer. I'll try the ATTINY11-6PC: $0.53 each at Mouser. What a deal! At this rate I can buy more than one, in case I burn it out. I've found some schematics for a programmer out here: http://www.serasidis.gr/circuits/avrprog/avrprog.htm I think the pinout is compatible with the AT90S2323, but I'll check the data sheets on the ATTINY11 to make sure... Questions: 1) For the parallel port, is Pin 1 the pin on the upper-left looking at the Printer Port on the PC, or the upper-left looking at the Printer Cable (IOW, upper-right looking at the PC)? 2) Let's say I want to make a simple AA battery tester (0 to 1.5 VDC range), and interface it to the PC via serial port. I know I'll need an ADC, and I can probably get away with using the one on the chip (comparator, right?). Anyone have any schematic for building such an AVR-to-Serial interface? fwiw, I went over to Borders last night, and even the PIC books didn't discuss in much detail how to interface with the PC. Just only how to interface the programmer with the PC. Sheesh. Thanks! Michael
From: linnix on 27 Sep 2006 13:57 > 2) Let's say I want to make a simple AA battery tester (0 to 1.5 VDC > range), and interface it to the PC via serial port. I know I'll need > an ADC, and I can probably get away with using the one on the chip > (comparator, right?). Anyone have any schematic for building such an > AVR-to-Serial interface? Yes, a Max232 Here is a battery charger with RS232 and LED read out. The LEDs are time multiplexed and maintain a rather constant brightness across voltage range of 2.4V to 2.8V (two NiMH cells). It's using the Atmega169, but should work with 165 (cheaper) as well. The basic components are: 165/169 Max232 w/ 5 Cs Analog power filter (L, C and 2 R) LM317 SMPS is optional Analog multiplexer is not needed. http://linnix.com/proto
From: mrdarrett on 27 Sep 2006 14:06 linnix wrote: > > 2) Let's say I want to make a simple AA battery tester (0 to 1.5 VDC > > range), and interface it to the PC via serial port. I know I'll need > > an ADC, and I can probably get away with using the one on the chip > > (comparator, right?). Anyone have any schematic for building such an > > AVR-to-Serial interface? > > Yes, a Max232 A Maxim part? From previous threads, I think I should stay away from those... > Here is a battery charger with RS232 and LED read out. The LEDs are > time multiplexed and maintain a rather constant brightness across > voltage range of 2.4V to 2.8V (two NiMH cells). It's using the > Atmega169, but should work with 165 (cheaper) as well. The basic > components are: > > 165/169 > Max232 w/ 5 Cs > Analog power filter (L, C and 2 R) > LM317 > > SMPS is optional > Analog multiplexer is not needed. > > http://linnix.com/proto Pretty neat! You used a drive bay, huh. I couldn't find the schematics on your site though. I'm mostly interested in the serial output circuitry. Is yours a bit-banger? Michael
From: mrdarrett on 27 Sep 2006 14:12 mrdarr...(a)gmail.com wrote: > linnix wrote: > > > 2) Let's say I want to make a simple AA battery tester (0 to 1.5 VDC > > > range), and interface it to the PC via serial port. I know I'll need > > > an ADC, and I can probably get away with using the one on the chip > > > (comparator, right?). Anyone have any schematic for building such an > > > AVR-to-Serial interface? > > > > Yes, a Max232 Ah, I think I'm starting to get it. Use a dedicated RS-232 chip. And here I was banging my head against a wall trying to figure out how to build my own. Well, surprisingly, Mouser actually seems to have a few MAXIM 232s in stock... Hmm... if I'm going to use an output chip to control my computer interfaces, maybe I should just bite the bullet and look for a USB output chip... any suggestions? ;-) Thanks! Michael
From: linnix on 27 Sep 2006 14:21
mrdarr...(a)gmail.com wrote: > linnix wrote: > > > 2) Let's say I want to make a simple AA battery tester (0 to 1.5 VDC > > > range), and interface it to the PC via serial port. I know I'll need > > > an ADC, and I can probably get away with using the one on the chip > > > (comparator, right?). Anyone have any schematic for building such an > > > AVR-to-Serial interface? > > > > Yes, a Max232 > > A Maxim part? From previous threads, I think I should stay away from > those... OK, I should say TI, ST or Sipex RS232 driver chip. > > > > Here is a battery charger with RS232 and LED read out. The LEDs are > > time multiplexed and maintain a rather constant brightness across > > voltage range of 2.4V to 2.8V (two NiMH cells). It's using the > > Atmega169, but should work with 165 (cheaper) as well. The basic > > components are: > > > > 165/169 > > Max232 w/ 5 Cs > > Analog power filter (L, C and 2 R) > > LM317 > > > > SMPS is optional > > Analog multiplexer is not needed. > > > > http://linnix.com/proto > > > Pretty neat! You used a drive bay, huh. Yes, charging batteries while working on the PC, and logging the charge/discharge behaviours of the cells. > I couldn't find the schematics on your site though. I don't have one either. I went directly to layout from specs. > I'm mostly interested in the serial > output circuitry. Is yours a bit-banger? No, the 165/169 has hardware UART on pin 2 (RX) and 3 (TX). AVR pin 2 to 232 pin 10 and AVR pin 3 to 232 pin 11 > > Michael |