Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: tiny2313 pullups

2009-09-30 by blue_eagle74

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.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.