theMagni
Joined: 21 May 2004 Posts: 48 Location: Victoria, BC
|
10F202 / MCLR |
Posted: Thu Feb 17, 2005 12:46 pm |
|
|
Hello, group:
I'm working with the 10F202. I'm using version 3.218 and the latest version of Quickwriter. Here's the problem:
The code I have written for the 10F has specifically turned off the wakeup on pin change function. (GPWU = 1; GPWU = OPTION.7) However, when I change the state of one of the pins, the PIC wakes up.
I think that part of the problem is with the MCLR. I've stated that the MCLR should be turned off, but the code that CCS generates seems to be telling Quickwriter to leave it on. (When loading code from CCS, QW always shows that MCLR is "ON". I have to turn it off in QW.) I know that it's off once I turn it off in QW. If I leave it as CCS compiles, tying the input low leaves the chip in a suspended state. (i.e. Nothing happens)
Has anyone else had problems with this chip waking up with a port pin change? Any sugegstions or solutions that you've come up with?
Thanks for your help. _________________ In the 90's, I promised myself I'd never use a so-called "smiley icon". I hate what I've become. ;) |
|
theMagni
Joined: 21 May 2004 Posts: 48 Location: Victoria, BC
|
|
Posted: Thu Feb 17, 2005 6:12 pm |
|
|
This turned out to be a PEBKAS error. I just had to set the option register in assembly and it worked great. _________________ In the 90's, I promised myself I'd never use a so-called "smiley icon". I hate what I've become. ;) |
|