• PicŪ Basic

  • Measure execution time

    This program measures execution time and will assist with time critical applications.

    Sometimes with the AMICUS18 board we need some help to check the code that you are writing. In particular I wrote this macro to measure the PIC execution times that are then sent to the terminal.

    By extension you could use this library with other PICs with the Proton Basic compiler.
    We make use of the power of Proton Basic compiler by incorporating different test programs for PICs and boards. It is very important for the resolution of our code if in the demo program you choose the AMICUS18 board or any board available on the Proteus Demo.

    After picking a Protonxx.inc the processor and the frequency crystal are automatically loaded, then follow the instructions. The precision is a little bit more than the reality, the code can read 1 instruction cycle.

    Enjoy this code.
    Alberto Freixanet

  • Recent Activity


    Mysterious PORTB problem

    Thread Starter: xldaedalus

    I'm using Proton+ to develop firmware for a product with switches. The MCU is an 18F26K22. Most of the switches reside on PORTB. I am NOT using a...

    See_Mos Today, 10:05 Go to last post

    Pic16f18877 oread

    Thread Starter: evoortman

    Hi, On a PIC16F18877 the OREAD command doesn't seem to work. The code is working on a PIC16F1939. Both controllers use 32MHz int osc. If i...

    towlerg Today, 13:23 Go to last post