0
votes
2answers
83 views

Read from UART seems to overwrite while in buffer

I am reading sending data to a PIC32MX7xx using UART. The data frames are all 6 bytes long, no exception. The problem I am facing is that when there are 6 bytes waiting to be read and I send another ...
1
vote
2answers
96 views

I2C with PIC32 and MCP4706 Not Working

We're working on a battery charger for an electric bicycle at the moment, but prototyping with a PIC32MX695F512H kit board and an MCP4706 DAC soldered onto a breakout board, programmed using a ...
2
votes
3answers
159 views

Why pic18fxxx microcontrollers is better for C language

Pic18fxxx family has a lot advantages and improvements from the pic16fxxx family of microcontrollers. What is the particular feature that make them better for C programming than the pic16fxxx devices? ...
0
votes
0answers
71 views

Data loss between parsing and displaying on an 8 by 2 LCD

I'm trying to display strings that are larger than eight characters on the top row of am 8 by 2 LCD by making them scroll across the screen. I'm using a PIC16f1936 microcontroller and MPlab x IDE. ...
2
votes
0answers
239 views

How do I modulate PWM frequency in realtime with a Microchip dsPIC (or PIC24)? [closed]

This question is a direct continuation of the question/answer found at the link below. Skip to the last answer/comments given, as this is where my question begins (I don't have enough rep. points to ...
6
votes
3answers
268 views

Extraneous loop produced by PIC compiler from MicroChip

We're using the Lite version of the MicroChip PIC compiler so maybe that's the reason, but this simple one-bit shift is generating a loop where none is necessary. Since the shift count is 1 (a ...
2
votes
1answer
2k views

C18 Timer0 timing calculation using MCC18

I am programming a PIC18F4520 and I've set it to use a 32Mhz internal clock. I need a counter to tick every second so I'm using TMR0 for this purpose. To use ...
0
votes
2answers
531 views

pic 18F4550: local variable problem:

I'm using the pic18F4550 with microchip v8.63 and with the C 18 compiler. I'm using a LDR that retrieve the value of the led (not on my picdem board) (red, green and blue) these values are stored in a ...
3
votes
3answers
4k views

How do I modulate PWM frequency in realtime with a Microchip dsPIC?

I'm trying to change the PWM output frequency roughly once a millisecond using a dsPIC33FJ256GP710, and I'm having mixed results. I first tried this: ...