Author |
Message |
Topic: Store 9x10bit ADC value in an effecient way |
jani20
Replies: 4
Views: 5054
|
Forum: General CCS C Discussion Posted: Thu Jun 14, 2007 5:02 am Subject: Store 9x10bit ADC value in an effecient way |
Thank you! I'll try it out. |
Topic: Store 9x10bit ADC value in an effecient way |
jani20
Replies: 4
Views: 5054
|
Forum: General CCS C Discussion Posted: Wed Jun 13, 2007 10:05 am Subject: Store 9x10bit ADC value in an effecient way |
I need smaller packet because I cant exceed the servo T period time
20mS-2-> worst case I have 18mS to receive the data do the CRC check and process the data.
And its hard to find cheap TX/RX 4 ... |
Topic: Store 9x10bit ADC value in an effecient way |
jani20
Replies: 4
Views: 5054
|
Forum: General CCS C Discussion Posted: Wed Jun 13, 2007 12:47 am Subject: Store 9x10bit ADC value in an effecient way |
My project is to read 9 piece of 10bit ADC value (from PIC16F690)
Store it, and send out to another PIC (HUART->RF TX module)
Then receive it (RF RX module->HUART) and store it in the same way ... |
Topic: What will happen if adc channel exceed Vref? |
jani20
Replies: 8
Views: 9100
|
Forum: General CCS C Discussion Posted: Sat May 19, 2007 1:17 am Subject: What will happen if adc channel exceed Vref? |
And if I add some CAPs (exp:3x100nF) to the Vref pin after the voltage divider, can I get a low impedance source for the Vref pin?
The AN546 contains a table which shows the Vref sampling time
wit ... |
Topic: What will happen if adc channel exceed Vref? |
jani20
Replies: 8
Views: 9100
|
Forum: General CCS C Discussion Posted: Thu May 17, 2007 7:22 am Subject: What will happen if adc channel exceed Vref? |
Thank you for your detailed answer!
Can I make a unity gain buffer from a transistor?
Or I must use an OPA? |
Topic: What will happen if adc channel exceed Vref? |
jani20
Replies: 8
Views: 9100
|
Forum: General CCS C Discussion Posted: Tue May 15, 2007 12:10 pm Subject: What will happen if adc channel exceed Vref? |
Thank you!
The Vref will be divided from the Vcc:) |
Topic: What will happen if adc channel exceed Vref? |
jani20
Replies: 8
Views: 9100
|
Forum: General CCS C Discussion Posted: Tue May 15, 2007 11:08 am Subject: What will happen if adc channel exceed Vref? |
What will happen if adc channel exceed Vref?
What value will the adc read return?
Thank you! |
Topic: Controlling MAX7311 I2C port extender |
jani20
Replies: 0
Views: 2330
|
Forum: General CCS C Discussion Posted: Sun May 13, 2007 3:57 am Subject: Controlling MAX7311 I2C port extender |
I want to set MAX7311's 16pins to input, read the pins values to
port1, port2 byte variables, then set MAX7311's pins to output
and send out these 2 variable in reverse order: port2,port1.
I2C cont ... |
Topic: How to reference a bit in an int16 array? |
jani20
Replies: 10
Views: 13133
|
Forum: General CCS C Discussion Posted: Thu Nov 16, 2006 9:08 am Subject: How to reference a bit in an int16 array? |
Thats is, the bit_test function!!!!
I miss that out in the manual:(
But now I can do everything with this function and a pointer :D
Thank you very much! |
Topic: How to reference a bit in an int16 array? |
jani20
Replies: 10
Views: 13133
|
Forum: General CCS C Discussion Posted: Wed Nov 15, 2006 11:29 am Subject: How to reference a bit in an int16 array? |
Ok. Can you give some advice about how can I find more info about your C macro? Im just interested in the bit read line.
Is there any similar code explained in some documents, or online?
I searched ... |
Topic: How to reference a bit in an int16 array? |
jani20
Replies: 10
Views: 13133
|
Forum: General CCS C Discussion Posted: Wed Nov 15, 2006 12:53 am Subject: How to reference a bit in an int16 array? |
Is there anyway to freely align an 8bit size pointer?
(bit aligned instead of byte?) (maybe in assembly?)
If this is possible some how than I could copy the 10bits
with 2 8bit pointer (overlaped ea ... |
Topic: How to reference a bit in an int16 array? |
jani20
Replies: 10
Views: 13133
|
Forum: General CCS C Discussion Posted: Tue Nov 14, 2006 11:29 am Subject: How to reference a bit in an int16 array? |
I tried to dived the 10bit to an 8bit pointer, and 2 one bit pointer.
But its says that pointing to a bit is not permitted:(
Your first code is a bit comlicated to me.
And the speed is also impor ... |
Topic: How to reference a bit in an int16 array? |
jani20
Replies: 10
Views: 13133
|
Forum: General CCS C Discussion Posted: Tue Nov 14, 2006 10:23 am Subject: How to reference a bit in an int16 array? |
Thanks!
But isnt that simplier when I make a bit array?
like this:
int1 Myarray[48]
There is a 10bit ADC value in this 48 bit Myarray.
And I want to save out this 10 bits to an ... |
Topic: How to reference a bit in an int16 array? |
jani20
Replies: 10
Views: 13133
|
Forum: General CCS C Discussion Posted: Tue Nov 14, 2006 9:45 am Subject: How to reference a bit in an int16 array? |
Hello!
Pls help me to reference a bit in an int16 array.
Like in PIC Basic.
MyArray var word[5]
MyArray.0(43)=1
Thank you! |
|