Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

binary counter

I am trying to implement a binary counter but am currently stuck. This is an outline of my problem.

Aim
Use the PIC16F876 based SuperPIC PCB to implement a binary counter that will display the count value on the 8 LED display connected to the top connector.

Task 1 Four bit binary counter
Produce a PIC16F876 assembly language program that will count from 0 to F in binary. The count value is to automatically rollover to 0 again once the maximum value is reached. The counter will increment at a frequency of 1 Hz and the total 0 to F count should take 16 s  0.5 s.


Task 2 Single Digit Seven Segment Display
Amend the program devised for task 1 so that the count value is output in hexadecimal to the right hand seven segment display. The counter must still increment at a frequency of 1 Hz and the total 0 to F count should take 16 s  0.5 s.

Task 3 Eight bit binary counter

Produce a PIC16F876 assembly language program that will count from 00 to FF in binary. The count value is to automatically rollover to 00 again once the maximum value is reached. The counter will increment at a frequency of 4 Hz and the total 00 to FF count should take 64 s  1 s. The count value is to be output to the 8 LED display connected to the top connector. An adapter will be provided to enable the two PCBs to be connected.


I've been told there are 2 possible ways to solve this problem; to use look-up tables and/or delays.
Please, any suggestion as to how to tackle this problem would be greatly appreciated. Thx.


Sign In or Register to comment.