PIC18 Timers- Blink an LED with Timer0

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

КОМЕНТАРІ • 11

  • @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 2 роки тому +1

    Very nice!!!

  • @conconmervin
    @conconmervin Рік тому +1

    Please upload new videos. Your videos are soooooo good.

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

    Good

  • @SpaceTimeBeing_
    @SpaceTimeBeing_ Рік тому

    Wish I could understand your accent like everyone else in the comments, it is very hard.

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

    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.

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

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

    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 8 днів тому

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