(assume Fosc=2MHz): a. Screen shot for the code b. Screen shot for the Stimulus view for PORTC(RCO-RC5) c. Screenshot fo
Posted: Fri May 20, 2022 10:10 am
(assume Fosc=2MHz): a. Screen shot for the code b. Screen shot for the Stimulus view for PORTC(RCO-RC5) c. Screenshot for the Variable view for C1,C2,C3, W register, STATUS(CF), PORTD. In PIC 16F887A, Six switches are connected to PORTC (RCO-RC5) and six LEDs are connected to PORTD (RDO-RD5). Write a program that does the following: a) moves push button switch values from PORTC to W register. b) Subtract 30h to the W register. c) displays the W register to the three LEDs in PORTD d) Wait 2 second and so on.