Questions tagged [dspic]

Microchip's 16-bit dsPIC® Digital Signal Controllers

75 questions
0
votes
2 answers

MPLAB X IDE 2.05 cannot write in Microchip dsPIC30F6014A

We are working with e-pucks real robots which posses a Microchip dsPIC30F6014A. We work in Windows 8.1 at 64 bits with MPLAB X IDE 2.05 and 3.55. Our robots got a problem with the PIN number so you told us that the solution was to buy a ICD…
Jotasmall
  • 41
  • 8
0
votes
2 answers

HM-10: maybe some AT commands are not implemented?

I'm developing a project with PIC dsPIC33 connected via serial port to the HM-10 device. I send to the device AT commands but it seems that some of AT commands are not implemented in the HM-10 firmware. In detail: AT+RESET - > OK+RESET : it…
Ferrari
  • 75
  • 1
  • 11
0
votes
1 answer

dsPic33E : How to Implement Input Change Notification on Digital Input Pin?

As the question says, I want to implement ICN (Input Change Notification) for a digital Input Pin. I am using dsPic33EP512GM604. I have configured Pin<22> RB1 as an Input Pin. An IR sensor is connected to the same Pin. I am looking out for a way…
skg
  • 948
  • 2
  • 19
  • 35
0
votes
0 answers

dsPic33E : UART without DMA example not working

I am using dsPic33EP512GM604. I have designed a test circuit to test UART Communication. I have downloaded a sample code from Microchip website and modified accordingly for my device and circuit designed. I am facing two issues while debugging. PLL…
skg
  • 948
  • 2
  • 19
  • 35
0
votes
1 answer

dsPIC33 external interrupt

I am trying to understand how to attach external falling edge interrupt to a dsPIC33EP512MU810 micro controller. From browsing the internet I have found the following code: RPINR0= 0x5400;//set pin 1 as interrupt 1 INTCON2 = 0x0000; /*Setup INT0,…
Mohsin Anees
  • 698
  • 2
  • 9
  • 25
0
votes
1 answer

dsPic33 page erase size

I work on dsPic33EP256MC502 application, i need to write on flash to save configuration. All work except erasing page, i erase too much or too many. Datasheet say page erase page size is "1024 instructions" (3072 bytes) Since instruction is 24 bits…
rom1nux
  • 110
  • 1
  • 11
0
votes
0 answers

32bit calculation for 16bit dsPIC33F takes 460 instructioncyclese?

I'm using a 16 bit Timer as hardware delay for the function delay_ns(UINT32 ui32_delay_val_ns);. Within the function the delay_val is been divided by Tcy. The timer runs at Tcy, which is 25ns (instruction cycle time at 40MHz), so every tick (or TMR4…
John
  • 11
  • 3
0
votes
0 answers

Communicating dsPIC with PC application through UART. Receiver interrupt handling

I'm communicating my C# applications with dsPIC x16 microcontroller using UART. I want to send/receive fixed size frames and I tried to manage it in a following way: if(readFrame) { IEC0bits.U1RXIE=0; //turn off the U1RX interrupts …
Glamdring
  • 84
  • 1
  • 5
0
votes
0 answers

synchronizing multiple slaves in an I2C network using dsPIC33EP256GP502

dsPIC33EP syncronisation Hello, Can someone explain how can I synchronize multiple slaves in an I2C network using dsPIC33EP256GP502 and the details are attached in the link above. Thanks and Regards, Akhil
AM_87
  • 13
  • 5
0
votes
1 answer

Copying every nth element from one array to another

Does anyone know of a way to copy every nth element from one array to another? For example, I have an array Data[x] and want to copy every third (3rd) element - Data[0], Data[3], Data[6] etc into a new array Data2[j]. I tried using a for loop but…
JBH
  • 11
  • 2
0
votes
0 answers

Serial Port Reading using Unity and dsPIC33F

I am sending 14bytes of data from the dsPIC side where the 14th byte is newline. Now how can I read the serialport data using Unity5 Game engine. I have read several blogs using various methods (using read(), readline(), readBytes() and so on). A…
AM_87
  • 13
  • 5
0
votes
1 answer

how to make spi connection between arduino uno and dspic33ep512mc502?

i just want to test spi comunication between arduino uno and dspic33ep512mc502, i use serial port to see receiving data from microcontroller; -arduino uno is master -dspic33ep512mc502 is slave here is my code for Arduino Uno…
kederrac
  • 16,819
  • 6
  • 32
  • 55
-1
votes
1 answer

converting int into float dsPIC33

I am trying to convert int16_t to float code is int16_t ADC_value; float voltage = (float)ADC_value/1000.0f; printf("%f\r\n",voltage); result when the voltage exceeds 2.0V floating point values become (-)values. but before it converts to floating…
-2
votes
2 answers

Statements on "if" not followed

I´m doing a little programming on C with a dsPIC, I have found a little tiny problem that I don´t know why or how is it happenning. Compiler C30 for MPLAB I have this code: int Function1(){ . . . while(1){ . . . P1 = EPC96_1[18]; //Here the value…
1 2 3 4
5