Im working on a project about active power and reactive power measurement kit with using PIC16F877A MCU. In the code, I use pow, sqrt and cos function ...
Im working on a project about active power and reactive power measurement kit with using PIC16F877A MCU. In the code, I use pow, sqrt and cos function ...
I know this has been asked a couple times, but the answers were not clear to me. This warning seems to be relate to the type char being promoted by t ...
I'm working with a PIC16F628A but the IDE won't accept the _delay_ms command and doesn't build/compile, I don't know what to do... here is my code: ...
I am starting unit testing using ceedling from Windows Powershell. I have made a lot of progress getting Unity to work with the XC8 compiler. But I ha ...
I have the following matrix which is a matrix containing 8 names of 9 characters I would like to have them straight in a row, in a string Somet ...
I am new to MPLAB XC8 compiler and don't know why this error is happening as I did not use any number that is of 64 bit in my code. Code is as follow ...
I cannot understand why my code won't work. It works when I set the condition PORTA == 0x00 but not when PORTA == 0x01. How do you check if a bit is h ...
MICRO: PIC18LF47K42 compiler: XC8 application: MPLABX I am trying to combine the values in of 12 bit ADC. They go into ADRESH and ADRESL. My ADC is s ...
In xc8 mplab i have a variable for example temp=0b10100100 (8 bits) i want to write a code do task 1 and task 2 according to bits of temp Consec ...
Has a newbie to Code. I wanted to create the iconic TV Knight Rider scan. I have wrote my first code and achieved the basic function. I know there are ...
Background I am trying to make 16x2 generic LCD display(HD44780) shows some texts on the screen when data is received from HC-05 Bluetooth module via ...
I have an array like this: and I would like to access it with a pointer: I get the warning: warning: assigning to 'uint8_t *' from 'const ui ...
I am testing my microcontroller PIC18f4550 with the following circuit on Proteus simulation software. My objective is to turn the led on for one se ...
I am trying to set a color to either foreground or background (fg / bg) according to a mask. This code works: This code works too but throws a w ...
I try to build a C project with the XC8 compiler (V 2.32). I get some errors from the compiler. I already added "--chip=$(MP_PROCESSOR_OPTION)" to the ...
So I was following a video for how to make an LED blinging program with assembly for PIC16 F877A, but then i realized im using xc8 compiler and the ...
I am attempting to define a set of global variables which will configure my device, about 10 in a dedicated .c file, that will be changed on a regular ...
Windows 10, CMake 3.19.1 Im trying to compile test project with XC8 compiler, CMake and custom toolchain (third party). Link: Toolchain repository T ...
As above how can one average an array of values, without adding all into a float, this is aimed to be used in an 8 bit/16 bit micro, to alleviate time ...
there. I'm trying to install the Microchip XC8 compiler on a Ubuntu container to make a pipeline for building the project with Gitlab CI. But there's ...