Question: Objectives: 1. To be able to create a logical and working program using language. 2. To be able to program input and output pins using

 Objectives: 1. To be able to create a logical and working

Objectives: 1. To be able to create a logical and working program using language. 2. To be able to program input and output pins using C language. 3. To be able to understand how to create logical programs using C language. Introductory Information: The microcontroller PIC16F877a is a 40 pin 8 bit microcontroller. Shown in the figure is the pin assigument for the PIC16F8772. As can be seen there are 5 groups of gpio pins namely RARB. RC, RD and RE pins. For programming. Vdd. Vss. PGD PGC and Vpp pins will be utilized 9 40-Pin PDIP MCLRIPP 1 RADIANO 02 RA1/AN1 03 RAZIANZ/VREF-ICVREF RA3/AN3/VREF+ 5 RA4/TOCKI/C1OUT RA5/AN4/SS/C2OUT 07 REO/RDIANS 08 RE1/WR/AN6 RELICS/AN7 10 VDO 11 Vss -12 OSC1/CLKI 13 OSC2/CLKO 14 RCO/T10SO/TICKI 15 RC1/T10SICCP2 016 RC2/CCP1 RC3/SCKSCL 18 RDO/PSPO 19 RD1/PSP1 20 PIC16F874A/877A 40 RB7/PGD 39 - RB6/PGC 38 RB5 37 RB4 36 RB3/PGM 35 RB2 34 RB1 33RBOINT 32 VDD 31 Vss 30 RD7/PSP7 29 RD6/PSP6 28 b. RD5/PSP5 27 RD4/PSP4 26 RC7/RX/DT 25 RC6/TX/CK 24 RC5/SDO 23 RC4/SDI/SDA 22 RD3/PSP3 21 RD2/PSP2 Exercise 1: Construct a circuit utilizing 8 LEDs and a PIC167877a microcontroller and create three running light patterns in C language. Exercise 2: Construct a circuit and formulate a C code that will let PIC16F877a drive a seven-segment display and lets it count from 0-F continuously

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!