Question: Question I (Simple Logic and LCD Module) d) Write an XC8 program to get a byte of data from PORTA. If the value is

Question I (Simple Logic and LCD Module) d) Write an XC8 program to get a byte of data from PORTA. If the value is grea{than 136, send it to PORTE, otherwise. use the shift o;xrator to divide the value by S and send the result 10 PORTC. (3 points) b) Find the Contents of PORTC in HEX at each step aner executing the following C code. (3 points) PORTC=Ox01; PORTC- PORTC ox99; PORTCPORTC & OXO; c) What is thc between TRISCbits.TRISC4-1 and TRISCbits.TRISC4-O? d) What is thc value of j in llEXand decimal aner the execution Of the following code? unsigned char j ; i = OXOE; (3 points) e) A two-row text-based LCD is connected to a PICI 8F452-typc microcontroller in 4-bit.data mode. Write a program to display the text CNTSx2s;" on row I and then count repeatedly by 2 from O to 250 on row 2 With a 3 seconds delay between thc different count values. Utilize any Of the pre supplied C-functions given to you throughout the semester. ( 10 points) n An LED is connected to port pin RB3 Of a PICISF452 microcontroller, Write a program to flash thc (5 points) LED such that thc ON time is sec. and the OFF time is 3 sec.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
