This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Software *** Hardware reset of AT89S52

Is this possible if we use hard reset (Logic 1 Pulse with some delay) by using ISR and one Port Pin Connected to RESET Pin? so that Controller can RESET itself by Applying RESET signal by ISR. I mean Software *** Hardware RESET!

AT89S52 can be reset with logic high for 2 machine cycles to RESET PIN.
I used Proteus VSM 7.1 and it shows RESET...
Reset itself by ISR and Port Pin

delay();
RESET_Port_Pin=1;            //Soft Reset to uC by Port Pin
delay();
RESET_Port_Pin=0;
delay();


But in Actual Circuit this Doesn't works.
Without any chip it could be done or not?
I think momentry latching of some type will help?
Please help!

Parents
  • "The REGx52.h , AT89X52.h,and .etc are not supposed to have any extended SFRs than the standard Intel-8052 architecture been included."

    The header recommended for the AT89S52 is REGX51.h:
    http://www.keil.com/dd/chip/3411.htm

    The comment at the top of REGX51.H says,

    //*-------------------------------------------------------------------------
    AT89X51.H (sic)
    
    Header file for the low voltage Flash Atmel AT89C51 and AT89LV51.
    Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
    All rights reserved.
    --------------------------------------------------------------------------*/
    

    http://www.keil.com/dd/docs/c51/atmel/regx51.h

    so you're right - nothing specific to the AT89S52

    The comment at the top of AT89X52.H also says,

    /*--------------------------------------------------------------------------
    AT89X52.H
    
    Header file for the low voltage Flash Atmel AT89C52 and AT89LV52.
    Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
    All rights reserved.
    --------------------------------------------------------------------------*/
    

    http://www.keil.com/dd/docs/c51/atmel/AT89X52.h

    Again, nothing specific to the AT89S52.

    So it looks like Keil's recommendation is a bit dodgy!

    But, as you say, there's nothing to stop you adding the required definitions yourself; or take a look through the supplied Keil headers to see if you can find a better fit; or see if Atmel has one...

Reply
  • "The REGx52.h , AT89X52.h,and .etc are not supposed to have any extended SFRs than the standard Intel-8052 architecture been included."

    The header recommended for the AT89S52 is REGX51.h:
    http://www.keil.com/dd/chip/3411.htm

    The comment at the top of REGX51.H says,

    //*-------------------------------------------------------------------------
    AT89X51.H (sic)
    
    Header file for the low voltage Flash Atmel AT89C51 and AT89LV51.
    Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
    All rights reserved.
    --------------------------------------------------------------------------*/
    

    http://www.keil.com/dd/docs/c51/atmel/regx51.h

    so you're right - nothing specific to the AT89S52

    The comment at the top of AT89X52.H also says,

    /*--------------------------------------------------------------------------
    AT89X52.H
    
    Header file for the low voltage Flash Atmel AT89C52 and AT89LV52.
    Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
    All rights reserved.
    --------------------------------------------------------------------------*/
    

    http://www.keil.com/dd/docs/c51/atmel/AT89X52.h

    Again, nothing specific to the AT89S52.

    So it looks like Keil's recommendation is a bit dodgy!

    But, as you say, there's nothing to stop you adding the required definitions yourself; or take a look through the supplied Keil headers to see if you can find a better fit; or see if Atmel has one...

Children
No data