I would like to write a function which returns a pointer to either one of two special function registers (SFRs). These SFRs have different types, but ...
I would like to write a function which returns a pointer to either one of two special function registers (SFRs). These SFRs have different types, but ...
I am trying to configure a PIC24FJ256GB412 to use the SPI interface with an ADC module(ADS114S08). And now, I can view data by oscilloscope(by measuri ...
Good day, I am working with a PIC24FJ64GA002 microcontroller and am struggling to get the PWM working for a servo I want to use. My code is as follows ...
I am trying to cast float to bitwise int in C. Here's my code snippet: I am getting the following error: while trying to compile. Here, temperat ...
I've been trying to wake my PIC controller from deep sleep however I can not wake it up. According to the datasheet it says there are 3 ways to wake i ...
I am working on a project that uses a Microchip PIC24FJ256GA702. For several days I have been looking for an intermittent bug with some UART code. It ...
I am making a USB Bootloader for PIC24FJ128GC006 and I am going to map part of the flash memory for the Bootloader and the Application code. I added t ...
I am currently using the PIC24 with UART and am able to receive (Rx) and transmit (Tx) characters. The problem arises when trying to receive a continu ...
I'm trying to redirect Printf to UART to output to a console like CoolTerm etc, without success, I'm using the "PIC24F Curiosity Development Board" wi ...
I am currently solving some problems out of "Microcontrollers Second Edition" and the question is asking: mov [ W1],W0 The initial register memory con ...
I want to obtain disassembly (listing.disasm) file for my project. My current compilation commands produces .elf, .map and .hex files. How do I (Or wh ...
Below is the disassembly of following C code: Disassembly: Couldn't able to understand how the while loop has been achieved. Assume that [W14+6] ...
I am working with a non-standalone project on PIC24 which requires a bootloader and I want to debug it with a bootloader. I am able to produce an .hex ...
I have a PIC24F Curiosity Board (PIC24FJ128GA204) and I'm trying to get an accurate second timing with the TIM1. As a source I'm using the secondary o ...
I've recently come across spi2statbits in the following function: I'm using the above in conjunction with a PIC24FJ128GA010 project. I've been sea ...
I have just started (again!) Programming 16-bit Microcontrollers in C, Learning to Fly the PIC24 MPLAB has changed a bit since I last used it! One o ...
I want to configure timer1 of PIC24F16KA102 to count it. The clock source must be the internal clock of 8 MHz. I configured the register T1CON and set ...
Can say me anyone why I get error when use this code in XC16 MPLAB? PIC24FJ64GA004 error: space(eedata) not supported on this target Sorry fo ...
I'm writing a code that displays temperature on the following 7 SEGMENT LCD: LCD-H301C31TF Datasheet I'm using PIC24FJ64GA006 Micro. I can only use ...
Is there a way to set specific port pins without effecting other pins at the same port? For example: I used LATB[13:6] for 7-segment LCD, the rest L ...