PIC 18 TMR — Intro to Timer 0

Hello World for Timer0 — PIC Unit #04— TMR— Episode #01

J3
Jungletronics
1 min readNov 30, 2019

--

Hi, In this project let’s configure Timer0 to overflow at each 1s.
An LED (attached on PORTD.RD0) will blink at each second:)
See Calculation Memory for better code’s understanding :)

Here is the code:

Fig 1. Hello World for Timer using PIC18F 👶

That’s it!

In the next episode let’s extend the TMR0 counter capacity :/

See you soon!

Bye!

Related Posts

01º Episode — TMR — unit#04 — TMR0 Intro — Hello World Timer zero!

02º Episode — TMR — unit#04 — TMR0 Extended @5sTIMER0 counts at every 5 long seconds.

03º Episode — TMR — unit#04 — TMR0 As a Counter TIMER0 counts ‘till ten!

04º Episode — TMR1 — unit#04 — PIC 18 TMR1 Max Counting — So, what is the max period for Timer1 (@8MHz)? — TIMER1 counts ‘till its max!

05º Episode — TMR1 — unit#04 — TMR1 as a CounterTIMER1 counts at every pulse

06º Episode — TMR1 — unit#04 — TMR1 & LCDTIMER1 results on LCD o/

07º Episode — TMR2 — unit#04 — PIC 18 TMR2 — Intro to Timer 2 — Turn On & Off Timer2 — TMR2 Overflows at 33 ms TIMER2 Max Count.

--

--

J3
Jungletronics

😎 Gilberto Oliveira Jr | 🖥️ Computer Engineer | 🐍 Python | 🧩 C | 💎 Rails | 🤖 AI & IoT | ✍️