16F88 bootlader with Internal OSC
Hi guys,
Does anyone have a bootloader file for the 'F88 set up for the internal oscillator @4Mhz?
I've tried to import the one supplied with MCLoader (setup for external oscillator) into MPLAB and changing the Config bits manually but if I've figured this out correctly you also need to set the OSCCON-register to $68 in order for the internal oscillator to actually run at 4MHz. Initially I tried to change that in MPLAB as well (View->Special Function Registers)but obviously that won't work since the OSCON register is in RAM... doh...
So, does anyone have such a bootloader file or can assist me with a way to modify the existing one to work with the internal oscillator?
Oh, and I have verified serial comms using the USART by compiling a small program and programming the device with the PICStart+. It echos charcters sent to it at @2400baud so that part is working.
Thanks!
/Henrik.
MCSP bootloader seems to work for me
I just compiled a PBP program using the MeLabs USB serial programmer for the 16F88 on internal clock. I selected the 16F88_04 from C:\Program files\Mecanique\MCSP\MCLoader\16F88\16F88_04.
Call up the CONFIG word (click the 'C' beside the PIC16F88 dropdown) and there you can select the various clock modes you want.
In your code you will need an OSCCON statement to select 4 MHz and possibly a speed tweak via OSCTUNE.
Seems to work for me.
HTH
BrianT