Please Write Code Composer Studio Setup Peripheral Device Pic16l F18xxx Microcontroller Se Q37092262

Please write in Code Composer Studio

setup a peripheral device on the PIC16L-F18xxxmicrocontroller.

Set up the built-in Analog to Digital Converter (ADC) to readthe chair’s temperature sensor.  

First, read about the ADC device in Section 20 of the followinguser guide document:

http://ww1.microchip.com/downloads/en/DeviceDoc/PIC16F18455-56-Data-Sheet-DS40002038B.pdf

Assume the temperature sensor is connected to RA2/ANA2 pin. Thetemperature sensor voltage range we want to read in is 0-5V. Choosea positive voltage reference as close to 5V as possible, and selectGND or 0V for the negative voltage reference.

Configure the ADC for the following:

– 12 bit operation

– Voltage range should be GND/0V and +5V (as close aspossible)

– Select the ADC clock source to

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.