Technical discussions about Freescale Microcontrollers: M68HC11. (Freescale Semiconductor is a Subsidiary of Motorola).
|
hi friends, i am writing code in C for 68h11 to display waveforms and i want to reset the system from the code and get back to the main screen. does anyone have idea how to implement this idea... waiting for help urs MAGANTI |
|
|
|
1. Soft reset by branching indirect through the reset vector. This does not reset the hardware registers, sometimes an advantage, sometimes not an advantage. 2. Arm the watchdog and then stop servicing it. This forces a watchdog reset and restores all hardware registers to their reset states. 3. Use a hardware kludge to jerk the RESET line externally. Have fun, Bob Smith --- Avoid computer viruses, Practice safe hex --- -- Specializing in small, cost effective embedded control systems -- http://www.smithmachineworks.com/embedprod.html Robert L. (Bob) Smith Smith Machine Works, Inc. 9900 Lumlay Road Richmond, VA 23236 804/745-2608 ----- Original Message ----- From: "kishoremaganti" <> To: <> Sent: Wednesday, December 08, 2004 3:24 PM Subject: [m68HC11] resetting the system > > hi friends, > > i am writing code in C for 68h11 to display waveforms and i want to > reset the system from the code and get back to the main screen. does > anyone have idea how to implement this idea... > > waiting for help > > urs > MAGANTI > > > Yahoo! Groups Sponsor > > Get unlimited calls to > > U.S./Canada > > > -------------------------------------------------------------------------- ------ > Yahoo! Groups Links > > a.. To |
|
I won't write your software for you except under contract. I will contact you off-list in that regard. 1. What part of "jump indirect via the reset vector" don't you understand? (Hint, see the JMP instruction in the 'White Book".) 2. Operation and use of the COP Watchdog timer is well explained in Section 5.4.2 of the "White Book" (M68HC11RM/D Rev. 6, 4/2002). If you have specific questions about its function please ask them here. Best wishes, Bob Smith --- Avoid computer viruses, Practice safe hex --- -- Specializing in small, cost effective embedded control systems -- http://www.smithmachineworks.com/embedprod.html Robert L. (Bob) Smith Smith Machine Works, Inc. 9900 Lumlay Road Richmond, VA 23236 804/745-2608 ----- Original Message ----- From: "kishoremaganti" <> To: <> Sent: Thursday, December 09, 2004 1:43 AM Subject: [m68HC11] resetting the system > > dear BOB, thanks a lot for you message...the thing is i really dont > have the clue regarding tht.. i comepleted every part of my > program.. except for.. this part.. > > i have writen a program on c.. and i wud run it on a monitor program > and load it into controller. once the program starts running...i > would give certain values.. and the output would be visible.. now > that i want to quit from this and restart my program.. wht am i to > do? it would be gr8 if u let me know the code.. with a example... > pls... it wud really be of help for me... > > thanking you > > Yahoo! Groups Sponsor > > Get unlimited calls to > > U.S./Canada > > > -------------------------------------------------------------------------- ------ > Yahoo! Groups Links > > a.. To |