Yahoo Groups archive

AVR-Chat

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

Message

Re: Weirdness on Butterfly...

2006-04-12 by granz_consult

Mike,

I am also having wierdness with the Butterfly's Port E.  In trying to
use the onboard joystick, I am showing continuous action of both left
and right joystick (the two Port E pins).  I have been sucessful in
reading the Port B pins (up, Down and Center), but have not been able
to read the Port E pins at all.

I've tried writing the DDRE pins, then activating the pull-up resistor
by writing to PortE pins and then reading from the PinE pins to test
for left/right action, but am always showing both being true.

Have you had any answers or any sucess on your own in solving this?

Thanks,

Art

--- In AVR-Chat@yahoogroups.com, Mike Murphree <mike@...> wrote:
>
> 
> Ran into a weird problem this week while modifying the AVR Butterfly 
> code for my own application.
> On the Butterfly, the pins for Port B bits 4,6, and 7, plus Port E bits 
> 2 and 3 are used for the joystick.  I am using these pins for my own 
> application and am only using the LCD driver code, the USART code, and 
> the oscillator calibration code out of the original application.  The 
> weird part was that all of these pins were set to inputs and I had 
> pullups enabled (confirmed in Studio), but both in my application and 
> in Studio's I/O panel, these bits in Port E were being read as zeroes.  
> I also confirmed with a DVM that these pins were at a high level.
> 
> I got my project working by reassigning the pins in Port E to Port B, 
> but I'm at a loss as to what was happening with the Port E pins.  I 
> checked with the original source and the board worked fine then.
> 
> Any ideas?
> 
> Mike
>

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.