PIC18 Timers- Blink an LED with Timer0

Поделиться
HTML-код
  • Опубликовано: 3 дек 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.

  • @saulotavares144
    @saulotavares144 3 года назад +1

    Very nice!!!

  • @conconmervin
    @conconmervin 2 года назад +1

    Please upload new videos. Your videos are soooooo good.

  • @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

  • @shajinify1
    @shajinify1 Год назад

    error: expected ';' after top level declarator

  • @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.

  • @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