PIC18F4525 Part 020: Timers as Delay, More! (in C Language)

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ต.ค. 2024

ความคิดเห็น • 1

  • @2bit661
    @2bit661  ปีที่แล้ว

    // free sample code (copy and paste)
    T0CON = 0x87; // set TMR0: On, 16 bit,
    for (;;){ // simple blink program
    PORTBbits.RB0 = 1;
    TMR0 =0;
    while (TMR0 < 7812);
    PORTBbits.RB0 = 0;
    TMR0 =0;
    while (TMR0 < 7812);
    }
    }