Author |
Message |
Topic: Multiple files compilation |
christian.koji
Replies: 3
Views: 4601
|
Forum: General CCS C Discussion Posted: Thu Sep 16, 2010 10:23 am Subject: Multiple files compilation |
I'm using CCS directly, but it generates the error =/.
I tried to use .h extension also but get the same errors.
Is there some project configuration I have to do to deal with multiple files? |
Topic: Multiple files compilation |
christian.koji
Replies: 3
Views: 4601
|
Forum: General CCS C Discussion Posted: Tue Sep 14, 2010 5:27 am Subject: Multiple files compilation |
Hey guys I'm with a problem. I'd like to compile multiple files using one file to declare variables and make #defines. The problem is: if I have a
main.c
#include <variable.c>
#include < ... |
Topic: Pic16f876A e LCD |
christian.koji
Replies: 3
Views: 11037
|
Forum: General CCS C Discussion Posted: Tue Jun 15, 2010 5:55 am Subject: Pic16f876A e LCD |
Ok, i've made what you said but its not working yet... =/
actually i'm testing on a development board i've bought, guess there is no problem with the contrast or voltage...
it works when i use a pic ... |
Topic: Pic16f876A e LCD |
christian.koji
Replies: 3
Views: 11037
|
Forum: General CCS C Discussion Posted: Fri Jun 11, 2010 6:42 am Subject: Pic16f876A e LCD |
Hey Guys i'm with a problem using LCD with pic16f876A. I cant make it works. I'm using LCD.c from CCS library and the LCD is connected like this:
PIC - LCD
rb2 - db4
rb3 - db5
rb4 - db6
rb5 - d ... |
Topic: Global Interrupt |
christian.koji
Replies: 3
Views: 10828
|
Forum: General CCS C Discussion Posted: Fri May 28, 2010 10:06 am Subject: Global Interrupt |
LOL good analogy =P
Guess i undertand now..
in the datasheet is saying that:
GIE=1 Enables all unmasked interrupts
GIE=0 Disables all interrupts
what is a masked interrupt?
for example on ... |
Topic: Global Interrupt |
christian.koji
Replies: 3
Views: 10828
|
Forum: General CCS C Discussion Posted: Fri May 28, 2010 9:04 am Subject: Global Interrupt |
Hey Guys,
i'm with a doubt. I'm not sure when i should use global interrupt and when i shouldn't. |
Topic: I2C Slave problem |
christian.koji
Replies: 2
Views: 4804
|
Forum: General CCS C Discussion Posted: Mon May 24, 2010 8:59 am Subject: I2C Slave problem |
Hey, i had a problem with i2c too if u wanna u can take a look at this topic
http://www.ccsinfo.com/forum/viewtopic.php?t=42546
or this
http://www.ccsinfo.com/forum/viewtopic.php?t=42626
there i ... |
Topic: i2c multimaster problem |
christian.koji
Replies: 15
Views: 25589
|
Forum: General CCS C Discussion Posted: Mon May 24, 2010 8:52 am Subject: i2c multimaster problem |
Oh Ok, guess i understand...
BTW its working now i'm communicating the multimaster with a slave, i have a little problem in communicate one multimaster with another multimaster, but i guess its jus ... |
Topic: i2c multimaster problem |
christian.koji
Replies: 15
Views: 25589
|
Forum: General CCS C Discussion Posted: Mon May 24, 2010 7:42 am Subject: i2c multimaster problem |
Hmm interesting, i'm gonna do this too, hope it works. I just didnt undertand the line u do while(SSP1ADD != baud_rate){} |
Topic: i2c multimaster problem |
christian.koji
Replies: 15
Views: 25589
|
Forum: General CCS C Discussion Posted: Fri May 21, 2010 12:59 pm Subject: i2c multimaster problem |
Yes, its not doing collision detection, i'm just trying to do first a functional communication, i'm gonna do as soon as it communicates =P
i read mark's code, but he doesn't use ccs library he wrot ... |
Topic: i2c multimaster problem |
christian.koji
Replies: 15
Views: 25589
|
Forum: General CCS C Discussion Posted: Fri May 21, 2010 11:30 am Subject: i2c multimaster problem |
Hey guys I'm with a problems to make a multimaster system works...
I've written a master.c and a slave.c, both working and communicating with each other. Now I would like to merge them and make a m ... |
Topic: i2c problem on read |
christian.koji
Replies: 7
Views: 9691
|
Forum: General CCS C Discussion Posted: Fri May 21, 2010 11:03 am Subject: i2c problem on read |
Ok, thats was my problem... =P
I took out the NOCLEAR and add a state=3 and then I'm receiving the 3 datas my interrupt is like this:
#INT_SSP
void ssp_interupt ()
{
j=1;
... |
Topic: i2c problem on read |
christian.koji
Replies: 7
Views: 9691
|
Forum: General CCS C Discussion Posted: Wed May 19, 2010 5:47 am Subject: i2c problem on read |
Hey thanks, the time really was my problem now its working for receive 2 bytes, but not for 3 bytes =/
i put my code below if you could help me...
slave.c
#INT_SSP NOCLEAR
void ssp_interupt & ... |
Topic: i2c problem on read |
christian.koji
Replies: 7
Views: 9691
|
Forum: General CCS C Discussion Posted: Fri May 14, 2010 7:25 am Subject: i2c problem on read |
Ok, i tried to do exactly like the example and i'm still with the same problem =/
My code on slave.c
BYTE address, data, buffer;
#INT_SSP NOCLEAR
void ssp_interupt ()
{
... |
Topic: i2c problem on read |
christian.koji
Replies: 7
Views: 9691
|
Forum: General CCS C Discussion Posted: Fri May 14, 2010 5:27 am Subject: i2c problem on read |
Well, i guess i was thinking wrong. I thought when the address match the hw generates an interrupt and then i could read both the address and the data. But reading what you wrote and the example i gue ... |
|