Oznog
Active Member
I would like to build a bootloader for a PIC18F252. I am not aware of any electrical differences between that and a PIC16 bootloader though.
So I look into this and all the circuits I found use some version of the MAX232, which has an idle current of 10mA. This is too much of a load when the chip goes into sleep mode.
Now I saw other Maxim converters have a shutdown mode, but I'm not sure how to use it even if the chip is compatible. I.E. if it puts the 232 into shutdown when going to sleep, then it's obviously not going to be possible to program it at that time. I might be able to guarantee that we're going to wake it before trying to program, but with purely software control, don't we have the risk of a bad programming cycle leaving the system stuck with the 232 shutdown, thus unrepairable?
Plus, while loading, does a bootloader guarantee to tristate the pins? If so, I can put a pullup resistor to make sure shutdown isn't enabled while programming. If they're not specified then I'm probably screwed.
So:
1. Is there any way for the incoming RS232 signal to disable the shutdown through hardware components?
2. Does anyone have a bootloader schematic which has a low power RS232 converter?
3. Does bootloader execution guarantee pins will be tristated?
So I look into this and all the circuits I found use some version of the MAX232, which has an idle current of 10mA. This is too much of a load when the chip goes into sleep mode.
Now I saw other Maxim converters have a shutdown mode, but I'm not sure how to use it even if the chip is compatible. I.E. if it puts the 232 into shutdown when going to sleep, then it's obviously not going to be possible to program it at that time. I might be able to guarantee that we're going to wake it before trying to program, but with purely software control, don't we have the risk of a bad programming cycle leaving the system stuck with the 232 shutdown, thus unrepairable?
Plus, while loading, does a bootloader guarantee to tristate the pins? If so, I can put a pullup resistor to make sure shutdown isn't enabled while programming. If they're not specified then I'm probably screwed.
So:
1. Is there any way for the incoming RS232 signal to disable the shutdown through hardware components?
2. Does anyone have a bootloader schematic which has a low power RS232 converter?
3. Does bootloader execution guarantee pins will be tristated?