Questions tagged [pic24]

PIC24 devices are general purpose microcontrollers, manufactured by Microchip Technology.

The PIC24 devices are Microchip's first inherently 16-bit microcontrollers with some significant enhancements such as all registers being 16-bit, 64K data address space, 24 bit wide instructions, hardware support for loop indexing, etc.

76 questions
1
vote
0 answers

Problem in Flash Programming of PIC24FJ128GC006

I am making a USB Bootloader for PIC24FJ. I am now in the process of writing to flash memory the application code hex file through a software and without using ICD3. After downloading the application code hex file, I checked the program memory of…
RndSen
  • 11
  • 1
1
vote
1 answer

What is the xc16 command to obtain disassembly (listing.disasm) file?

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 what commands) produce a single listing.disasm? Note: I have multiple C files, but I need a single…
M Sharath Hegde
  • 485
  • 1
  • 6
  • 20
1
vote
1 answer

PIC24H Uart send only 4 bits correct - need to split

I am working with the explorer16/32 evb and trying to send data to UART. I tried UART1, UART2 with and without interrupts and got the same problem all the time. It appeared that in order to send 1 byte I need to split it to two 4 bits with shift…
user1820451
  • 153
  • 2
  • 14
1
vote
2 answers

Where is file type mainp24f.c in MPLAB?

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 of the first things I am meant to do is install the C30 or XC16 compiler. I installed the XC16…
SeanJ
  • 1,203
  • 2
  • 19
  • 39
1
vote
0 answers

PIC 24F I2C slave issue

PIC 24F as an I2C slave has lock up issues sending multiple data bytes to the master (MASTER READ). The PIC (specifically 24FJ128GB202) as an I2C slave receiving data (MASTER WRITE) works perfectly, passing all unit tests. (address only, address and…
Ronzzer
  • 11
  • 4
1
vote
1 answer

PIC24F32KA302 Sleep mode

I want to configure PIC24F32KA302 to go to Sleep mode and wake up by RTC interrupt. However, after waking up, my program runs again from the beginning. The datasheet mentions that: - If the assigned priority for the interrupt is less than or equal…
uv_utna
  • 41
  • 1
  • 1
  • 3
1
vote
1 answer

PIC24FJ128GA010 Uart not working

I am using the above mentioned pic controller on explorer 16 board. I am trying to configure UART but it is not working My code looks something like this. enter code here #define Bit8_No_Parity 0x00 #define Bit8_E_Parity …
Sanky
  • 13
  • 1
  • 6
1
vote
1 answer

Is there an example program for PIC24f Starter kit to be a Host serial emulator?

The USB host example sent with the kit is only for reading files not sending/receiving serial data. I searched Microchip, forums and google to no avail. As I am sure many of you know the microchip USB libraries are notoriously difficult and I have…
D.R.
  • 11
  • 3
1
vote
1 answer

PIC- SPI slave select not functioning

I am Using PIC24FJ128GB202 I want to communicate with a slave device which does not need to respond. So configuration is as follows I have written code as /* * File: main.c * Author: Nikhil * * Created on September 18, 2015, 2:59 PM …
nikhil patil
  • 142
  • 1
  • 12
1
vote
0 answers

Should 0xABCD - 0x1234 set the carry bit?

I was studying for my final when I came across this question here: After going through it, I got an answer of 0x9999 because when you perform the subtraction via 2's complement, there is a carry on the MSB, so the branch instruction would send the…
1
vote
3 answers

UART buffer not raising a flag on PIC24F

I am using an RN42-XV bluetooth module to send characters to the PIC24F from a computer. The module is connected/paired correctly and the characters that are sent across are also correct (used an oscilloscope). This is how it is being…
1
vote
3 answers

I want to understand syntax used pic24 eds

__eds__ WORD __ramspace[0x100] __attribute__((eds,address(0x8000ul),noload)); I want to understand the syntax above ( The program is for pic24 and in C ) especially __ramspace[0x100]. Can anybody help me?
1
vote
3 answers

Multitasking in PIC24

I have a PIC24 based system equipped with a 24 bit, 8 channels ADC (google MCP3914 Evaluation Board for more details...). I have got the board to sample all of the 8 channels, store the data in a 512x8 buffer and transmit the data to PC using a USB…
Muhammad
  • 89
  • 1
  • 5
1
vote
1 answer

adc p24f16ka101 wrong value microchip

i have a problem with the adc of pic p24f16ka101 of microchip tecnology http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en539798 i expect a value of 0 at the breakpoint but there is a growing value, which stabilizes at about 900. The AN2…
1
vote
0 answers

USB Host initialization (controlTransfer) for PIC24 Microcontroller

I am working on an application that utilizes the USB Host capabilities of Android to communicate with a micro controller based device (PIC24FJ64GB002). The device has Microchip's USB stack on it and has been confirmed to work through testing with…
Willis
  • 5,308
  • 3
  • 32
  • 61