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.
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
I know it is a different PIC, but for PIC33EP256MU806 an obscure section "11.5 I/O Helpful Tips" of the datasheet says: "The internal pull-up is up to ~ (VDD-0.8), not VDD. This value is still above the minimum VIH of CMOS and TTL devices." This is not mentioned elsewhere and I actually measure VDD - 1.2V. So maybe this is normal behaviour for weak pull ups.
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...
PIC and PIE is the same concept. If this is correct, I would like to use PIC to stand for PIC/PIE. PIC seems to be an "Attribute" of binary code, which type of binary code can be executed regardless of which memory location it's loaded into. Is it correct? PIC/no-PIC have no strong relationship with statically/dynamically linked executable.
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.
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 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...
If you want to keep MCLR disconnected, consult PIC's datasheet to see how to configure this option in FUSE bits. Additionally, confirm settings for using the internal crystal also in datasheet (I think high speed (HS) option is only for external crystal). Proteus provides supply voltage to PIC implicitly.