Question

Using the register values that you calculated in your pre-lab assignment, write a C program which displays the eight most sigNTCON PIE1 ADCON1 TRISB PORTB ADCON0 11000000(0xCO) 01000000 (0x40) 00001111(0xOf) 00000000(0x0) 00000000 (0x0) 00000101(0x05

second picture is the register values. I am completely and utterly lost as to how to do this, no instructions were given beyond what you see here. The microcontroller used is a PICkit 3 on a PIC16F87XX trainer board, and we are using a 6V bench power supply to act as a sensor. We use C to code NOT C++, please make sure to use the right language.

Using the register values that you calculated in your pre-lab assignment, write a C program which displays the eight most significant bits of the ADC result on LED3-LED10. Your main loop will hold a variable with the most recent result of an A/D conversion, of which the eight MSBs will be written out to a port connected to the LEDs. You are to set up the ADC to interrupt your program when the conversion is complete, and to update the variable. Once the variable has been updated, you should start another A/D conversion before exiting the ISR
NTCON PIE1 ADCON1 TRISB PORTB ADCON0 11000000(0xCO) 01000000 (0x40) 00001111(0xOf) 00000000(0x0) 00000000 (0x0) 00000101(0x05)
0 0
Add a comment Improve this question Transcribed image text
Answer #1

void wain (void) hile fink f (1x(V 1 pess aKe .tosee vita e seadii./mD5 print f C 1γ valuL shown , 1 ED鈊あふd s vew.vesuit);irt 씨-valeo; U** nstalise parit -fa -H0.*オ// fW SEL-ob tcoomt , // All AND-aNg. are Aralıua a mu 켜alm tnp Slaos conilt be che// 놋AN3 Cenvendm /7

Add a comment
Know the answer?
Add Answer to:
Second picture is the register values. I am completely and utterly lost as to how to do this, no ...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Second picture is the register values. I am completely and utterly lost as to how to do this, no ...

    second picture is the register values. I am completely and utterly lost as to how to do this, no instructions were given beyond what you see here. The microcontroller used is a PICkit 3 on a PIC16F87XX trainer board, and we are using a 6V bench power supply to act as a sensor. Using the register values that you calculated in your pre-lab assignment, write a C program which displays the eight most significant bits of the ADC result on...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT