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
3 answers

32-bit Integer Arithmetic on 16-bit system for PIC

I need to implement a 32-bit Fixed-point on a 16-bit system. My compiler seems to be giving me an "warning: integer overflow in expression". I'm not sure what I'm missing anything :S . I'll provide a dumbed down version of my code below. Any advice…
user2480579
1
vote
1 answer

adjusting the baud-rate of pic24

i have a device outputting an data with 19200 baud. The pic has been configured with SPBRG=12 BRGH=0 start and stop bits have been taken into account. Nevertheless the pic doesn't receive the correct data! The data sent has been verified with hyper…
Johannes Knust
  • 891
  • 1
  • 11
  • 18
1
vote
2 answers

What does an Unsigned Long in C look like in PIC24 Assembly Language?

I have a variable defined in C on a PIC24 Let's say the name of the variable (in the C file) is The_Number_Of_Bytes In the PIC24 C code, it is defined like this.... unsigned long The_Number_Of_Bytes=0; // number of bytes in buffer I'm going to…
User.1
  • 2,562
  • 3
  • 33
  • 40
1
vote
2 answers

MpLab, ASM, C, Building To accommodate both

I have a large and substantial ASM project for a PIC24 chip. (The specific chip is the PIC24FJ256GB210) I now have some other routines in C. I want to incorporate these into my project. The C routines are in a project of 5 or so files, one of which…
User.1
  • 2,562
  • 3
  • 33
  • 40
0
votes
0 answers

PIC24HJ XC16 Linker Script Interrupt Vector Table

I am working on a bootloader for a PIC24HJ series MCU. While going through the linker script I noticed something, tried a google search, searched documentation, GCC linker documentation, I'm out of ideas. Anyway, going through this tutorial, step 13…
nurchi
  • 770
  • 11
  • 24
0
votes
2 answers

Does a software reset clear the GPIOs state on PIC24?

I am trying to find out if a software reset would cause the GPIO state to default back to a reset states on PIC24F? The reset command i would like to use: asm ("reset"); I could not find the answer in the documentation so i tried the following…
Guillaume.P
  • 421
  • 1
  • 4
  • 12
0
votes
0 answers

How to turn on LED in pıc24FJ124 and UART by reading message useing UART1_read()

I can read and write message with uart and access port and it work correctly. Now I want to turn on one of the leds on the circuit For example when i send "ON" it will turn on the led( ex:RC3) I did it but just at first of running the code after…
0
votes
1 answer

Error: java.io.IOException: read failed, socket might closed or timeout, read ret: -1 when connecting to BLE module (Kotlin)

I am trying to connect to an RN4870 BLE module using my Kotlin app, but keep getting an error when trying to connect a socket. I am able to pair my phone and the BLE module, and verify in kotlin they they are bonded correctly, but when I try to run…
0
votes
1 answer

SPI Slave using PIC24FJ64GP202

I have trouble with a PIC24FJ64GP202 to work as an spi slave. I have simplified the code to the minimum possible in order to find the problem. In this simple code, an spi master (it is an ATSAMD51N19A) will send 0x55 to a spi slave (it is a…
0
votes
1 answer

Havig trouble with SPI in PIC24FJ256GB412

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 measuring the SDI pin). But the SPI1BUFL didn't receive correct data(always received 0x01). Below is the…
0
votes
0 answers

MPLABX - PIC24FJ1024GB610 - multiple definition error

I am programming a simple gpio program for a PIC24FJ1024GB610 microcontroller in C using MPLABX. I have created two methods that work similarly to Arduino pin direction and digital write methods. I have 2 .c files and 3 .h…
0
votes
1 answer

PIC24FJ128GA204 can not wake up from deep sleep

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 it up: 1)RTCC alarm 2)External Interrupt 3)Deep Sleep Watchdog Timer(DSWDT) I am using the third…
PVH_1907
  • 1
  • 2
0
votes
1 answer

Can't define __BOOTLOADER for linker script of PIC24FJ128GC006

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 the linker script from Microchip MLA v2015_08 usb device bootloader to my PIC24FJ code file. In the…
RndSen
  • 11
  • 1
0
votes
0 answers

Interfacing PIC24E with ICD3

I am trying to connect ICD-3 to PIC24E micro-controller, and I'm finding difficulty in detecting the device. All the recommendations, as in ICD-3 interface document has been ensured, and still on sending command via PRD line of ICD-3, the device is…
0
votes
0 answers

Interfacing 32nos. of analog signals to PIC24EP**814 Microcontroller

How can I interface 32 nos. of analog channels or signals to a PIC 24EP***814 Microcontroller?