Pic16c simulation error

Status
Not open for further replies.

xyzabcpqr

Junior Member level 3
Joined
Mar 22, 2012
Messages
26
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,523
Hello All,

I am working on PIC16C54C. There is one code that I need to modify which is in assembly language.. I used to work in C code. So I don't have much idea about assembly language.

When I simulate this assembly code in MPLABSIM , it gives following error
- CORE-E0002: Stack under flow error occurred from instruction at 0x000000

What could be the reason?
I am getting difficult to understand code in assembly so Is there any tool/software that converts Assembly to C?

I just attached a part of code. my crystal is 18.72 MHz. The purpose of the project is to generate 195KHz at one of the output pin.
Can anybody explain me through attached file that how this code generating 195 KHz at its otuput port? I don't understand the calculation .

Please help me
 

Attachments

  • trial.txt
    2.9 KB · Views: 39
Last edited:

I would recommend posting your Assembly source code?


Concerning the conversion of Assembly to C language, I've not come across a decompiler for the the PIC family.


BigDog
 

Thanks for the quick replay..

I have attached the part of code as the original code too large....
I didn't understand the calculations they made for 195KHz output.

Please let me know , if it's required i will try to attached the whole code.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…