PIC16F887 877 programming in C Tutorial 2 S S Display Interfacing

Interfacing Seven Segment (c.c) Display In this tutorial i will show you how to interface S.S display with PIC16F887/877. For this we required 74hc573 latches, 74hc238 decoder, and 74ls48 bcd2dec converter. Latches are used to enable/disable the S.S, 74hc234 a 3x8 decoder selects the appropriate latch to be enable/disable. 74ls48 just converts the bcd input to respective decimal output to operate S.S properly. Now lets write a small program that display the digital manual input at S.S, enter by the user; by using 8-way dip switch. Code: void main() { int x,y,i,j; trisc=0; portc=0; trisd=255; //all bits for input ///////////////// comment 4 pic16f877///////// ansel=0; anselh=0; c1on_bit=0; c2on_bit=0; ///////////...