Hi
I have programmed a 16F917 with PBP 2.46 It is an extensive application generating around 4058 words. I use assembly level interrupts to multiplex 8 seven segment displays. Besides this, I handle a dot matrix printer to print logs. I2C handles an external 24C512 and a PCF8583 RTC.
There is a lot of code which nests upto 6 levels deep (if I dig into the listing file). Of this, the I2Cread and write itself nests to 3 levels deep. My code nests upto 3 levels deep. 1 level is for display refresh interrupt and occurs periodically.
QUESTION:
Is there any way I can know the subroutine nesting levels in the PBP listing? Is there any utility that can tell me this info?
WHY:
I am facing problems in the working of the code where I feel the subroutine has nested to level 9(which overwrites stack level 0). When un-nesting from the subroutines, I hit the level 0 routine which puts me in a hung state in the call to the subroutine that nested at level 9(0).
thanks for any inputs
Jerson
Bookmarks