Hello! Is there any way in witch I can determine if the MCU has entered Monitor Mode? Because I have a hard time getting started with these MCUs as I have built a programmer after AN2317 (page 10) and I can't make it work. I have used ICS08 software from P&E Micro and all I get is hardware loopback. I have checked over and over again the connections and everything looks OK! Please help!
I notice that, of the seven pins associated with JP2, none is a ground connection. If JP2 is the only connection with the target, and separate power supplies are used for programmer and target, and these power supplies are isolated, there will be a problem. There must always be a direct ground connection between the programmer and the target.
For a POR to occur, the Vdd voltage must drop below 0.1 volts. It is possible that this does not occur because you have a number of pull-up resistors (to 5V) in the programmer, that are connected pins on the MCU. The current flow into these pins, when Vdd is removed, can cause Vdd to remain above 0.1 volts, and POR will not occur.
The power to the programmer needs to be switched at the same time as the power to the target. Alternatively, you could supply power to the target, via the programmer, and then only the programmer needs to be switched. However, to do it this way will require more than seven connections to the target.
As i said above,i also built the programmer from the original datasheet of the gp32(page 130) with small modifications at the rs232 driver and using a 9.xxxMHz oscilator.Power for the MCU it is given from the programmer.
How can i have a POR for the uC in these conditions? Does the RST line of the uC have anything to do with de Monitor Mode(i ask this because in an electrical scheme the RST line of the uC was connected to the DTR pin from RS232).
If you look at the table in the Monitor ROM section of the data sheet that shows you the signal requirements for monitor mode entry, you will see that RST has little to do with it.
The DTR control of RST is a luxury that under certain circumstances provides a small benefit.
The Monitor Mode Circuit presented in the datasheet DOES work!
There is a thoasand different designs for monitor mode adapters but in the end they all do the same thing as the monitor mode requirements are quite strict and there is no possibility to modify the way that it works.
I think your problem is as Mac has said, you need to remove all power, a stray powered pullup will attempt to power up the whole chip when the main power is removed (well it certainly won't let it drop to the required 100mV or so)