Write a pic18 assembly program to receive data serially and


1. Write a PIC18 Assembly program to receive data serially and send it continuously to PORTD while at the same time whenever the flag of INT0 or INT1 is activated, the LED connected to RC3 must toggle. Neither INT0 nor INT1 can interrupt each other.

2. In PIC18 ADC applications,

a. What are the main factors which affect the quantization error?
b. What is the acquisition time?
c. What is the conversion time?

3. For an 8-bit ADC, we have Vref = 2.56V. Calculate D0-D7 output if the analog input is: (a) 1.6 V, and (b) 0.03 V.

4. Assume you have an 8-bit ADC with Vref = 5V. How can we enhance the acquisition accuracy using an external circuitry in the following two scenarios?

a. A sensor with voltage swing 0 to 0.5 volt is to be interfaced to the ADC

b. A sensor with voltage swing -0.25 to 0.25 volt is to be interfaced to the ADC

5. Write PIC18 Assembly code to get values from channel 0 and channel 1 of the ADC and displays the sum of these values on PORTC and PORTD every 0.25 s. The A/D is configured to provide right-justified result with Vref(+)=Vdd & Vref(-)=Vss, A/D clock period TAD = FOSC/8 and TACQ=16TAD. Use timer 0 to generate the 0.25 s delay. Assume XTAL = 10 MHz.

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: Write a pic18 assembly program to receive data serially and
Reference No:- TGS0963912

Expected delivery within 24 Hours