Author |
Message |
Topic: Question regarding read_adc |
Billy9689
Replies: 11
Views: 24483
|
Forum: General CCS C Discussion Posted: Fri Dec 22, 2017 12:21 am Subject: Question regarding read_adc |
Quick question to PCM programmer: You suggest that I stored the result from make8 into a char array is not correct, right? So how about I do like code below?
void main (void)
{
lon ... |
Topic: Question regarding read_adc |
Billy9689
Replies: 11
Views: 24483
|
Forum: General CCS C Discussion Posted: Thu Dec 21, 2017 8:10 pm Subject: Question regarding read_adc |
Ya I know I have a steep learning curve. I try to consult some friends who are doing programming and they said so too. But this work is assign by my supervisor for my PhD. His idea was since my senior ... |
Topic: Question regarding read_adc |
Billy9689
Replies: 11
Views: 24483
|
Forum: General CCS C Discussion Posted: Wed Dec 20, 2017 7:00 am Subject: Question regarding read_adc |
A PIC with 6 ADC inputs could read all 6 pixels, thus faster.
6 ADC inputs here means 6 bits ADC? The pic I used is DSPIC33EP256MU806. According to the spec sheet it can go up to 12 bits.
Hone ... |
Topic: Question regarding read_adc |
Billy9689
Replies: 11
Views: 24483
|
Forum: General CCS C Discussion Posted: Wed Dec 20, 2017 6:14 am Subject: Question regarding read_adc |
Well the array are 40x120 pixel array. Previously in wired version, readout is done by a program, where it will scan each pixels in the first column, then proceed to second column and so on. All outpu ... |
Topic: Question regarding read_adc |
Billy9689
Replies: 11
Views: 24483
|
Forum: General CCS C Discussion Posted: Wed Dec 20, 2017 2:45 am Subject: Question regarding read_adc |
Hi guys. I would like to ask something about read_adc.
Lets say I want to read light intensity data from an array of pixel, say a 3x3 pixel array. From what I read about the read_adc function, it see ... |
Topic: Bluetooth not receiving data on UART |
Billy9689
Replies: 53
Views: 89593
|
Forum: General CCS C Discussion Posted: Mon Dec 18, 2017 6:21 am Subject: Bluetooth not receiving data on UART |
Somehow I think I catch what you trying to say Ttelmah. Did you mean that the string I displayed is actually "old" string. When while (bkbhit) is false the input_str will be 00 00 00 00 00 0 ... |
Topic: Bluetooth not receiving data on UART |
Billy9689
Replies: 53
Views: 89593
|
Forum: General CCS C Discussion Posted: Mon Dec 18, 2017 5:13 am Subject: Bluetooth not receiving data on UART |
But I thought that it will output 00 00 00 00 00 00 00 00 when bkbhit is false as i make input_str 0 at the end of the infinity while loop? |
Topic: Bluetooth not receiving data on UART |
Billy9689
Replies: 53
Views: 89593
|
Forum: General CCS C Discussion Posted: Mon Dec 18, 2017 2:49 am Subject: Bluetooth not receiving data on UART |
Hi guys I come back with more question
As I mentioned previously I wanted to try send my string which ia sandwiched between a self defined header and terminator. Then I can use strtok funct ... |
Topic: Bluetooth not receiving data on UART |
Billy9689
Replies: 53
Views: 89593
|
Forum: General CCS C Discussion Posted: Sat Dec 16, 2017 10:54 pm Subject: Bluetooth not receiving data on UART |
OK a quick question. Is that possible that I send a string of data that contain a self defined terminator, for example a "!" or 0x21 in hex (since I think the Bluetooth module is transmittin ... |
Topic: Bluetooth not receiving data on UART |
Billy9689
Replies: 53
Views: 89593
|
Forum: General CCS C Discussion Posted: Sat Dec 16, 2017 10:31 pm Subject: Bluetooth not receiving data on UART |
This is certainly many information after one day break. I'll try to digest it and come back if I have other problem. |
Topic: Bluetooth not receiving data on UART |
Billy9689
Replies: 53
Views: 89593
|
Forum: General CCS C Discussion Posted: Fri Dec 15, 2017 7:07 am Subject: Bluetooth not receiving data on UART |
First of all, ya its a typo. The one I key in should be 2314857a.
Second, the Bluetooth module only allows to transmit 8 bytes at once. So as the pattern goes, if I key in 2314857a it will output 00 ... |
Topic: Bluetooth not receiving data on UART |
Billy9689
Replies: 53
Views: 89593
|
Forum: General CCS C Discussion Posted: Fri Dec 15, 2017 5:51 am Subject: Bluetooth not receiving data on UART |
I tried with keeping INT_RDA all the time but the results are like what I describe previously. I can only get 94 00 00 00 00 00 00 00 (in hex) repeatably no matter what I inputted. I'm pretty sure thi ... |
Topic: Bluetooth not receiving data on UART |
Billy9689
Replies: 53
Views: 89593
|
Forum: General CCS C Discussion Posted: Fri Dec 15, 2017 2:30 am Subject: Bluetooth not receiving data on UART |
I replace the mtbuf with a fill buffer function and the results are still the same as previous. The code are listed below.
#include <33EP256MU806.h>
#device ADC=12
#use delay(crystal=8M ... |
Topic: Bluetooth not receiving data on UART |
Billy9689
Replies: 53
Views: 89593
|
Forum: General CCS C Discussion Posted: Wed Dec 13, 2017 2:05 am Subject: Bluetooth not receiving data on UART |
After days working on my code, I can somehow managed to capture the input from my smartphone and echoed it back, but i a weird manner using the code below:
#include <33EP256MU806.h>
#device ... |
Topic: Bluetooth not receiving data on UART |
Billy9689
Replies: 53
Views: 89593
|
Forum: General CCS C Discussion Posted: Fri Dec 08, 2017 6:49 am Subject: Bluetooth not receiving data on UART |
OK I'll try to explore the ZERO_RAM. next_in = next_out doesn't seems t work for me. On the other hand, I'll also try to play with the baud rate. Maybe that's a reason for me to receive some "gar ... |
|