D7 is a data input/output pin of the LCD - see also the schematic http://www.ucapps.de/mbhp/mbhp_lcd.pdf
Thorsten, could some bootstrap loading errors (has not recieved one during bootstrap flashing) be the cause ?
of course, if you are not sure if MIOS has been uploaded correctly, this could be one of the reasons - so long this isn’t clear, it doesn’t make sense to talk about possible hardware problems. I can only mention the following: even people who thought that they have super proper connections to the LCD, noticed a broken wire or a short sooner or later. Just search in this troubleshooting section for reports, it gives you a lot of inspirations what can go wrong.
It is enough to touch PIC cover by finger to reboot it.
this is really strange! Could it be that a short is anywhere else which causes a brown-out reset?
It looks like RB port is in recieve mode, not transmit.
Data is sent to the LCD, thereafter the RB port is switched to input mode and the LCD driver polls the busy flag at D7.
There is a timeout loop which ensures that the LCD driver will be completely disabled if the busy bit never goes zero (0V) - this covers the case that no LCD is connected. But if anything else drives the input (RB7) with a non-static and “strong” signal (stronger than the internal pull-up), then the timeout loop will stop sooner and later and the next character will be transmitted. If multiple characters are sent to the LCD, and the erroronous, non-static signal enlarges the timeout-loop very often, so that it takes more than 2 seconds to display a string, the watchdog (malfunction detection) will reset the chip.
However, as mentioned above: so long you haven’t ensured that MIOS hasn’t been uploaded correctly, such thoughts are only from theoretical nature.
My suggestion: use the new MIOS Studio to upload MIOS. It notifies errors which are reported by the core module, so only with MIOS Studio it is guaranteed that the code upload was complete.
Just load the mios_v1_7.hex file, enable the “wait for upload request” option and press the start button.
Another important point regarding software configuration: are you sure that the right display type is selected? Which LCD option did you specify in the ID header? Hopefully 0?
If you are not sure, or if you are sure that it is != 0, then do the following: disconnect the LCD, upload MIOS, upload the change ID application.
This will reset the ID to 0000000000000000
Best Regards, Thorsten.