Hi,
I am using an STC 89C51 microcontroller connected to my computer using an USB to TTL adapter, as per their datasheet. I am using stcgal to program this microcontroller. However to program it I need to put it into its serial bootloader mode. This requires a power on reset, which I have to do manually by power cycling the MCU. stcgal does have the ability to trigger a pulse on the USB to TTL DTR line. I was wondering if there is a simple way to power cycle the VCC line (pin 40) in response to the DTR pulse. I did try connecting the DTR line to RST pin 9 of the MCU. The RST pin 9 is held down using a 10K ohm resistor as per the datasheet and it is a active low pin. Though stcgal produces a high pulse, it does not put the MCU in serial boot loader mode and I expected this since the datasheet seems to indicate that the MCU can only be put into bootloader mode by power cycling.
regards
I am using an STC 89C51 microcontroller connected to my computer using an USB to TTL adapter, as per their datasheet. I am using stcgal to program this microcontroller. However to program it I need to put it into its serial bootloader mode. This requires a power on reset, which I have to do manually by power cycling the MCU. stcgal does have the ability to trigger a pulse on the USB to TTL DTR line. I was wondering if there is a simple way to power cycle the VCC line (pin 40) in response to the DTR pulse. I did try connecting the DTR line to RST pin 9 of the MCU. The RST pin 9 is held down using a 10K ohm resistor as per the datasheet and it is a active low pin. Though stcgal produces a high pulse, it does not put the MCU in serial boot loader mode and I expected this since the datasheet seems to indicate that the MCU can only be put into bootloader mode by power cycling.
regards