Re: PIC 18F device has odd fade-in delay?



On Wed, 19 Dec 2007 10:37:35 -0500, "Peter S. May" <me@xxxxxxxxx>
wrote:

I've successfully programmed PIC 16F-series MCUs since the summer, but
just started messing with an 18F2450 and an 18F2550. I've put some
simplistic Hello World firmware on the chip, whereby PORTB is
incremented once after a delay loop, repeating ad infinitum. I have two
LEDs connected via 1K resistors to RB0 and RB1. (TRISB = 0, ADCON0 = 0,
MCLR disabled.)

When I apply power to the circuit, the LED on RB0 seems to take a few
seconds (longer than the program's delay loop) to fade in at first.
After that, the program runs normally.

I thought it might be the fact that I was using a 20MHz crystal on a
breadboard, so I removed the crystal and configured the device for
internal oscillator. I also thought it might have something to do with
the ATX power supply I was using, so I tried batteries instead. Neither
fixed the problem.

Also, the same problem occurred with both the '2450 and the '2550 I
used, so it seems as if it's not a problem with the chip itself.

Along the lines of firmware and/or application circuit, what else should
I try?

Thanks
PSM

You should increment LATB not PORTB, or use a shadow variable.

Best regards,
Spehro Pefhany
--
"it's the network..." "The Journey is the reward"
speff@xxxxxxxxxxxx Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog Info for designers: http://www.speff.com
.



Relevant Pages

  • Re: "The appeal of full-frame CMOS sensors, " Canons PR pages
    ... "firmware" is in itself just software and when you "upgrade the firmware" you are reprogramming the hardware to function differently... ... This could include how the sensor modifies data from the chip and in fact, how the chip itself actually collects and processes data. ... It is circuity which takes advantage of certain physical poperties of the chip and some of the characteristics of the noise. ...
    (rec.photo.equipment.35mm)
  • Re: How to extract the firmware of my cellular ? (or embedded systems in general)
    ... First, if you're going to involve the cellular, you'll need to reverse ... engineer by following all block to block, chip to chip... ... In order for you to take the 'firmware' out and read the codes as you ... EARN A MASTER OF SCIENCE IN INFORMATION ASSURANCE - ONLINE ...
    (Security-Basics)
  • Re: Suse 9.3 on a desktop replacement (WLAN pcmcia)
    ... sales information virtually never indicated what the chip used was. ... firmware for ACX100 WLAN cards - ... The fall back internal dial up modem is unlikely to be any use unless ...
    (alt.os.linux.suse)
  • Re: Hardware Guru for Hire?
    ... The USB-to-FDC chip is a whole microprocessor PLUS an FDC chip WITH A FIRMWARE OPERATING SYSTEM. ... But if the discussion relates to the most common mask firmware stock versionof the chip, it may not be possible to implement sector sizes other than 512 bytes. ...
    (comp.os.cpm)
  • Re: Incrementing an alpha character
    ... D10-001 etc are door numbers in a schedule - the alpha suffix is only used ... What should happen if the last character is a lower case 'z'? ... Chip Pearson ... Code used to increment D01-004 to D01-005 is ...
    (microsoft.public.excel.programming)