Of course I turned off the pull-up resistor. OK, let me check one more time. Wait a minute.... PB4 is the 5th bit not the fourth. @#$%#&%&! Hey, now it works. Funny how being just onnnnnnne bit off makes a difference. Thanks Brian, Pat --- In AVR-Chat@yahoogroups.com, "Brian Fairchild" <b.fairchild@d...> wrote: > Although you have configured the pin as an input, have you turned off > the pull-up resistor? > > > -----Original Message----- > From: p_anglum [mailto:p_anglum@h...] > Sent: 22 June 2004 19:57 > To: AVR-Chat@yahoogroups.com > Subject: [AVR-Chat] A/D to PWM > > > I'm using a Tiny 15 to convert a 0-10 volt input to PWM output. > I use a voltage divider (10K - 10K) to scale the 0-10 down to 0-5 > before applying it to PB3(ADC3). > > Everything seems to work except at the lowest range of input voltage > the A/D seems to always read some small voltage. In fact, with my 0- > 10V input removed and only the voltage divider on the input to to > ADC3 I read about .9 volts on ADC3. It appears the source of the > voltage is the ADC3 pin itself. Any ideas? > (All voltage measurements were made in refernce to pin4 - GND on the > Tiny15) > > > > Yahoo! Groups Sponsor > > ADVERTISEMENT > > <http://us.ard.yahoo.com/SIG=1295l07cu/M=295196.4901138.6071305.300117 6/ > D=groups/S=1706554205:HM/EXP=1088017048/A=2128215/R=0/SIG=10se96mf6/*h tt > p://companion.yahoo.com> click here > > <http://us.adserver.yahoo.com/l? M=295196.4901138.6071305.3001176/D=group > s/S=:HM/A=2128215/rand=901415906> > > _____ > > Yahoo! Groups Links > > > * To visit your group on the web, go to: > http://groups.yahoo.com/group/AVR-Chat/ > > > * To unsubscribe from this group, send an email to: > AVR-Chat-unsubscribe@yahoogroups.com > <mailto:AVR-Chat-unsubscribe@yahoogroups.com?subject=Unsubscribe> > > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/> .
Message
Re: A/D to PWM
2004-06-22 by p_anglum
Attachments
- No local attachments were found for this message.