Start PICSimLab. Select the board McLab2. Select PIC16F877A as microcontroller using the micro-controller tab. Configure

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Start PICSimLab. Select the board McLab2. Select PIC16F877A as microcontroller using the micro-controller tab. Configure

Post by answerhappygod »

Start PICSimLab. Select the board McLab2. Select PIC16F877A as
microcontroller using the micro-controller tab. Configure the
microcontroller through your code as follows:Start PICSimLab.
Select the board McLab2. Select PIC16F877A as microcontroller using
the micro-controller tab. Configure the microcontroller through
your code as follows:
#pragma config FOSC = XT // Oscillator Selection bits (XT
oscillator)
#pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT
disabled)
#pragma config PWRTE = OFF // Power-up Timer Enable bit (PWRT
disabled)
#pragma config BOREN = OFF // Brown-out Reset Enable bit (BOR
disabled)
#pragma config LVP = OFF // Low-Voltage (Single-Supply)
In-Circuit Serial Programming Enable bit (RB3 is digital I/O, HV on
MCLR must be used for programming)
#pragma config CPD = OFF // Data EEPROM Memory Code Protection
bit (Data EEPROM code protection off)
#pragma config WRT = OFF // Flash Program Memory Write Enable
bits (Write protection off; all program memory may be written to by
EECON control)
#pragma config CP = OFF // Flash Program Memory Code Protection
bit (Code protection off)
Program the microcontroller so that the most significant 8-bit
of the analog to digital conversion is shown on 3 seven-segment
displays on the board. Validate its operation by changing the Pot
P2. The result shown on the display should change between 0(zero)
and 255 as demonstrated in Solution_Video.
Start Picsimlab Select The Board Mclab2 Select Pic16f877a As Microcontroller Using The Micro Controller Tab Configure 1
Start Picsimlab Select The Board Mclab2 Select Pic16f877a As Microcontroller Using The Micro Controller Tab Configure 1 (114.82 KiB) Viewed 64 times
Important Note: This task will be implemented in C
programming language language (-100 pts otherwise).
Create a video which displays:
PICSimLab - McLab2 - PIC16F877A File Board Microcontroller Modules Tools Help Clock (MHz) Debug 4 Pot. P2 D ▸ Heater Cooler Temp: 27.50°C 00 329 ……… A EXPANSION PIC ‒‒‒‒ JPA 24C04 LM350 Serial MAX232 ‒‒‒‒‒‒‒‒ ICSP RST |||| II- Cooler X PWR SOUL L2 L3 -- -11- -- 52 54 SL CI- 53 -- -||| Picsiml ab3 Heater Running... Debug: Off Serial Port: com6:0( nan%) Figure 1. Most significant 8-bit of the analog to digital conversion result is shown on 3 displays.

Dear All. In Homework 4: You need to use ADCON1.ADFM = 0 so that the result will be left-justified and the result in ADRESH will give you 8-bit (0-255) analog to digital conversion result. *21-22.62.BME2220530.MICROPROCESSORS (Combined)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply