I found it. I had to change PORTB = 0xF4 to 0xFC. I was just looking too hard and kept missing it. Brian --- In AVR-Chat@yahoogroups.com, "Dave McLaughlin" <dave_mclaughlin@...> wrote: > > Hi Brian, > > > > Looking at your code, you are using Port D as your input but I only see bit > 3 being set for the weak pullup. (PORTD=0x04;) > > > > This would explain why you are only seeing 1 of them work. > > > > To enable the pullups on the pins you are using you need to use PORTD=0x3C; > > > > You did say that you tried with PORTD=0xFF and that didn't work. > > > > Do you have JTAG capability to be able to step through the code and read the > registers etc? > > > > > > Regards > Dave.
Message
Re: tiny2313 pullups
2009-09-30 by blue_eagle74
Attachments
- No local attachments were found for this message.