Author |
Message |
Topic: RS232 with 7bits communication |
hillcraft
Replies: 10
Views: 14526
|
Forum: General CCS C Discussion Posted: Tue Jul 31, 2007 11:03 am Subject: Confused? |
void putcwithparity(int8 val){
int8 bitcount=0,ctr;
for(c=0;ctr<7;ctr++) if (bit_test(val,ctr)) bitcount++;
//here 'bitcount', is the number of ... |
Topic: Math issue |
hillcraft
Replies: 5
Views: 5608
|
Forum: General CCS C Discussion Posted: Wed Mar 14, 2007 9:43 am Subject: (int16) |
Fair enough. I did not realize that by not using (int16) that I would get an error on only one digit if that digit is bigger than 2.
What about the folliwng X 0.1, 0.01, 0.001, 0.0001
This is w ... |
Topic: Math issue |
hillcraft
Replies: 5
Views: 5608
|
Forum: General CCS C Discussion Posted: Wed Mar 14, 2007 8:45 am Subject: Ronald- Cured |
Hi Ronald,
Thanks, the problem is now cured. |
Topic: Buying USB Bootloader code |
hillcraft
Replies: 0
Views: 2823
|
Forum: General CCS C Discussion Posted: Wed Mar 14, 2007 8:36 am Subject: Buying USB Bootloader code |
I need to purchase PIC side and PC side CODE for a USB bootloader. The loader would ideally be able to load an encrypted file into a 18F2550 and 18f4550. The PC side can be written in Delphi 7 or VC2 ... |
Topic: Math issue |
hillcraft
Replies: 5
Views: 5608
|
Forum: General CCS C Discussion Posted: Wed Mar 14, 2007 8:06 am Subject: Math issue |
When the value of m3 is multiplied by 100 before being added to the variable then strange things happen under certain circumstances. If the value of m3 = 2 then it is ok but if the value of m3 is 3 th ... |
Topic: USB Device Not Enumerated |
hillcraft
Replies: 4
Views: 6119
|
Forum: General CCS C Discussion Posted: Tue Jun 13, 2006 6:18 am Subject: Has it ever worked? |
Did it work when you bought it and plugged it in the first time? The reason I ask this is that the PICDEM FS is configured for high speed operation off the shelf. It won't work on a USB 1.1 port strai ... |
Topic: Enabling and disabling #USE RS232 ... |
hillcraft
Replies: 5
Views: 6885
|
Forum: General CCS C Discussion Posted: Fri May 26, 2006 1:38 pm Subject: Enabling and disabling #USE RS232 ... |
Ah, of course.
I will try it in the morning.
Thanx. |
Topic: Enabling and disabling #USE RS232 ... |
hillcraft
Replies: 5
Views: 6885
|
Forum: General CCS C Discussion Posted: Fri May 26, 2006 7:43 am Subject: Enabling and disabling #USE RS232 ... |
Let me clarify the problem:
I have the following:
18F2550, running USB and RS232 via the standard UART.
I now have data coming in via pin B1. B1 is configured to interrupt on L_H. This informat ... |
Topic: Enabling and disabling #USE RS232 ... |
hillcraft
Replies: 5
Views: 6885
|
Forum: General CCS C Discussion Posted: Fri May 26, 2006 6:18 am Subject: Enabling and disabling #USE RS232 ... |
I need to sense a non-uart pin. The data may be 19200 8N1 or it may be a completely different pulse train.
I can use #use RS232 to test the pin initially to see if the data is RS232 data, but...
... |
Topic: Decompicating an array |
hillcraft
Replies: 12
Views: 11885
|
Forum: General CCS C Discussion Posted: Wed May 24, 2006 7:09 am Subject: Sorted |
Thanks, I live and learn... |
Topic: Decompicating an array |
hillcraft
Replies: 12
Views: 11885
|
Forum: General CCS C Discussion Posted: Wed May 24, 2006 1:50 am Subject: I'm still stumped |
This code:
int8 arr_usb_data_out_raw[8];
int8 arr_usb_data_out[8];
int8 arr_usb_data_in[8];
int8 arr_usb_data_compare[8];
strcpy(arr_usb_data_ ... |
Topic: Decompicating an array |
hillcraft
Replies: 12
Views: 11885
|
Forum: General CCS C Discussion Posted: Tue May 23, 2006 9:27 am Subject: Decompicating an array |
No it s not a constant array. I create a 8 element empty array that I then need to reuse throughout the program. |
Topic: Decompicating an array |
hillcraft
Replies: 12
Views: 11885
|
Forum: General CCS C Discussion Posted: Tue May 23, 2006 9:03 am Subject: This doesn't seem to work! |
The input data is definitely the same
arr_usb_data_compare[0] = (0x03,0x72,0x65,0x73,0x65,0x74,0x00,0x00);
if (memcmp( ... |
Topic: Decompicating an array |
hillcraft
Replies: 12
Views: 11885
|
Forum: General CCS C Discussion Posted: Tue May 23, 2006 8:21 am Subject: Decompicating an array |
Can I do the following:
int8 arr_usb_data_compare[8]
arr_usb_data_compare[0] = (0x03,0x72,0x65,0x65,0x65,0x74,0x00,0x00);
if (memcmp(arr_usb_data_compare,arr ... |
Topic: Decompicating an array |
hillcraft
Replies: 12
Views: 11885
|
Forum: General CCS C Discussion Posted: Tue May 23, 2006 8:13 am Subject: Decompicating an array |
What I can't figure out is how to stick the hex characters together to be used in the comparison . I cannot use the ascii equavalents becase of 03 etc |
|