Author |
Message |
Topic: Problem using Timer1 on dsPIC33EP64MC202 |
mquemelli
Replies: 3
Views: 10970
|
Forum: General CCS C Discussion Posted: Tue Mar 21, 2017 9:09 am Subject: Problem using Timer1 on dsPIC33EP64MC202 |
Sorry my delay Alan, thank you for answering.
I had tried what you say to me, and I also got nothing. I had tried use the timer2 and timer3 too, I changed from external source to internal and noth ... |
Topic: Problem using Timer1 on dsPIC33EP64MC202 |
mquemelli
Replies: 3
Views: 10970
|
Forum: General CCS C Discussion Posted: Mon Mar 20, 2017 9:32 pm Subject: Problem using Timer1 on dsPIC33EP64MC202 |
I'm trying to use Timer1 just to blink a LED, and I am using a dsPIC33EP64MC202 with a 12MHz crystal, clock is 140MHz. This is my header file:
#include <33EP64MC202.h>
#FUSES NOWDT ... |
Topic: Problem using SPI communication inside of interrupt TIMER0 |
mquemelli
Replies: 7
Views: 16312
|
Forum: General CCS C Discussion Posted: Wed Feb 15, 2017 6:27 pm Subject: Problem using SPI communication inside of interrupt TIMER0 |
I would like to thank for your help Ttelmah and Jay. I found the problem in the code, #use fast_io (B) was making communication impossible. When I removed this line, everything worked correctly. |
Topic: Problem using SPI communication inside of interrupt TIMER0 |
mquemelli
Replies: 7
Views: 16312
|
Forum: General CCS C Discussion Posted: Wed Feb 15, 2017 9:55 am Subject: Problem using SPI communication inside of interrupt TIMER0 |
I have changed as Jay said by testing with the flag:
#include <18F4550.h> // including PIC library
#fuses XTPLL,USBDIV,CPUDIV1,VREGEN, MCLR, NODEBUG, PLL1, NOPUT
#device adc=10
#use d ... |
Topic: Problem using SPI communication inside of interrupt TIMER0 |
mquemelli
Replies: 7
Views: 16312
|
Forum: General CCS C Discussion Posted: Wed Feb 15, 2017 7:33 am Subject: Problem using SPI communication inside of interrupt TIMER0 |
I'm trying to use SPI communication inside of interrupt but it's not work well.
Code:
#include <18F4550.h> // including PIC library
#fuses XTPLL,USBDIV,CPUDIV1,VREGEN, MCLR, NODEBU ... |
Topic: How to use SPI with PIC18F4550 and ADC MAX11040K |
mquemelli
Replies: 9
Views: 21393
|
Forum: General CCS C Discussion Posted: Sun Dec 18, 2016 11:38 am Subject: Changing PIC to MCP2210 |
Hi guys, as you had told me about the hardware incompatibility betwenn PIC18F4550 and MAX11040. I had to change PIC to another device from Microchip too, I choosed to use MCP2210 that is a protocol co ... |
Topic: How to use SPI with PIC18F4550 and ADC MAX11040K |
mquemelli
Replies: 9
Views: 21393
|
Forum: General CCS C Discussion Posted: Tue Oct 18, 2016 7:32 pm Subject: How to use SPI with PIC18F4550 and ADC MAX11040K |
Jay and PCM Programmer, thanks a lot for help me, I will fix all this problems. Now I can see more clearly what is happening. If it work or not I will post here the result. |
Topic: How to use SPI with PIC18F4550 and ADC MAX11040K |
mquemelli
Replies: 9
Views: 21393
|
Forum: General CCS C Discussion Posted: Tue Oct 18, 2016 4:14 pm Subject: How to use SPI with PIC18F4550 and ADC MAX11040K |
No, I have supplied the peripheral correctly with 3 volts and the pic with 5. |
Topic: How to use SPI with PIC18F4550 and ADC MAX11040K |
mquemelli
Replies: 9
Views: 21393
|
Forum: General CCS C Discussion Posted: Tue Oct 18, 2016 10:37 am Subject: How to use SPI with PIC18F4550 and ADC MAX11040K |
I'm trying to use SPI with PIC18F4550 to communicate with ADC device MAX11040k, my compiler is PCW 4.140. Here is the data sheet:
#include <18f4550.h>
#device adc=10
#use delay(clock = ... |
|