Published in


PIC 18 TMR — Intro to Timer 0

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

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!


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.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Hi, Guys o/ I am J3! I am just a hobby-dev, playing around with Python, Django, Lego, Arduino, Raspy, PIC, AI… Welcome! Join us!