![]() |
Forum Index : Microcontroller and PC projects : MMBasic 5.1 program corrupted
Author | Message | ||||
rogersan Regular Member ![]() Joined: 10/04/2015 Location: AustraliaPosts: 79 |
I have been using a 28 pin Micromite V5.1. Somehow the program has been corrupted so that the Console Tx Data (Pin 11) has become an input. The problem may have bee caused by using OPTION LCDPANEL ILI9342, L, 2, 23, 6 More than once. I got an error message Error: Pin 2 is reserved on start up Roger Sanderson |
||||
Bill.b![]() Senior Member ![]() Joined: 25/06/2011 Location: AustraliaPosts: 235 |
Hi Roger Have you tried to reinstall V5.1. I have found this is required if I have stuffed up the LCD setup. Bill In the interests of the environment, this post has been constructed entirely from recycled electrons. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6266 |
Is the display ILI9342 or ILI9341? As far as I know, MMBasic requires a ILI9341 (but they could be interchangeable) If you try and configure the LCDPANEL again without OPTION LCDPANEL DISABLE first, you will get the pin reserved error message. It doesn't normally cause any major problems. You could try OPTION RESET to clear all options to their default. Jim VK7JH MMedit |
||||
rogersan Regular Member ![]() Joined: 10/04/2015 Location: AustraliaPosts: 79 |
I am using the LCD Backpack board from Silicon Chip. I tried a V4.6 B without an LCD display, to see if I could just get the Console Serial to work. I did get one sign on message but then nothing. Now the Console Tx (Pin 11) on that Micromite has become an input as well. Is the board somehow reprogramming the micromites? I checked the 3.3 volt supply (from an MCP1700-3302E) with an oscilloscope, it looks clean but there is a rise time of about 300 microseconds. I do not know if this is causing any problems. |
||||
rogersan Regular Member ![]() Joined: 10/04/2015 Location: AustraliaPosts: 79 |
The LCD Backpack board from Silicon Chip has a reset switch that connects MCLR (pin 1) to ground (10 k ohm pull up resistor to 3.3 volts). I have been using this reset switch, perhaps this is causing the corruption. |
||||
MicroBlocks![]() Guru ![]() Joined: 12/05/2012 Location: ThailandPosts: 2209 |
Check the capacitor at the VCAP pin. This is often the culprit of unexpected behavior. Microblocks. Build with logic. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6266 |
The reset shouldn't be a problem. Can you check that there isn't an open circuit in the Tx line from the processor to the terminal. That's more likely than a corrupted chip. The other common problem is with the capacitors. Jim VK7JH MMedit |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |