PIC Micro-controller programming | Assignment 019 | Implement a 10 digit down counter

Опубликовано: 16 Июль 2026
на канале: Emertxe - India's No.1 Ed-Tech in Embedded & IoT
348
0

Problem statement:
Implement a 10 digit down counter (Shown in the video).

Output Requirements:
As soon as the board is powered up or reset, CLCD display the title (Up Counter) on the first line
In second line, 9999999999 (10 digit number) starts decrementing
Decrement happens at constant rate (You may have lesser delay as possible since it's a 10 digit counter)
The counter stops after reaching count value of 0000000000

Pre-requisites:
You should have knowledge on,
I/O Port
CLCD

Objective:
To learn and understand
Basic working of the PORT
How to configure the PORT pins as Input and Output
How to configure the PORT pins as Digital
Interfacing CLCD as 8 or 4 bit mode
Instruction and Data mode
Read and Write mode
Commands

Inputs:
Program Cycles as Count

Notes / Additional Information:
Use program cycles to implement the above program.
A program cycle is the time taken to execute all the instructions from the start to end of the superloop
while (1)
{
/* Time taken to execute cycle the code written within this loop */
}

In this assignment you may consider the program cycles to obtain the scroll frequency
You should not use long data type for count

Related and Similar Assignments:
Implement a 10 digit up counter (Shown in the video).
Implement a 10 digit down counter with preset(Shown in the video).

About Emertxe:

Emertxe (http://www.emertxe.com) is the best institute offering Embedded Systems Training in Bangalore. With over 16+ years of existence in the industry we have trained over 60,000 engineering graduates in Embedded Systems & IoT domains. Our trained engineers are recruited by 366+ placement companies working in core embedded systems verticals like Automotive, Semiconductors, IoT, Telecom, Consumer Electronics, Industrial Automation and many more.

Emertxe is affiliated with National Skill Development Corporation (https://nsdcindia.org) under Electronics Sector Skill Council of India (https://www.essc-india.org). Our programs are aligned with Embedded Software Engineer, Embedded Product Engineer, FullStack Embedded IoT Engineer job roles. Upon successful completion students receive certificate from Ministry of Skill Development & Entrepreneurship from Government of India. This Government certified course will further enable you with job possibilities. Latest curriculum, Excellent set of mentors, Well defined training methodology are the key ingredients that makes our course as the best Embedded Systems Training in Bangalore.

Visit following links to get more information:

Embedded Systems Course:
https://tinyurl.com/embedded-course

Advanced Embedded Systems Course:
https://tinyurl.com/adv-embedded-course

Fullstack Embedded IoT Course:
https://tinyurl.com/embedded-iot-course

Register now:
http://test.emertxe.com