Questions tagged [mplab-x-5.50]
7 questions
3
votes
1 answer
Why doesn't my program recognize the PORTbits.RCx == 0 condition?
void UART_init(void){
ANSELB = 0; //set PORT B to digital port
TRISBbits.TRISB5 = 1; //set RX pin to input
TRISBbits.TRISB7 = 0; //set TX pin as output
SPBRGH = 0;
SPBRGL = 25; //set baud rate to 9600
BRGH =…
1
vote
0 answers
Undefined reference to standard library functions in plib
xc32 v2.41 or older working ok with plibs but the latest version of xc32
#include
int main() {
}
generating this error :
"C:\Program Files\Microchip\xc32\v4.00\bin\xc32-gcc.exe"
-mprocessor=32MX664F128L -o…

voidpointer
- 301
- 1
- 8
0
votes
0 answers
LCD Screen Flicker and Button press
I have a LCD screen which waits for a button press and then starts a timer. One button runs a normal timer and then another button runs a sped up timer. The two problems I have is the button press isnt the best, I can't figure out how to use GPIO…

Georgem
- 3
- 2
0
votes
0 answers
How do you correctly debug A/D convertor code in MPLAB X v5.05 simulator
This is a continuation of the question posed in How do you run a SCL file in MPLAB without a "Run SCL" button
I have an assembly code for PIC18F458 that gets data from channel 0 (RA0) of ADC and displays the result on PORTC and PORTD.
Although, I…

aLoHa
- 165
- 7
0
votes
1 answer
How often should you send the bits of a serial dataframe so that it is recognised as such by RCREG SFR in MPLABX?
I am attempting to simulate the PIC18F458 receiving a byte (i.e., ASCII 'Z', 0x5A) through the RX pin, using a SCL file (see below) in MPLAB X v.5.05.
testbench for "pic18f458" is
begin
process is
begin
loop
…

aLoHa
- 165
- 7
0
votes
1 answer
PIC16 microcontroller_ no output even after following tutorial
I am using PICKIT 4, PIC16F18446 microcontroller, and MPLAB X IDE. I am following an instruction provided from Microchip, Measuring frequency
Update:
I am not entirely sure what i needs to change but I am consistently getting an output of Frequency:…

Sam Shurp
- 57
- 1
- 5
0
votes
0 answers
i am very new to micro controller world. i am using pic16f877, please solve simple error in below description
i am getting error in this code ....can any body tell this solution
void interrupt ISR (void)
{
if (RCIF == 1) //*error: expected ';' after top level declarator***
{
UART_Buffer = RCREG; // Read The Received Data Buffer
PORTB =…