Тёмный

PIC18F4525 Part 021: Timer as Delay and Adjusting Prescaler (in C Language) 

2Bit
Подписаться 993
Просмотров 47
50% 1

PIC18F4525 Part 021: Timer as Delay and Adjusting Prescaler (in C Language)
www.microchip....
Datasheet: ww1.microchip.c...
18F Family Manual: ww1.microchip.c... (See page 109)
Check out the PIC18F4525 playlist on my channel:
• PIC18F4525 Part 001: G...
Also, here are some videos I made looking at the timer registers and interrupt registers. (Mostly, its just me reading the datasheet.):
Timers: • PIC18F4525 Part 016.1:...
Interrupts: • PIC18F4525 Part 016.2:...
These aforementioned vids might be helpful if you are trying to learn.

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 2   
@2bit661
@2bit661 Год назад
// free sample code (copy and paste) #include #define _XTAL_FREQ 8000000 void main(void) { //TRISA = 0xFF; TRISB = 0x00; //ADCON0 = 0x00; // your chip may vary //ADCON1 = 0x0F; // your chip may vary OSCCON = 0b01110100; // your chip may vary T0CON = 0x80; // set TMR0: On, 16 bit, ... have fun adjusting prescaler between 0x87 and 0x80 (refer to T0CON reg.) for (;;){ // simple blink program PORTBbits.RB0 = 1; TMR0 =0; while (TMR0 < 7812); PORTBbits.RB0 = 0; TMR0 =0; while (TMR0 < 7812); } }
@2bit661
@2bit661 Год назад
Timestamps for different prescaler settings (Wow! Fun!): T0C0N = 0x87; setting see at: 6:19 T0C0N = 0x86; setting see at: 7:07 T0C0N = 0x85; setting see at: 8:02 T0C0N = 0x84; setting see at: 8:30 T0C0N = 0x83; setting see at: 9:20 T0C0N = 0x82; setting see at: 10:08 T0C0N = 0x81; setting see at: 10:46 T0C0N = 0x80; not demonstrated on camera, but wowee-wow-wow-fast!
Далее
Forget About Raspberry Pi! Use Your Old Phone Instead.
9:09
iPhone 16 для НИЩЕБРОДОВ!
00:51
Просмотров 1,1 млн
Что думаете?
00:54
Просмотров 735 тыс.
Hacking a weird TV censoring device
20:59
Просмотров 3,1 млн
TP6352Q
6:17
Просмотров 1,2 тыс.
NEVER install these programs on your PC... EVER!!!
19:26
74HC165 Shift Register (Parallel in Serial Out)
7:32
Просмотров 1,7 тыс.
6 Horribly Common PCB Design Mistakes
10:40
Просмотров 196 тыс.
iPhone 16 для НИЩЕБРОДОВ!
00:51
Просмотров 1,1 млн