PIC 18 LCD Key & Counter

Pressing One key Increment or Pressing Other Key Decrements a Counter — PIC Unit #02 — LCD — Episode #03

J3
Jungletronics
2 min readNov 25, 2019

--

Hi, in this project we will press an up key (RBO) to make
a counter increment and a down key (RB1) to decrement it:)

All that we need to do is to probing the up and down keys. The ifs will decide which one to execute.

See the code:

Fig 1. The code
Fig 2. The action :D

Trivial, right?

Note that the code overflows as the integer pass from zero to 65535(2¹⁶).

And that is all for now!

In the next episode, let’s make a custom symbol using CCRAM using PIC18F.

Bye and tks a lot:)

Related Posts

0º Episode — LCD — unit#02 — PIC 18 LCD Intro — HD44780 Character LCD Displays

1º Episode — LCD — unit#02 — PIC LCD First Print — Let’s make our first print

2º Episode — LCD — unit#02 — PIC LCD First Animation — Let’s Unveil The LCD’s Animations Techniques

3º Episode — LCD — unit#02 — PIC LCD Key & Counter — Pressing One key Increment or Pressing Other Key Decrements a Counter

4º Episode — LCD — unit#02 — PIC LCD Custom Symbols — How to Create a Custom Character on CGRAM

5º Episode — LCD — unit#02 — PIC 18 Digital Thermometer — Designing a Digital Thermometer w/ LM35

6º Episode — LCD — unit#02 — PIC 18 LCD Calculator — Let’s Make an Awesome CalculatorApp

7º Episode — LCD — unit#02 — PIC 18 LCD Keypad Discovery — Let’s Unveil Our Board Keypad

8º Episode — LCD — unit#02 — PIC 18 LCD Menu Template — Get A Nice Template For Your Menu App

--

--

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!