Microchip's 16-bit dsPIC® Digital Signal Controllers
Questions tagged [dspic]
75 questions
2
votes
1 answer
Mask and Filter dsPic30F4011
I'm programming a dsPIC30F4011 for CAN. But I have problems with specifying the identifier, the mask and the filter.
I use the Standard identifier and the extendet identifier. In bit 16-23 I'll write the adress of the tranceiver.
so, it looks…

Johannes
- 31
- 1
2
votes
1 answer
What input section attributes are required to place a C variable in a data memory output section?
My application has a number of modules that each require some variables to be stored in off-chip non-volatile memory. To make the reading and writing of these easier, I'm trying to collect them together into a contiguous region of RAM, to that the…

Evil Dog Pie
- 2,300
- 2
- 23
- 46
1
vote
0 answers
How to setup the ADC & DMA on a dsPIC33?
I like to sample an analogue mic sample. The sampling should be synced with the I2S master clock. Since I like to do some DSP after, a block of samples should be processed while another block should is sampled.
My MCU is a DSPIC33CH128MP205.
So I…

Stefan Jaritz
- 1,999
- 7
- 36
- 60
1
vote
3 answers
dsPIC33 ADC1 gives incorrect converted values
Good morning,
I am using the ADC1 of a dsPIC33EP512GM604 and getting incorrect converted values.
To check this I made a cycle of 10 consecutive sampling/conversions.
The first value is always quite different from the rest of them, but it is the…

Guille
- 326
- 2
- 10
1
vote
2 answers
writing to flash memory dspic33e
I have some questions regarding the flash memory with a dspic33ep512mu810.
I'm aware of how it should be done:
set all the register for address, latches, etc. Then do the sequence to start the write procedure or call the builtins function.
But I…

Philippe
- 13
- 5
1
vote
0 answers
Unexpected behaviour of an iexternal interrupt function, dspic33f
The project I'm desperatly trying to finish is rather simple in term of microcontroller programming. The dspic33fj128mc802 I use basically has to do 3 things:
receive data via UART and convert it into PWM signals for servomotors
regularly wake up…

Hadrien_B
- 11
- 1
1
vote
1 answer
Microchip dsPIC33 Start all PWMs at same time
Using dsPIC33CK256MP508 on the Curiosity board.
Trying to run 4 PWM generators in high resolution mode.
I will run them in single cycle mode. Trying to figure out how to kick off all 4 signals at the exact same time, or trigger them from the same…

kjav
- 93
- 1
- 7
1
vote
1 answer
dspic33ev Doesn't work after changing pin number
Description of the situation
The pin number was changed in the code during the existing development and changed using the MCC.
The device does not work after the change.
As shown in the picture below, according to the description of the Micro Chip,…

Jihun Kim
- 31
- 7
1
vote
0 answers
How is the return value interpreted in assembly function called from C in dsPIC33?
I have just started into RTSP and was looking at the assembly code in Microchip's RTSP examples. There are two files rtsp_api.h and rtsp_api.s. I wanted to know how are the return values fetched and how does that work.
For example, there is a…

RishabhHardas
- 495
- 1
- 5
- 25
1
vote
1 answer
No matter what I ask my system to send, it only sends FF and FE
I created a system that will read CANBUS data from a vehicle and transmit it wirelessly to a "base station". As of now, my code works in the sense that it sends things over the data line to the xbee and the xbee sends it to the receiving module…

dfetz
- 27
- 1
1
vote
1 answer
dsPic33EP512MU810 external interrupt
I would like use external interrupt for a touch screen chip. I could successfully configure the TFT chip right now. But fail to trigger my interrupt. I think I have correct configuration about my MCU.
void STMPE610_check_tp() iv…

Chao Duan
- 11
- 1
1
vote
1 answer
why this code using dspic33ep512mu810 chip uart 2 not working
In MPLAB X IDE v5.10, I am using dspic33ep512mu810 microcontroller.
I have following piece of C code:
#include "xc.h"
_FOSCSEL(FNOSC_FRCPLL) //INT OSC with PLL (always keep this setting)
_FOSC(OSCIOFNC_OFF & POSCMD_NONE) //disable external…

Lewis Liu
- 67
- 5
1
vote
2 answers
How to receive more than 5 bytes from uart?
Microcontroller: dsPIC30F4013
Compiler: xc16
I'm trying to receive an array from UART, but I only get the first 5 bytes.
I know that the receiver buffer is 4 words deep, but I need to receive the other bytes too. Maybe using a circular buffer,…

BrunoPadilha
- 13
- 4
1
vote
1 answer
RS485: Transmission issue from microcontroller
I have an issue related to "Transmission" from microcontroller. Microcontroller is able to receive, but unable to transmit.
this is an additional issue to my previously asked question [here]
Below is the max485 interface with microcontroller :
Here…

skg
- 948
- 2
- 19
- 35
1
vote
1 answer
dsPic33E : RS485 Communication issue
I am facing issue while communicating serially over RS485 port.
I am using dsPic33E microcontroller with Max485.
using breakpoint i analyzed that Whenever I send "0x00" to controller, "0xFF" is received. Then I sent "0x01", "0xFD" is received on…

skg
- 948
- 2
- 19
- 35