Apparently this isn't the last email on this topic. I'm not sure why this
problem doesn't occur to 2220 but to 2620, as I need to use 2620 or its
family chips for the purpose of my project. I've checked the pin 10 (clkout)
with the oscillator fusebit set to output a clock on pin 10 as shown in the
project included in the zip file. Apparently, the problem seems to be that
the reset isn't configured properly even though it looks like it does in the
code. I had been suggested before on the microchip forums to look into using
BOR and PWRT. I have also tried to use an external power-up reset circuit
for slow startups, although that never seemed to work. I'm getting lost on
how to solve this reset issue. Any insights on this would be much
appreciated.

Thanks,

Stanley

On 10/9/07, Stanley Lee <[EMAIL PROTECTED]> wrote:
>
> Hi Jan,
>
> Just modified your code on the PIC18F2220, and it finally worked
> consistently. I think what went wrong must have been with that particular
> PIC18F2620. Thanks for everyone's help! Last spam for me on this topic
> finally.
>
> Stanley
>
> On 10/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
>
> > Stanley Lee schrieb:
> > > Hi,
> > >
> > > I have incorporated Jan's suggestions into the code, and apparently
> > got
> > > the same behaviour. Is it possible to get from you, Jan, the modified
> > > code that you have for the PIC18F2220 as I try on that particular mcu?
> > > Attached to the email is the code.
> >
> > that pretty strange. Attached to this mail you find the code. You could
> > try the following:
> > - exchange _MCLRE_MCLR_OFF_RE3_ON_3H with _MCLRE_MCLR_ON_RE3_OFF_3H and
> > try if your code runs if you press reset.
> > - you configure osc_output on RA6 (_OSC_INTIO7_1H) try to measure with
> > an oscilloscope if clock is running while your pic refuses to do so.
> > - try, if possible, to use an external clock or to lower the internal
> > clock.
> >
> > jan
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > _______________________________________________
> > Sdcc-user mailing list
> > Sdcc-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/sdcc-user
> >
> >
> >
>

Attachment: LED_toggle.tar.gz
Description: GNU Zip compressed data

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to