Author |
Message |
Topic: how to accept value from other pic? |
janet
Replies: 8
Views: 19368
|
Forum: General CCS C Discussion Posted: Wed Mar 24, 2004 3:06 am Subject: how to accept value from other pic? |
actually the sensor pic is very near with the receiver pic. I use rs232 so that i could change the sensor easily.
unfortunately, the RS_DATA doesn't work and receive nothing. |
Topic: how to accept value from other pic? |
janet
Replies: 8
Views: 19368
|
Forum: General CCS C Discussion Posted: Mon Mar 22, 2004 1:25 am Subject: how to accept value from other pic? |
ok,
since i got 2 rs232 port, how many max232 i have to use? |
Topic: if i want to use multiple rs232, how to use kbhit()? |
janet
Replies: 4
Views: 14190
|
Forum: General CCS C Discussion Posted: Sun Mar 21, 2004 7:53 am Subject: if i want to use multiple rs232, how to use kbhit()? |
readme doesnt explain about multiple kbhit with multiple rs232 |
Topic: if i want to use multiple rs232, how to use kbhit()? |
janet
Replies: 4
Views: 14190
|
Forum: General CCS C Discussion Posted: Sun Mar 21, 2004 7:43 am Subject: if i want to use multiple rs232, how to use kbhit()? |
nothing talk abouth kbhit() in readme. |
Topic: how to accept value from other pic? |
janet
Replies: 8
Views: 19368
|
Forum: General CCS C Discussion Posted: Sun Mar 21, 2004 7:39 am Subject: how to accept value from other pic? |
/*
sensor.c
*/
#include <16F877A.h>
#device adc=8
#use delay(clock=20000000)
#fuses NOWDT,HS, PUT, BROWNOUT, NOLVP
// #use rs232(baud=9600,xmit=PIN_C6,rcv=PIN_C7)
// i exchange pin_c ... |
Topic: if i want to use multiple rs232, how to use kbhit()? |
janet
Replies: 4
Views: 14190
|
Forum: General CCS C Discussion Posted: Sun Mar 21, 2004 6:35 am Subject: if i want to use multiple rs232, how to use kbhit()? |
If i have more than one rs232, how to invoke kbhit();
I know there are fprint, fget, fput, but how a bout kbhit()?
Thanks |
Topic: DS1631 error |
janet
Replies: 1
Views: 11433
|
Forum: General CCS C Discussion Posted: Sat Mar 20, 2004 4:35 am Subject: DS1631 error |
Hi,
I am using DS1631 driver from CCS. However, i always get t = 1E1E. I have check the datasheet from maxim-ic.com, it shows that the LSB must be always zero. Can you point me out where i did wron ... |
Topic: how to get a varible from external - eeprom |
janet
Replies: 3
Views: 13453
|
Forum: General CCS C Discussion Posted: Wed Mar 17, 2004 3:05 am Subject: how to get a varible from external - eeprom |
Hi,
BYTE string1[] = "hello world";
printf("%s", string1);
This is valid if i use the internal eeprom (18F452).
What if i want to store the string to i2c external eeprom (24LC256)?
do I ... |
Topic: sin() and cos() consume too much of resource |
janet
Replies: 9
Views: 11910
|
Forum: General CCS C Discussion Posted: Tue Mar 16, 2004 10:09 am Subject: sin() and cos() consume too much of resource |
Hi, i have tested the routine u gave me ^_^
signed int16 result;
signed int16 x = 0;
while(1) {
printf("sine %ld = %ld \r\n", x, sin(x));
x= x +4 ... |
Topic: How to append new value at the beginning of string? |
janet
Replies: 1
Views: 8601
|
Forum: General CCS C Discussion Posted: Tue Mar 16, 2004 2:56 am Subject: How to append new value at the beginning of string? |
let's say
BYTE random_value;
BYTE random_string[10];
BYTE data_string[] = "";
for (i = 0; i < 10; i++) {
random_value = rand();
sp ... |
Topic: sin() and cos() consume too much of resource |
janet
Replies: 9
Views: 11910
|
Forum: General CCS C Discussion Posted: Tue Mar 16, 2004 2:56 am Subject: sin() and cos() consume too much of resource |
Thanks! |
Topic: How to push the first value to the end of the string |
janet
Replies: 1
Views: 8565
|
Forum: General CCS C Discussion Posted: Tue Mar 16, 2004 1:32 am Subject: How to push the first value to the end of the string |
let's say
BYTE random_value;
BYTE random_string[10];
BYTE data_string[] = "";
for (i = 0; i < 10; i++) {
random_value = rand();
sp ... |
Topic: sin() and cos() consume too much of resource |
janet
Replies: 9
Views: 11910
|
Forum: General CCS C Discussion Posted: Tue Mar 16, 2004 12:45 am Subject: sin() and cos() consume too much of resource |
sin() and cos() in math.h consume too much of resources.
these function return 32-bit float type. Do we have another alternative to get sin()/cos() value? precision is not of my priority. I am look ... |
Topic: How to make an upcall? |
janet
Replies: 1
Views: 8942
|
Forum: General CCS C Discussion Posted: Fri Mar 12, 2004 8:48 pm Subject: How to make an upcall? |
Hi,
I wish to know the concept of upcall-ing, how it works and some examples. Please kindly let me know how to do it or point me to relevant tutorial web site (i couldn't find any tutorial about up ... |
Topic: How to connect 2 PIC using RS232? |
janet
Replies: 3
Views: 13865
|
Forum: General CCS C Discussion Posted: Fri Mar 12, 2004 2:33 am Subject: How to connect 2 PIC using RS232? |
i have read the example, but, which is pin RDA?
i m using pic16f877 and pic18f452 |
|