Author |
Message |
Topic: 2 servos |
ashrafkhatri
Replies: 5
Views: 11711
|
Forum: General CCS C Discussion Posted: Wed Aug 02, 2017 4:45 am Subject: 2 servos |
Let me do some more work on it. Then i will ask the same question with a written code if needed.
Thanks for your tip.
Ashraf |
Topic: 2 servos |
ashrafkhatri
Replies: 5
Views: 11711
|
Forum: General CCS C Discussion Posted: Wed Aug 02, 2017 1:41 am Subject: 2 servos |
hi,
I am working on two servos. Both servos are working but i am stuck now.
I want to make a code with the following settings:
Note: these servos operate on analog input:
Condition 1: at ana ... |
Topic: DS1302 time advancing |
ashrafkhatri
Replies: 4
Views: 10484
|
Forum: General CCS C Discussion Posted: Wed May 03, 2017 4:38 am Subject: DS1302 time advancing |
Thanks for your suggestions.
There is nothing mentioned on the crystal about loading capacitance. it is blanked as i got it from the market. So do not know anything about it.
I will check my layo ... |
Topic: DS1302 time advancing |
ashrafkhatri
Replies: 4
Views: 10484
|
Forum: General CCS C Discussion Posted: Wed May 03, 2017 3:09 am Subject: DS1302 time advancing |
Dear Friends;
I am using DS1302 for clock and calender.
Everything is working except some time advancement after couple of days.
Like 1 minute in 1week.
What should i do?
I have read some of the ... |
Topic: array to long conversion |
ashrafkhatri
Replies: 2
Views: 7631
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2017 3:15 am Subject: array to long conversion |
Thanks;
Code is now working |
Topic: array to long conversion |
ashrafkhatri
Replies: 2
Views: 7631
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2017 1:37 am Subject: array to long conversion |
Hi;
I am getting currect data from serial port and i save it in array of 3.
i.e:
int array_display[3];
now i want to convert it to long int.
array_display[0] will be save on unit place of lo ... |
Topic: printf format |
ashrafkhatri
Replies: 2
Views: 8422
|
Forum: General CCS C Discussion Posted: Wed Feb 08, 2017 6:30 am Subject: printf format |
Thanks |
Topic: printf format |
ashrafkhatri
Replies: 2
Views: 8422
|
Forum: General CCS C Discussion Posted: Wed Feb 08, 2017 12:10 am Subject: printf format |
Hi;
I am getting CC72AA33C3B1 kind of data on serial port from an embedded system.
Now i want to send similar type of command to that embedded system using my pic microcontroller hardware.
I ... |
Topic: Serial communication |
ashrafkhatri
Replies: 13
Views: 15308
|
Forum: General CCS C Discussion Posted: Fri May 09, 2008 11:56 pm Subject: Serial communication |
After the Master sent the string, the addressed Slave should respond in the next time
slot reserved for this, it doesn't matter which address it have.
Chance of data collision If all slaves( ... |
Topic: Serial communication |
ashrafkhatri
Replies: 13
Views: 15308
|
Forum: General CCS C Discussion Posted: Fri May 09, 2008 12:36 am Subject: Serial communication |
Thanks for your time
Mr. Humberto following is the one possible condition for serial communication.
1) The Master initiate ALL the transactions while the Slaves are listening.
2) ALL the trans ... |
Topic: Serial communication |
ashrafkhatri
Replies: 13
Views: 15308
|
Forum: General CCS C Discussion Posted: Thu May 08, 2008 1:57 am Subject: Serial communication |
I am using 4 microcontrollers for serial communication. 1 as master and remaining are slaves. communication work fine but on polling address from slaves , master does not recieve complete address from ... |
Topic: printf does not work |
ashrafkhatri
Replies: 5
Views: 5616
|
Forum: General CCS C Discussion Posted: Tue May 06, 2008 9:46 am Subject: printf does not work |
Thanks for your replying
Do you mean i use
#int_rb noclear in my code
how can i set flags and reset it in main loop in C language
could you post a sample code for my better understanding |
Topic: printf does not work |
ashrafkhatri
Replies: 5
Views: 5616
|
Forum: General CCS C Discussion Posted: Tue May 06, 2008 9:24 am Subject: printf does not work |
then how can i print on serial pin , while pressing portb pin4. and also include #int_RDA in my code as wel for recieving data |
Topic: printf does not work |
ashrafkhatri
Replies: 5
Views: 5616
|
Forum: General CCS C Discussion Posted: Tue May 06, 2008 9:05 am Subject: printf does not work |
Below is my code. My code work fine and print "Pic controller" on serial port on portb pin4 interupt. But when i add serial interupt #INT_RDA, printf stop printing on portb pin4 interupt.
I ... |
|