Author |
Message |
Topic: sequential i2c_read() problem for master |
LEVENT
Replies: 1
Views: 3568
|
Forum: General CCS C Discussion Posted: Thu Jan 08, 2009 2:23 am Subject: sequential i2c_read() problem for master |
Hi, my CCS C compiler version 4.013
I write project to communicate master PIC and slave PIC via I2C protocol. I send buffer array to slave from master, it is ok. After that, I read array from slave i ... |
Topic: i2c master&slave problem |
LEVENT
Replies: 13
Views: 10164
|
Forum: General CCS C Discussion Posted: Mon Apr 28, 2008 7:59 am Subject: i2c master&slave problem |
Hello,
I agree with Guest..Try to send one data by every one interrupt. |
Topic: i2c master&slave problem |
LEVENT
Replies: 5
Views: 7431
|
Forum: General CCS C Discussion Posted: Fri Apr 04, 2008 11:35 am Subject: i2c master&slave problem |
this codes work fine :
************************************
Master PIC side :
************************************
#include <16F877.h>
// fuses
#FUSES NOWDT //No ... |
Topic: i2c master&slave problem |
LEVENT
Replies: 5
Views: 7431
|
Forum: General CCS C Discussion Posted: Fri Apr 04, 2008 10:39 am Subject: i2c master&slave problem |
hi everbody.
I want to communicate 2 PIC with each other as one of them is master and the other one ise slave.I have written simple code to send data array from master to slave PIC and I send data f ... |
Topic: counter problem |
LEVENT
Replies: 3
Views: 4837
|
Forum: General CCS C Discussion Posted: Thu Aug 16, 2007 7:04 am Subject: counter problem |
thanks a lot my friend. your answer enough for me. I have wondered about timer0 modules principle and I have learned from your answer.
For my first question, I think that there are some ripples fro ... |
Topic: counter problem |
LEVENT
Replies: 3
Views: 4837
|
Forum: General CCS C Discussion Posted: Wed Aug 15, 2007 4:09 am Subject: counter problem |
I have an another question :
when my pic16f877 runs some codes, at the same time does increase timer0 whith external pulses? Does timer0 module run and increase independent from pic's other operati ... |
Topic: counter problem |
LEVENT
Replies: 3
Views: 4837
|
Forum: General CCS C Discussion Posted: Wed Aug 15, 2007 1:34 am Subject: counter problem |
hi everbody
I have written a program to control dc motor and I must follow cm data to stop dc motor when it reach its target. I have used encoder (100pals per 1tour) to count the palses.I used timer0 ... |
Topic: Analog to Digital - values read are not stable |
LEVENT
Replies: 6
Views: 6909
|
Forum: General CCS C Discussion Posted: Tue Jul 31, 2007 2:42 am Subject: Analog to Digital - values read are not stable |
I want to say a basic way to solve this problem.
You can connect small capacitance to your ADC pin like 100pf.This capacitance can remove ripples caused from some reasons. |
Topic: pulse count? |
LEVENT
Replies: 3
Views: 5896
|
Forum: General CCS C Discussion Posted: Mon Jun 05, 2006 4:45 am Subject: pulse count? |
but I'm using ccp1 as pwm? |
Topic: pulse count? |
LEVENT
Replies: 3
Views: 5896
|
Forum: General CCS C Discussion Posted: Mon Jun 05, 2006 2:03 am Subject: pulse count? |
hi everbody.I want to count external pulses to fix my motor distance.My pulse formula is ( 382 pulses=1meter )...
Is my program right ?
int16 a;
...
while(a<382)
{
wh ... |
Topic: simple question |
LEVENT
Replies: 2
Views: 4170
|
Forum: General CCS C Discussion Posted: Fri May 19, 2006 7:00 am Subject: simple question |
thanks,I fined that,memory address of 9 is refer to PORTE |
Topic: simple question |
LEVENT
Replies: 2
Views: 4170
|
Forum: General CCS C Discussion Posted: Fri May 19, 2006 5:56 am Subject: simple question |
can anybody explane me purpose of this code:
#bit x3=x.3
#bit x2=x.2
#bit x1=x.1
#bit x0=x.0
#bit y3=5.5
#bit y2=9.0
#bit y1=9.1
#bit y0=9.2
#bit rf=8.3
#bit START=8.0
#bit STOP=8.2
# ... |
Topic: simple question |
LEVENT
Replies: 2
Views: 5309
|
Forum: General CCS C Discussion Posted: Thu May 18, 2006 10:39 am Subject: simple question |
how can I see int16 number (for example 1034)on screen?How can I use printf() function for this my simple problem?Can you help me?
Thanks a lot everyone... |
Topic: :shock: |
LEVENT
Replies: 2
Views: 5205
|
Forum: General CCS C Discussion Posted: Wed May 17, 2006 2:21 am Subject: :shock: |
hi everbody..
I want to control a motor.In my project,I could write a program like that :
void main()
{
int num1, num2, num3;
static byte value;
long move;
int16 cm;
... |
Topic: pic18Fxxx |
LEVENT
Replies: 3
Views: 6754
|
Forum: General CCS C Discussion Posted: Mon May 08, 2006 5:32 am Subject: pic18Fxxx |
thanx.but where can I download this version? |
|