AVR ISP Working How really Ponyprog & ISP programmer does this magic of setting controller in Programming mode
? As we know that brand new Atmega8 has ~RESET set at +5V. This says that RSTDISBL pin (We‟d say fuse bit) is not set. And of course it should not. If it‟s set then it disables your RESET pin and you‟ll not able to reset it again (Although by using High-Voltage Programming, you can). So, If ~RESET pin is at logic level „1‟ , it runs your application inside the uC & If ~RESET pin is at logic level „0‟ , your uC comes into programming mode. Thus, main thing is that how is it doing so? So, here‟s our ISP Programming Circuit.
CASE-1: This is connected to PC(RS232 side) but not connected to uC(5 pin Connector side).
Fig.6.9 Simulating ISP Programmer We‟re getting -5.7V at point A and 0.0 volt at point B. Because at base there‟s (-ve) voltage coming , so Transistor is Off. And voltage just divides between R1 & R2.
7V at point A and 3. But No commands are executed using Ponyprog.10 Simulation in Multisim CASE-2: This is connected to PC(RS232 side) and connected to uC(5 pin Connector side).
We‟re getting -5.97V at point B.6.
and from here 4. collector–emitter “resistance” is inﬁnite). because it‟s connected to ~RESET pin of uC.4V between 100MOhm (Which is internal input impedance of port pin). But command (e. So.g. Thus much voltage drop across it. CASE-3: Circuit is connected to PC(RS232 side) and connected to uC(5 pin Connector side). Since transistor is in cut off mode: Transistor acts like an open switch between collector and emitter (i.e.4V are coming.
. Reading) is executed using Ponyprog.Simulation:
3.97 between it and only 0..97V at point B this time. we‟re getting 3.
.. we‟re getting 8. collector–emitter “resistance” is very low).e.7V at point A and nearly 0. Simulation:
This is because transistor is in saturation mode: Transistor acts like a closed switch between collector and emitter (i. Thus low voltage drop across transistor and same between ~RESET pin.This time.0 V at point B.
Also still many more things are been done by Ponyprog… This is just RESET functionality that I‟ve degugged.