PIC18 Timers- Blink an LED with Timer0

Поділитися
Вставка
  • Опубліковано 14 гру 2024

КОМЕНТАРІ • 10

  • @fifaham
    @fifaham 3 роки тому +1

    I have had those issues before when dealing with precise timing and I assigned the registers a little less values and I was able to get an accurate measurement on the Oscilloscope. Data sheets are great references but theory and practices are seldom the same. Hardware by nature causes delays and we will never be able to illuminate those latencies. I wouldn't call the compiler stupid, it is something that is almost impossible to avoid.

  • @conconmervin
    @conconmervin 2 роки тому +1

    Please upload new videos. Your videos are soooooo good.

  • @saulotavares144
    @saulotavares144 3 роки тому +1

    Very nice!!!

  • @abdelrrahmanebrave1772
    @abdelrrahmanebrave1772 9 місяців тому

    Good

  • @tasmeemreza2186
    @tasmeemreza2186 3 роки тому +1

    sir i could not understand latency. please need details maith

    • @fifaham
      @fifaham 3 роки тому +3

      Latency delay is the "Delay" time it takes the signal to propagate (travel) from signal source to destination

  • @user-nt4nm4fb3u
    @user-nt4nm4fb3u 11 місяців тому

    Thank you for the explanation, One thing I need to convey is that your English pronunciation is hard to grasp. Please make it more clear.

  • @shajinify1
    @shajinify1 2 роки тому

    error: expected ';' after top level declarator

  • @rodmeyer541
    @rodmeyer541 11 місяців тому

    I fixed the code. the way you did it dont work for xc8
    #include
    #define _XTAL_FREQ 16000000
    void __interrupt() myISR(void){
    PORTBbits.RB0^=1;
    TMR0L=236;
    INTCONbits.TMR0IF=0;
    }
    void main(void){
    TRISB=0;
    PORTB=0;
    T0CON=0b01001010;
    TMR0L=236;
    INTCONbits.TMR0IE=1;
    INTCONbits.GIE=1;
    T0CONbits.TMR0ON=1;
    while(1){

    }
    return;
    }

    • @asdfasdf8198
      @asdfasdf8198 3 місяці тому

      why did he assign T0CON=0b01001010; shouldn't it stay 0b0000000
      0