[Aporte] Introduccion a MPLAB X

Hola amigos,

les comparto un video que hice sobre MPLAB X, en el video uso el microcontrolador PIC16F628A pero lo migrare al PIC18F25K20 para hacer mas proyectos nuevos.




Saludos!
 
Hola,

Les comparto un video sobre el uso de code configurator para el microcontrolador PIC18F25K20.

La tarjeta que muestro lo bautice "Microino" solo es el microcontrolador con conectores y regulador.


¡Saludos!
 
Hola Amigos,

Les comparto una libreria para realizar un RTOS con microcontroladores PIC,
en el video que muestro es introductorio para que puedan usar la libreria, tambien les agrego una libreria que la pase a XC8 para usar un OLED.

Código:
void main(void) {
    // Initialize the device
    SYSTEM_Initialize();
    init_screen();
    Init_Radio();

    SCHEDULER_MODULE_INIT(&TASKS[0],20,0,&toggle);
    SCHEDULER_MODULE_INIT(&TASKS[1],40,0,&toggle2);
    SCHEDULER_MODULE_INIT(&TASKS[2],80,0,&toggle3);
    SCHEDULER_MODULE_INIT(&TASKS[3],160,0,&toggle4);
    SCHEDULER_MODULE_INIT(&TASKS[4],320,0,&toggle5);
    SCHEDULER_MODULE_INIT(&TASKS[5],640,0,&toggle6);
    SCHEDULER_MODULE_INIT(&TASKS[6],250,0,&Screen_Show);
    SCHEDULER_MODULE_INIT(&TASKS[7],320,0,&Tx_Data);
    SCHEDULER_MODULE_INIT(&TASKS[8],50,0,&Radio);


    // If using interrupts in PIC18 High/Low Priority Mode you need to enable the Global High and Low Interrupts
    // If using interrupts in PIC Mid-Range Compatibility Mode you need to enable the Global and Peripheral Interrupts
    // Use the following macros to:

    // Enable high priority global interrupts
    //INTERRUPT_GlobalInterruptHighEnable();

    // Enable low priority global interrupts.
    //INTERRUPT_GlobalInterruptLowEnable();

    // Disable high priority global interrupts
    //INTERRUPT_GlobalInterruptHighDisable();

    // Disable low priority global interrupts.
    //INTERRUPT_GlobalInterruptLowDisable();

    // Enable the Global Interrupts
    INTERRUPT_GlobalInterruptEnable();

    // Enable the Peripheral Interrupts
    INTERRUPT_PeripheralInterruptEnable();

    // Disable the Global Interrupts
    //INTERRUPT_GlobalInterruptDisable();

    // Disable the Peripheral Interrupts
    //INTERRUPT_PeripheralInterruptDisable();

    // Add your application code
    SCHEDULER_RUN(&TASKS);

}



¡Saludos!
 

Adjuntos

  • RTimer.X.zip
    866.6 KB · Visitas: 2
Atrás
Arriba