PIC 18 TMR1 As Counter

Each pulse on PORTC.RC0 will toggle LED at PORTD.RD0 —TMR — Episode #05

J3
Jungletronics
1 min readNov 30, 2019

--

In this project, we will program TIMER1 AS COUNTER. Each pulse on PORTC.RC0 will toggle LED at PORTD.RD0:) See Calculation Memory presented below:)

Fig 1. At each pulse, LED is on!

That’s it!

In the next episode let’s program TIMER1 AS COUNTER and present results on LCD.

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

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