Author |
Message |
Topic: #BYTE register declaration |
Fabrici
Replies: 4
Views: 12425
|
Forum: General CCS C Discussion Posted: Thu Dec 19, 2013 4:01 am Subject: #BYTE register declaration |
A big thanks for the help.
It works perfectly now (at least for this part ^^).
Have a nice day. |
Topic: #BYTE register declaration |
Fabrici
Replies: 4
Views: 12425
|
Forum: General CCS C Discussion Posted: Wed Dec 18, 2013 12:30 pm Subject: #BYTE register declaration |
Hello all,
CCS Version : CCS PCD C Compiler, Version 5.006, 7054
Chip used : DSPIC33FJ09GS302
In my program, I declare two registers :
#BYTE CMPCON1 = 0x0540
#BYTE CMPCON2 = 0x0544
and, ... |
Topic: dsPIC33 I2C interrupt doesn't trigger [solved] |
Fabrici
Replies: 9
Views: 19937
|
Forum: General CCS C Discussion Posted: Thu Mar 21, 2013 8:41 am Subject: dsPIC33 I2C interrupt doesn't trigger [solved] |
Thanks for the explanation Ttelmah. This compiler is full of hidden tricks, and is really not easy to handle for a first project.
So we have INT_SPI1 for SPI #1, INT_SPI2 for SPI #2, INT_SI2C2 fo ... |
Topic: dsPIC33 I2C interrupt doesn't trigger [solved] |
Fabrici
Replies: 9
Views: 19937
|
Forum: General CCS C Discussion Posted: Thu Mar 21, 2013 7:49 am Subject: dsPIC33 I2C interrupt doesn't trigger [solved] |
I found it !! Thanks very much for your help Ttelmah.
Interrupt SI2C doesn't appear on DSPIC33EP64GP503 datasheet. But it is in CCS .h file.
So, I was waiting for an interrupt that didn't exist. ... |
Topic: dsPIC33 I2C interrupt doesn't trigger [solved] |
Fabrici
Replies: 9
Views: 19937
|
Forum: General CCS C Discussion Posted: Thu Mar 21, 2013 7:25 am Subject: dsPIC33 I2C interrupt doesn't trigger [solved] |
Thanks for the hint. It seems it is the case. I tested the following code :
#include <33EP64GP503.h>
#fuses ICSP1 // ICD uses PGC1/PGD1 pins
#fuses NOJTAG // JTAG disabled
#fuses DEBUG ... |
Topic: dsPIC33 I2C interrupt doesn't trigger [solved] |
Fabrici
Replies: 9
Views: 19937
|
Forum: General CCS C Discussion Posted: Thu Mar 21, 2013 5:07 am Subject: dsPIC33 I2C interrupt doesn't trigger [solved] |
As always, you were right, Ttelmah. And something seems to have changed in communication :
* I2C master now is freezed when sending I2C trame, with SCL and SDA at low level.
* If I reset the s ... |
Topic: dsPIC33 I2C interrupt doesn't trigger [solved] |
Fabrici
Replies: 9
Views: 19937
|
Forum: General CCS C Discussion Posted: Wed Mar 20, 2013 9:46 am Subject: dsPIC33 I2C interrupt doesn't trigger [solved] |
Hello,
I use two board, each with a dspic33, and want to establish a communication with i2c between them. My first board use two i2c links, and first link which is used to communicate with other ... |
Topic: FAST_IO and I2C interaction [solved] |
Fabrici
Replies: 7
Views: 10962
|
Forum: General CCS C Discussion Posted: Fri Mar 15, 2013 4:03 am Subject: FAST_IO and I2C interaction [solved] |
Thanks for your answer,
It was a fix I made with 4.140 to have my two I2C working. I agree that it was not a logical solution, but it solved my problems ... momentarily.
Then, I installed 4.141 ... |
Topic: FAST_IO and I2C interaction [solved] |
Fabrici
Replies: 7
Views: 10962
|
Forum: General CCS C Discussion Posted: Thu Mar 14, 2013 11:23 am Subject: FAST_IO and I2C interaction [solved] |
Bingo !!
Thanks Ttelmah. This setup worked perfectly:
#USE I2C(MASTER, I2C1, STREAM=I2CM1)
#USE I2C(MASTER, I2C2, STREAM=I2CM2)
Effectively, it seems that software setup ... |
Topic: FAST_IO and I2C interaction [solved] |
Fabrici
Replies: 7
Views: 10962
|
Forum: General CCS C Discussion Posted: Thu Mar 14, 2013 10:03 am Subject: FAST_IO and I2C interaction [solved] |
Thanks for your answer Jay,
I just tested it. It changes nothing that the USE I2C is placed before or after the set_tris ... statements.
Fabrice |
Topic: FAST_IO and I2C interaction [solved] |
Fabrici
Replies: 7
Views: 10962
|
Forum: General CCS C Discussion Posted: Thu Mar 14, 2013 9:31 am Subject: FAST_IO and I2C interaction [solved] |
Hello,
I use PCD compiler V 4.141 with a DSPIC33EP256GP506. I encounter a very strange interraction between FAST_IO and I2C.
This program work, and I can see good signals on I2C connector with ... |
Topic: stack problem with mmcsd_load_buffer |
Fabrici
Replies: 2
Views: 4685
|
Forum: General CCS C Discussion Posted: Thu Mar 07, 2013 11:56 am Subject: stack problem with mmcsd_load_buffer |
Looking at the .sym file, I was surprised to see same address allocated to different symbols involved in my problem :
1408 mmcsd_init.i
1409 mmcsd_init.r1
140A mmcsd_crc_on_off.crc_enabl ... |
Topic: stack problem with mmcsd_load_buffer |
Fabrici
Replies: 2
Views: 4685
|
Forum: General CCS C Discussion Posted: Wed Mar 06, 2013 11:15 am Subject: stack problem with mmcsd_load_buffer |
Hello,
I'm using CCS PCD C Compiler, Version 4.140, 7054
I'm currently trying to communicate between a DSPIC33EP256GP506 and a micro SD card. The function "mmcsd_init()" is returni ... |
Topic: [solved] Problem with a delay_ms |
Fabrici
Replies: 12
Views: 11367
|
Forum: General CCS C Discussion Posted: Thu Feb 14, 2013 5:10 am Subject: [solved] Problem with a delay_ms |
I've just tested and it works perfectly on my design.
Thank you so much for your help. |
Topic: [solved] Problem with a delay_ms |
Fabrici
Replies: 12
Views: 11367
|
Forum: General CCS C Discussion Posted: Wed Feb 13, 2013 11:04 am Subject: [solved] Problem with a delay_ms |
Using #build(stack=1024) or #build(stack=2048) doesn't seems to have any effect on this issue.
I've added some diagnostics to the code, and I can see that restart is caused by a trap conflict (RE ... |
|