One of the most laborious things that we deal with PICs on assembly code, is to make delays. I am going to share you a program that I made for my course of microcontrollers.
I made this program using MATLAB, it comes in a ejecutable form, but your computer must has installed a MATLAB distribution upto 2015 or later.
Here is the interface that you are going to see when you run the DELAY.exe file.
Time (tiempo) is the delay time that you want to generate, it can be on seconds or cycles (segundos and ciclos). Also you must specify the type of your clock in Mhz (tipo de reloj) and the name of your constants (constante 1, 2,3). Finally you just put the name of the rutine (nombre de la rutina) and click on generate code (generar código)
After configuring all and clicked, you are going to see the generated code, you just have to copy it and paste it on your script.
DONWLOAD HERE
http://oliversantos0.blogspot.com/p/downloads.html
COMMENT AND SHARE IF YOU FIND THIS USEFUL