Author |
Message |
Topic: Convert search string that points to a constant into CCS |
kutkm_ti
Replies: 2
Views: 3906
|
Forum: General CCS C Discussion Posted: Mon Dec 26, 2011 10:07 pm Subject: Convert search string that points to a constant into CCS |
thank you very much, now i can compile my own code! |
Topic: Convert search string that points to a constant into CCS |
kutkm_ti
Replies: 2
Views: 3906
|
Forum: General CCS C Discussion Posted: Mon Dec 26, 2011 1:42 am Subject: Convert search string that points to a constant into CCS |
Hi, below is AVR code, but I got problem to modify into CCS code.
The problem is this line, I don't know how to convert, can anyone help?
const unsigned char *searchStrings[4] = {OK, ... |
Topic: need help DsPIC33FJ clock out, or PWM out |
kutkm_ti
Replies: 1
Views: 4426
|
Forum: General CCS C Discussion Posted: Wed Mar 02, 2011 3:00 am Subject: need help DsPIC33FJ clock out, or PWM out |
Need help DsPIC33FJ128GP802 clock out, or PWM out.
I'm new to DsPIC33F, now I modify SD card wav player from http://koonlab.com/UltimateSource.html
But I want to change the DsPIC to 28pin DsPIC3 ... |
Topic: serial comm help |
kutkm_ti
Replies: 11
Views: 9871
|
Forum: General CCS C Discussion Posted: Mon Jul 23, 2007 6:57 pm Subject: serial comm help |
8 bit hex will represent 2 digits of base 16. Assuming the Most significant digit is first then the 8 bits has MS*16+LS as its binary value 0..255. This is exactly the distance value you want. However ... |
Topic: input and output on the same pic pin ? |
kutkm_ti
Replies: 2
Views: 5075
|
Forum: General CCS C Discussion Posted: Mon Jul 23, 2007 6:52 pm Subject: input and output on the same pic pin ? |
now i face a problem,
i no have any extra pin, so i need to drive a 7 segment led(commom anod) and at the same time, i need input for a push button,
tell me how to do...
any suggestion about w ... |
Topic: serial comm help |
kutkm_ti
Replies: 11
Views: 9871
|
Forum: General CCS C Discussion Posted: Thu Jul 19, 2007 10:49 pm Subject: serial comm help |
the sensor is ultrasonic sencor, to detect distance
the sensor will output [8bit hex][invert of the8 bit hex][\r]
8 bit hex is from 0-255 based on distance (from x cm to x meter).
we dont use ... |
Topic: serial comm help |
kutkm_ti
Replies: 11
Views: 9871
|
Forum: General CCS C Discussion Posted: Thu Jul 19, 2007 10:24 pm Subject: serial comm help |
oic,
my method is like below, no tested yet
#INT_RDA
void serial_isr()
{
inbuff[i] = getc();
if (inbuff[i])==("\r"){i=0;}// if seem "\r" (last byte) then begin ... |
Topic: serial comm help |
kutkm_ti
Replies: 11
Views: 9871
|
Forum: General CCS C Discussion Posted: Thu Jul 19, 2007 10:00 pm Subject: serial comm help |
but as i know, the getchar function will convert the hex to ascii
No it won't. It returns the exact value that was sent.
that means i can get the value directly like:
[8bit hex] [invert o ... |
Topic: serial comm help |
kutkm_ti
Replies: 11
Views: 9871
|
Forum: General CCS C Discussion Posted: Thu Jul 19, 2007 9:04 pm Subject: serial comm help |
now i'm working on rs232, the main board and the sensor board.
the sensor board will send a 8bit hex (not ascii) to the main board continouly.
but as i know, the getchar function will convert th ... |
|