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
0
votes
0 answers

UART RX issue (PIC24)

I have a problem with my PIC24F16KA102. I am using the PicKit2 UART Tool to communicate with the PC. So, these are my routines: UART1Init: void UART1Init(int BAUDRATE) { U1BRG = BAUDRATE; U1MODEbits.UARTEN = 1; // UART2 is…
alex20
  • 1
  • 1
0
votes
1 answer

How to align variables in a struct for PIC24 chips?

I have this struct, but knowing that every 4th byte is not used in memory, I need to align the struct correctly in memory. I'm not exactly sure how to do this, though I know that I'm supposed to and I also know where it needs to happen. typedef…
Eric Diviney
  • 327
  • 2
  • 5
  • 16
0
votes
0 answers

PIC24 SPI master mode - generation of slave select?

Can PIC24 operating as SPI master directly generate the slave-select signal in hardware? I know about the Frame Sync feature, however, it only generates a single pulse at the beginning of a frame, not a chip select that is active throughout the…
0
votes
0 answers

32.768 Secondary Oscillator for PIC

I am using a 32.768Khz sec oscillator with the PIC24fj64ga002 to make use of the RTCC of the PIC. So far my RTCC code is working but I am not able to get my oscillator to work properly. I used an alarm of 1 minute to toggle an led using RTCC but I…
0
votes
1 answer

PIC24 read ADC errors

I'm trying to get the PIC24 to work with an ADC converter, to use a potentiometer as a volume knob down the line, but for that, I need to read out the ADC, where the code doesn't allow me to build. See bottom of the question. Wiring is done…
Riekelt
  • 713
  • 2
  • 6
  • 14
0
votes
1 answer

How to correctly receive data through SPI enhanced buffer mode of Microchip PIC24F microcontrollers?

I'm programming a SPI communication with an external RF chip. The microcontroller is the model PIC24FJ64GA102 from Microchip. I want to use the enhanced buffer mode of the SPI. Problem: Get the received bytes out of the receive buffer. Used SPI…
qwc
  • 243
  • 1
  • 3
  • 12
0
votes
1 answer

PIC24 setting bits in registers

I am doing some programming for PIC24FJ192GA106 in MPLABX with XC16 compiler using C. I get the following problem during compilation error: request for member 'UARTEN' in something not a structure or union the line is question is: U1MODE.UARTEN =…
Martin G
  • 268
  • 1
  • 3
  • 20
0
votes
1 answer

Trouble reading/writing internal EEPROM PIC24F16KA101

I am trying to get interact with the internal memory of the PIC24F16KA101 MCU. After reading the data-sheet and the discussion on this site (which offer a pretty helpful sample code)used in the project Now if I put the code below the program work…
0
votes
3 answers

how to burn hex file to pic ? "hardware"

Good evening .. I'm new in the microcontroller .. I have studied a course on "pic 16" and As I knew the pic16 needs an external device to burn hex file in rom . Now I want to study the pic24 And I found something called usb in pic24 .. Can I burn…
0
votes
1 answer

Microchip PIC - Flexible Interchip Communication Bus

I'm working on the design of flexible Module-Module Bus. Basically, each module will have a micro controller likely to be on the PIC24 / PIC32 family. The bus will be running through a RJ11 connector and has to be inexpensive. It needs the following…
Damien
  • 1,492
  • 10
  • 32
0
votes
1 answer

MpLab C, Assembly, Interrupt defined conflicts

I am placing some new C software routines together with an existing arrangement of assembly language. I am finding these errors multiple definition of `_U1RXInterrupt' multiple definition of `_U2RXInterrupt' multiple definition of…
User.1
  • 2,562
  • 3
  • 33
  • 40
0
votes
1 answer

PIC24 Breakpoint on Either Read Or Write Memory Access

My environment... PIC24 MpLab (V.8.80) ICD 3 I have a byte that I want to watch, to see which routines are reading and which ones are actually writing, and when it happens I can only set a breakpoint on when the byte is written, or when it is…
User.1
  • 2,562
  • 3
  • 33
  • 40
0
votes
2 answers

UTXEN will not set

The chip is PIC24FJ256GB210 The #UTXEN bit on UART #3 will not set. It sets fine on UART #1, using the exact same instruction sequence. Same thing for UART #2. WORKS... 096E6 204000 mov.w #0x400,0x0000 111: Mov …
User.1
  • 2,562
  • 3
  • 33
  • 40
-2
votes
2 answers

Connecting multiple devices

i have a bit of a tricky question. My case is this: I have to handle a large amount of PCB (up to 20) with some hardware and a PIC24FJ128GA306 the microchip only comes with a bootloader, and i want to upload my configuration to all of them either…
Claudi
  • 125
  • 1
  • 1
  • 9
-2
votes
2 answers

How to start programming with 24 bit (any 24 series)pic microcontroller?

I have programmed pic with 8 bit micro controller. Can anyone suggest me the reference manuals , example code for 24 bit series....?
Pradeep kumark
  • 39
  • 4
  • 13