gnupic@linuxhacker.org

gnupic@linuxhacker.org


Subject: Re: gpsim & sleep
From: Ralf Forsberg
Date: Fri, 28 Mar 2003 11:50:47 +0100

On Thu, Mar 27, 2003 at 06:30:33PM +0100, Yann Gouy wrote:
> Hi,
> 
> when debugging my app, I'm not able to go out of "sleep" when RB0 goes
> high from low. I have configured OPTION_REG correctly (it seems)
> I am trying to set RB0 high with the RAM window, but as it is configured
> as input, I can't

Open the 'breadboard' or 'pins' window and click on the pin.

There is a bugs related to sleep registered at:
http://sourceforge.net/tracker/index.php?func=detail&aid=576916&group_id=2341&atid=102341

> if someone can help me, it would be very kind.

There's probably a bp.clear_sleep() missing somewhere, probably
around PORTB::setbit in src/ioports.cc. But don't know enough about the
sleep mode and portb interrupts to make a reasonable patch for this.

 / Ralf


gnupic@linuxhacker.org