When compiling binaries from source, what are the real-world differences between generating PIC objects or not? At what point down the road would someone say, "I should have generated/used PIC obje...
I have read about GCC's Options for Code Generation Conventions, but could not understand what "Generate position-independent code (PIC)" does. Please give an example to explain me what does it mean.
My code builds fine in the MPLAB X IDE (v5.454), but for usability I want to use VS Code with the MPLAB extensions. My requirements include the use of the xc32 compiler v2.40. The example video doe...
For the PIC microcontroller's I prefer to work in assembly, however I am have issues setting it up. I installed MPLAB X IDE 6.15 and read that it doesn't come with any toolchains pre-installed and I am trying to figure out how to install the assembly toolchain. I downloaded a version of mpasm (from Microchip's website), however it doesn't work.
I have inherited a hex file for a PIC design, which contains the programming for a USB device. Is there a way I can open it in order to find out exactly what it means and how it works? i.e. something
The test is on Ubuntu 12.04 64-bit. x86 architecture. I am confused about the concept Position Independent Executable (PIE) and Position Independent code (PIC), and I guess they are not orthogona...
You don't need an extra library, but in xc8 the name of the function is __delay_ms(...) with two _. Please remember, these functions are actually in line macros and they have maximum delay values that depend on part type and clock frequency. To get longer delays using these macros put them in a for loop. I guess __delay_ms(5000) is a little bit to much.
Enable interrupt There are several ways to disable an ISR on this PIC. Including: Use the DISI instruction, or clear the GIE bit, or alter interrupt priority levels. But I have chosen to clear the interrupt to enable bit of the specific interrupt bit in IECx. In this case, it is IEC1bits.U2TXIE because I am using UART2.
I have a project that was built in MPLAB 8 using the Hi Tech C compiler. When I load it into MPLAB 8 to program a device I get a checksum (I use Unprotected checksum), then when I load it into MPLA...
The issue stems from how the 8259A Programmable Interrupt Controller (PIC) processes commands. When you write 0x11 to the command register (port 0x20), you're actually initiating the PIC initialization sequence.