Ads

viernes, 6 de julio de 2018

PIC Delay Code Generator (assembly)

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.


COMMENT AND SHARE IF YOU FIND THIS USEFUL

No hay comentarios:

Publicar un comentario

Understanding I2C: The Versatile Communication Protocol for Connected Devices

In the fast-paced world of technology, seamless and efficient communication between electronic components is vital. As devices become increa...