AnsweredAssumed Answered

Stack Pointer / Program counter

Question asked by Carlos Candido on Jun 12, 2015
Latest reply on Aug 3, 2015 by Yasuhiko Koumoto

Hi,

 

 

how to control the PC, to return to a function address ?.

funtion ( my_task, absolute addres )

set Stack Pointer initial value

set program  counter

 

Pccounter.bmp

goal is when there is an error in the program.

the ISR_timer  resets and returns the program,  to the beginning.

 

hope you understand, thank you.

Outcomes