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
1 answer

UART PIC24 - Receive continuous stream of ASCII characters

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 continuous stream of characters, where there is no delay between start and stop bits. The UART is setup…
DARTH
  • 1
  • 1
0
votes
1 answer

Redirect Printf to UART on PIC24F Curiosity

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" with PIC24FJ128GA204, MPLAB X v5.25, MCC v3.85.1 after search google and microchip forums, I have got…
0
votes
1 answer

Is this "mov" command properly implemented from my text book?

I am currently solving some problems out of "Microcontrollers Second Edition" and the question is asking: mov [ W1],W0 The initial register memory contents of W0 = 0x1004 W1 = 0x1006 W3 = 0xF0A2 0x1000 = 0x382A 0x1002 = 0xFB80 0x1004 =…
Frio
  • 1
0
votes
1 answer

objcopy for pic30/xc16 - where to find, analogs

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 file that contains the application code with the bootloader, registering a custom script that…
Carry
  • 11
  • 1
0
votes
1 answer

Timer accuracy and interrupts

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 oscillator, which uses a 32678 kHz xtl. The timer is configured with a 32 period, which corresponds…
perencia
  • 1,498
  • 3
  • 11
  • 19
0
votes
1 answer

Sign Extended Instruction for PIC24

How you can implement the Sign Extended Instruction in VHDL (in ALU) for PIC24? I need to implement the following instructions and I don't have any idea how to implement SE. LOOP: mov 0x1020, w1 ; INW0=ff7f mov 0x1022, w2 ; INW1=8001 ior…
0
votes
1 answer

Where can I find documentation on SPI2STATbits?

I've recently come across spi2statbits in the following function: int WriteSPI2( int data) { int f; SPI2BUF = data; // write to buffer for TX while( !SPI2STATbits.SPIRBF) {f=1;}// wait transfer completion …
SeanJ
  • 1,203
  • 2
  • 19
  • 39
0
votes
1 answer

Timer1 on PIC24F16KA102 don't work

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 on high level the bit TON to start the timer. Timer1 is set to go in overflow every 100 us, then…
Fabio
  • 1
0
votes
1 answer

PIC24F eeprom and XC16 MPLAB

Can say me anyone why I get error when use this code in XC16 MPLAB? PIC24FJ64GA004 unsigned int __attribute__ ((space(eedata))) eeData[] = {100, 1, 22, 33, 44, 156, 3, 10, 1}; error: space(eedata) not supported on this target Sorry for beginner…
Krik99
  • 3
  • 3
0
votes
1 answer

Display on 7-SEGMENT

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 PORTB[13:6], PORTD[0:7], PORTE[0:7] port pins. Can you help me find more elegant way to replace the…
Yavni
  • 5
  • 6
0
votes
1 answer

PIC24F - Set LATx specific pins without effecting the other pins

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 LATB bits are used for other purposes. Now I need to set LATB = 0x003F for display '0', if i do this…
Yavni
  • 5
  • 6
0
votes
0 answers

Error No rule to make target PIC24 assembler

I'm trying to make a simple program to turn on a LED using a pic24fv32ka301 in assembler but I can't get it work, when trying to compile in MPLAB using de ASM30 compiler it throws the following error: nbproject/Makefile-default.mk:84: recipe for…
user2461687
  • 173
  • 1
  • 13
0
votes
3 answers

C - Hertz to Seconds and how to get the proper time for a delay?

I am playing around with a PIC 24 and currently I have a bit of a problem with converting hertz to seconds and then using it as a delay for a signal send to a piezo piece(buzzer, zoomer, speaker, etc) and I would like to make it play certain…
Joe Carr
  • 445
  • 1
  • 10
  • 23
0
votes
1 answer

MAX824/825 IC Watchdog interfacing with PIC or ATMEL

Could someone help me to interface PIC24 for instance with a external watchdog? http://datasheets.maximintegrated.com/en/ds/MAX823-MAX825Z.pdf A kind of beta version could be : WDI=1; while(1) { if(wdi!=0) routine execution break } But I don't know…
0
votes
0 answers

PIC24F32KA302 RTC configuration

I want to configure RTC of PIC24F32KA302 so that LED toggles every second. Howerver, it does not work. Please, find attach below RTC code which I write to initialize internal RTC. IDE: MPLAB X IDE Programmer: PICKit 3 Compiler:…
uv_utna
  • 41
  • 1
  • 1
  • 3