Author |
Message |
Topic: About DALI Application |
theasus
Replies: 7
Views: 14864
|
Forum: General CCS C Discussion Posted: Sun Jun 26, 2011 2:30 am Subject: About DALI Application |
I have already searched Google. And I know the first step of design is "Searching"
And yes we can find a lot of documents and applications about DALI. But these are not my problem. Actually ... |
Topic: About DALI Application |
theasus
Replies: 7
Views: 14864
|
Forum: General CCS C Discussion Posted: Sat Jun 25, 2011 3:34 am Subject: About DALI Application |
Is there anyone to answer my question? |
Topic: About DALI Application |
theasus
Replies: 7
Views: 14864
|
Forum: General CCS C Discussion Posted: Fri Jun 17, 2011 1:42 am Subject: About DALI Application |
Hi,
Could you propose anything or share your experiences about DALI (Digital Addressable Lighting Interface) applications with PIC-C?
Thanks. |
Topic: Tris settings problem |
theasus
Replies: 12
Views: 13565
|
Forum: General CCS C Discussion Posted: Mon Feb 21, 2011 2:17 am Subject: Tris settings problem |
RS232 settings have some bugs for 18f14k50. Because another PICS like 16f877 didn't give an error for this operation. And When I don't use SPI module with RS232, It is worked well. This setting shown ... |
Topic: Tris settings problem |
theasus
Replies: 12
Views: 13565
|
Forum: General CCS C Discussion Posted: Fri Feb 18, 2011 9:47 am Subject: Tris settings problem |
I'm not using only SPI module. I will also receive some signal from peripheral device. So I have to define pins as inputs or outputs. And "SET_TRIS_XX" is a CCSC fuction, Isn't it? |
Topic: Tris settings problem |
theasus
Replies: 12
Views: 13565
|
Forum: General CCS C Discussion Posted: Fri Feb 18, 2011 3:04 am Subject: Tris settings problem |
Could you purpose anything? My problem is still continuing.
Couldn't I set tris register when I used SPI or uart? |
Topic: Tris settings problem |
theasus
Replies: 12
Views: 13565
|
Forum: General CCS C Discussion Posted: Sun Feb 13, 2011 6:36 am Subject: Tris settings problem |
I have already defined SCK pin is an input.As it shown in my codes;
SET_TRIS_B( 0b01110000 );
And I couldn't solve my problem yet.
Repeat after me:
If I'm going to set the tris myself, and not ... |
Topic: Tris settings problem |
theasus
Replies: 12
Views: 13565
|
Forum: General CCS C Discussion Posted: Sat Feb 12, 2011 7:25 am Subject: Tris settings problem |
Repeat after me:
If I'm going to set the tris myself, and not just let the compiler do it, I _must_ read the data sheet, and work out which pins need to be inputs, and which pins need to be outputs.. ... |
Topic: Tris settings problem |
theasus
Replies: 12
Views: 13565
|
Forum: General CCS C Discussion Posted: Sat Feb 12, 2011 6:48 am Subject: Tris settings problem |
I couldn't set tris settings of 18f14k50,properly.When I didn't use tris setting my program works and I can use SPI module.But when I set tris register,it doesn't work,properly and I can't get correct ... |
Topic: Setting of CONFIG1H register |
theasus
Replies: 1
Views: 5713
|
Forum: General CCS C Discussion Posted: Mon Jan 24, 2011 8:00 am Subject: Setting of CONFIG1H register |
How can I set CONFIG1H register's value, directly?
I made an include file for registers from device selector option. But I couldn't see anything about CONFIG1H register. And I used various PICs for t ... |
Topic: How can I divide a 16 bit value into 8 bit values? |
theasus
Replies: 5
Views: 6026
|
Forum: General CCS C Discussion Posted: Sat Dec 04, 2010 5:43 am Subject: How can I divide a 16 bit value into 8 bit values? |
Sorry about that I understood what you mean I solved my problem.
int16 b;
int LSB,MSB;
LSB=make8(b,0);
MSB=make8(b,1);
Thanks for your considerations. |
Topic: How can I divide a 16 bit value into 8 bit values? |
theasus
Replies: 5
Views: 6026
|
Forum: General CCS C Discussion Posted: Sat Dec 04, 2010 2:17 am Subject: How can I divide a 16 bit value into 8 bit values? |
I couldn't get any result from your link. Could you write a sample about it? |
Topic: How can I divide a 16 bit value into 8 bit values? |
theasus
Replies: 5
Views: 6026
|
Forum: General CCS C Discussion Posted: Sat Dec 04, 2010 12:36 am Subject: How can I divide a 16 bit value into 8 bit values? |
How can I divide a 16 bit value into 8 bit values?For example;
int16 value;
int8 LSB,MSB;
value=0x4F87;
And I want to change LSB and MSB's values as;
LSB=87;
MSB=4F;
How can I do this? |
Topic: A question about PWM setting |
theasus
Replies: 4
Views: 6084
|
Forum: General CCS C Discussion Posted: Thu Nov 11, 2010 1:28 am Subject: A question about PWM setting |
Also I want to ask a simple question but I couldn't find anywhere.
We can set PWM like this:
set_pwm1_duty(200L);
But we can't use this code instead of them:
a=100;
set_pwm1_duty(aL ... |
Topic: A question about PWM setting |
theasus
Replies: 4
Views: 6084
|
Forum: General CCS C Discussion Posted: Thu Nov 11, 2010 1:03 am Subject: A question about PWM setting |
I changed CCP1CON as you said but I couldn't set PWM duty cycle as %100. These are my codes:
pr2=50;
t2con=0b00000100;
ccp1con=0b00111100;
CCPR1L=50;
|
|