Author |
Message |
Topic: General informations about sync a PIC with a video camera |
alimary158
Replies: 0
Views: 2504
|
Forum: General CCS C Discussion Posted: Wed Mar 21, 2012 7:41 am Subject: General informations about sync a PIC with a video camera |
Good evening to everyone,
I would like to gather infos whether it is possible or not to synchronize a camera video acquisition with a PIC. In particular I have developed a data logger using a PIC18 ... |
Topic: Creating multiple files in SD |
alimary158
Replies: 7
Views: 10955
|
Forum: General CCS C Discussion Posted: Sat Feb 11, 2012 4:59 am Subject: Back here |
From your suggestion i have created a simpler code where i decide to create TWO files. Each file is created when 120 samples are acquired.
SO i create first file, write 120 numbers (they are increme ... |
Topic: Creating multiple files in SD |
alimary158
Replies: 7
Views: 10955
|
Forum: General CCS C Discussion Posted: Wed Feb 08, 2012 7:11 am Subject: Creating multiple files in SD |
Thank you!
I mean that nothing is written that the file is blank. Just the file_0 is written while the others are all blank.
I will try now to type something simpler and see if it is working
... |
Topic: Creating multiple files in SD |
alimary158
Replies: 7
Views: 10955
|
Forum: General CCS C Discussion Posted: Wed Feb 08, 2012 2:57 am Subject: Creating multiple files in SD |
Good morning to everyone.
I am using a PIC18F46J50 and i have written a program for writing on SD using Brush Electronics libraries.
I have written a program to log data and opening a file, write ... |
Topic: circular buffer and adc |
alimary158
Replies: 2
Views: 7092
|
Forum: General CCS C Discussion Posted: Sun Jan 29, 2012 2:49 am Subject: circular buffer and adc |
Good morning,
I have wrote this code to read adc values from a sensor and using a circular buffer i want to write them on sd! I have managed to make the code working but it seems I'm missing somethin ... |
Topic: ring buffer and timers problem |
alimary158
Replies: 8
Views: 8359
|
Forum: General CCS C Discussion Posted: Fri Jan 27, 2012 1:03 pm Subject: ring buffer and timers problem |
Yes thats why i was trying to work out on the buffer implementation!
I even got a OpenLog product that directly works great to write data on sd but i was trying to implement my own code with the ring ... |
Topic: ring buffer and timers problem |
alimary158
Replies: 8
Views: 8359
|
Forum: General CCS C Discussion Posted: Fri Jan 27, 2012 12:37 pm Subject: ring buffer and timers problem |
This is a good idea you are giving me but in my project i need to sample the analogue signal of the pressure sensore at about 200Hz and i don't know if there is a setting for my pic18f46j50 to reach t ... |
Topic: ring buffer and timers problem |
alimary158
Replies: 8
Views: 8359
|
Forum: General CCS C Discussion Posted: Fri Jan 27, 2012 9:18 am Subject: ring buffer and timers problem |
hello,
sorry for my lack in giving you details! I am using PIC18F46J50
I'm really new in programming with pic so I'm finding lot of difficulties and I'm sorry if I post code with lots of mistakes! ... |
Topic: ring buffer and timers problem |
alimary158
Replies: 8
Views: 8359
|
Forum: General CCS C Discussion Posted: Fri Jan 27, 2012 7:41 am Subject: ring buffer and timers problem |
hello,
Thanks, where should I be putting a loop? |
Topic: ring buffer and timers problem |
alimary158
Replies: 8
Views: 8359
|
Forum: General CCS C Discussion Posted: Fri Jan 27, 2012 4:52 am Subject: ring buffer and timers problem |
Hello, i am trying to write on sd card using Brush Electronics library! The library works great as i already tried it with a simpler program!
I now was trying to use a circular buffer with the interr ... |
Topic: Sprintf error 114 |
alimary158
Replies: 5
Views: 6976
|
Forum: General CCS C Discussion Posted: Thu Jan 26, 2012 2:23 pm Subject: Sprintf error 114 |
Hello yes the problem was in the %d that i changed in %lu now this is working!
thank you so much |
Topic: Ring buffer writing on SD card |
alimary158
Replies: 3
Views: 7120
|
Forum: General CCS C Discussion Posted: Thu Jan 26, 2012 2:02 pm Subject: Ring buffer writing on SD card |
Hi yes the voltage and the hardware it is right since i checked it already! also the library is all right i have tried my setup by using a different code and writing a constant string on the file in ... |
Topic: Sprintf error 114 |
alimary158
Replies: 5
Views: 6976
|
Forum: General CCS C Discussion Posted: Thu Jan 26, 2012 12:17 pm Subject: Sprintf error 114 |
i have changed my code in this way:
Int16 dummy_value;
dummy_value=RxBaseADC[RxTailADC];
RxTailADC=(RxTailADC+1);
sprintf(pressure,"%d",dummy_value);
but the e ... |
Topic: Sprintf error 114 |
alimary158
Replies: 5
Views: 6976
|
Forum: General CCS C Discussion Posted: Thu Jan 26, 2012 11:32 am Subject: Sprintf error 114 |
Hello, i am using a command
sprintf(pressure,"Valore=%d\r\n",RxBaseADC
#include <PIATTAFORMA.h>
#ifndef DWORD
#define DWORD int32
#endif
#ifndef WORD
#define WORD int16
# ... |
Topic: Ring buffer writing on SD card |
alimary158
Replies: 3
Views: 7120
|
Forum: General CCS C Discussion Posted: Thu Jan 26, 2012 6:41 am Subject: Ring buffer writing on SD card |
Good evening,
I am using Brush electronics library for writing on sd card. The library works great but I am having issues in using a ring buffer in my code.
In my project I would like to have a Ti ... |
|