Question

1. Calculate the 8-bit binary values in ADRESH and ADRESL if an analog voltage of 0.707...

1. Calculate the 8-bit binary values in ADRESH and ADRESL if an analog voltage of 0.707 Volts is converted by the 10-bit ADC in an PIC-18 with +5V as the positive reference voltage. Use Right Justify and Left Justify format.

Homework Answers

Answer #1

The 10 bit value can be found out using the quantization formula.

Digital Value = full scale * voltage /reference voltage.

In this case

Digital Value = 1023*0.707/5 = 145 = 0b0010010001 ( as approximated by ADC)

The left justified value will be stored as

ADRESH = 0b00100100

ADRESL = 0b01000000

While the right justified value will be stored as

ADRESH = 0b00000000

ADRESL = 0b10010001

Notice that 0b is just for the sake of clarity that it's a binary representation of the number.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Question 2: The Arduino UNO micro-controller measures 4.25V on its 10-bit 0 − 5V analog-to-digital converter...
Question 2: The Arduino UNO micro-controller measures 4.25V on its 10-bit 0 − 5V analog-to-digital converter (ADC) (a) What is the output of the ADC in decimal and binary? (b) If this digital number is converted to analog using an 8-bit 0 − 5V digital-to-analog converter (DAC). What will be the output of the DAC? What will be the error associated with it?
Given an 8-bit ADC receive analog inputs varying from (-5v to +5v) determine: A. Quantization levels...
Given an 8-bit ADC receive analog inputs varying from (-5v to +5v) determine: A. Quantization levels B. Resolution C. Binary output for an input of 3,5v D. Analog input when the output is 1010 0101
An 8-bit analog-to-digital converter (ADC) has a voltage range of 0 to 14 V and a...
An 8-bit analog-to-digital converter (ADC) has a voltage range of 0 to 14 V and a digitization uncertainty of ±1 LSB. What is the maximum uncertainty if the digitization is for a 14 V signal? What is the maximum uncertainty for a 16-bit ADC, and for 25-bit? If this ADC has a conversion time of 34 μs, then what is the highest frequency that can be accurately digitized while satisfying the Nyquist criterion?
QUESTION 1 During a single clock tick, how many 64-bit values can be written to an...
QUESTION 1 During a single clock tick, how many 64-bit values can be written to an input of a register file with 8 64-bit registers (i.e. an 8x64 register file)? QUESTION 2 Suppose you are designing a processor that contains a register file with 32 32-bit registers (i.e. a 32x32 register file). What is the minimum number of bits required in order to select which register is being written to? QUESTION 3 If the decimal value, 30, is shifted to...
NEED SUPER ASAP WILL GIVE GOOD RATE RIGHT AWAY We are using a 16 bit analog...
NEED SUPER ASAP WILL GIVE GOOD RATE RIGHT AWAY We are using a 16 bit analog to digital converter to sample a periodic input signal y= 1 + sin(2* pi* f*t), f= 200 hz a) what is the duration of one period of signal y in milliseconds b) what is the max and min voltage at the analog input and at what times are they reach med? c) what is the min change of the input signal that can be...
The experimental analog signal f(t)=5.5sin(2000πt) Volts required to be converted into a digital representation. You are...
The experimental analog signal f(t)=5.5sin(2000πt) Volts required to be converted into a digital representation. You are required to use an 8-bit analog to the digital conversion process. The conversion process uses an input range of 6 Volts to convert from analog to equivalent digital values. The analog to digital conversion uses a sampling frequency of 3 kHz... 7(Assuming the input signal was f(t)=5.5sin(3500πt). Would you expect aliasing to occur in the process? 8) Suggest an anti-aliasing filter cut off frequency...
An analog distance sensors is to be connected to an Arduino Uno R3. The sensor requires...
An analog distance sensors is to be connected to an Arduino Uno R3. The sensor requires 5V and GND to operate and gives a single analog output (Dout) in the range 0à5V. The voltage is related to (not as cousins) the distance according to the equation: Distance (in cm) = 11 x V + 4. Write a C function to keep the robot away from objects by at least 8 cm. Use the function setMotors(LeftMspeed, RightMspeed) to set the speed...
Question 1 a) A binary system uses 8-bits to represent an analog value ranging from 120...
Question 1 a) A binary system uses 8-bits to represent an analog value ranging from 120 ounces to 700 ounces, determine the resolution of the system and interprete your result. AP 8 makrs b) Determine the number of bits that would be needed for the above resolution to improve to better than 0.01 ounces per increment. Interpret your results. AN 7 c) Use the binary coded decimal (BCD) representation of integers to represent each of the following integers. i) 2194...
Adder Start out by picking 2 positive six bit binary numbers that are less than 3210,...
Adder Start out by picking 2 positive six bit binary numbers that are less than 3210, written in 2's complement notation. The eventual goal is to add these two numbers. 1) Look at the LSB bit of the numbers, and using logic gates (NANDs, NORs, etc.) design a circuit that correctly gives the right output for any possible combination of bits in the LSB place. 2) Now look at the next column to the left (next to LSB). In this...
Write a program display the following menu: Ohms Law Calculator 1. Calculate Resistance in Ohms 2....
Write a program display the following menu: Ohms Law Calculator 1. Calculate Resistance in Ohms 2. Calculate Current in Amps 3. Calculate Voltage in volts 4. Quit Enter your choice (1-4) If the user enters 1, the program should ask for voltage in Volts and the current in Amps. Use the following formula: R= E/i Where: E= voltage in volts I= current in amps R= resistance in ohms If the user enters 2 the program should ask for the voltage...