Author |
Message |
Topic: fprintf to a text file |
tepes
Replies: 6
Views: 9752
|
Forum: General CCS C Discussion Posted: Wed Jun 06, 2012 3:40 am Subject: fprintf to a text file |
Thank you all for your help! |
Topic: fprintf to a text file |
tepes
Replies: 6
Views: 9752
|
Forum: General CCS C Discussion Posted: Tue Jun 05, 2012 1:10 am Subject: fprintf to a text file |
I needed the .txt file to be on a computer and to fprint in to it by using RS232! But instead I print the data to hyper terminal now, and then I copy the data to a .txt file and then I use a C++ progr ... |
Topic: fprintf to a text file |
tepes
Replies: 6
Views: 9752
|
Forum: General CCS C Discussion Posted: Mon Jun 04, 2012 7:15 am Subject: fprintf to a text file |
can anyone give me an example of how to to print the data from the PIC in to a text file? something like bellow...
FILE * pFile;
.....
pFile = fopen ("myfile.txt","w" ... |
Topic: PIC 24HJ ADC sampling at 150khz+ |
tepes
Replies: 8
Views: 11994
|
Forum: General CCS C Discussion Posted: Mon May 07, 2012 1:09 am Subject: PIC 24HJ ADC sampling at 150khz+ |
I am determined to learn PIC programming and I know this will be a long journey!
Regarding my homework I try to do it but sometimes even if I do my best with it, there is something missing and for so ... |
Topic: PIC 24HJ ADC sampling at 150khz+ |
tepes
Replies: 8
Views: 11994
|
Forum: General CCS C Discussion Posted: Wed May 02, 2012 2:32 am Subject: PIC 24HJ ADC sampling at 150khz+ |
I had tried different variations based on the code but since I use these fuses setting I get nothing printed!
#FUSES FRC_PLL,NOWDT,NOBSS, NOIESO, NOCKSFSM, NOPROTECT, NOJTAG
//#fuses HS,NOWDT,no ... |
Topic: PIC 24HJ ADC sampling at 150khz+ |
tepes
Replies: 8
Views: 11994
|
Forum: General CCS C Discussion Posted: Fri Apr 27, 2012 9:10 am Subject: PIC 24HJ ADC sampling at 150khz+ |
It still does not work! There is something I don't do it right! I tried to do something based on your example but I don't get to any result!
#if !defined(__PCD__)
#error This example will ... |
Topic: PIC 24HJ ADC sampling at 150khz+ |
tepes
Replies: 8
Views: 11994
|
Forum: General CCS C Discussion Posted: Fri Apr 27, 2012 5:01 am Subject: PIC 24HJ ADC sampling at 150khz+ |
Yes,you are right I did not understood your advices! I have problems in understanding the PIC programming, and the documentation from CCS is maybe helpful for those who have the basic notions of PIC p ... |
Topic: PIC 24HJ ADC sampling at 150khz+ |
tepes
Replies: 8
Views: 11994
|
Forum: General CCS C Discussion Posted: Thu Apr 26, 2012 4:03 am Subject: PIC 24HJ ADC sampling at 150khz+ |
I tried to follow your instructions but I had no success! At this point I do not get any value printed...
Can you see what am I doing wrong?
Timer3 calls for INT_ADC1 every 150us (3k at this poi ... |
Topic: PIC 24HJ ADC sampling at 150khz+ |
tepes
Replies: 8
Views: 11994
|
Forum: General CCS C Discussion Posted: Wed Apr 25, 2012 9:10 am Subject: PIC 24HJ ADC sampling at 150khz+ |
Hello!
I need to sample a signal at a frequency above 150khz! I Use a pic 24hj but with the code I have until now I can not go above 40khz! Can anyone please help me?
#if !defined(__PCD__& ... |
Topic: PIC24HJ128 Invalid Pre-Processor directive Invalid Pin |
tepes
Replies: 8
Views: 12777
|
Forum: General CCS C Discussion Posted: Tue Feb 28, 2012 2:15 am Subject: PIC24HJ128 Invalid Pre-Processor directive Invalid Pin |
Sorry for the confusion! I use CCS PCD C Compiler, Version 4.084! So it looks like this is the problem! I did not realise that this CCS version is that old...but it looks like you all use 4.099+
Once ... |
Topic: PIC24HJ128 Invalid Pre-Processor directive Invalid Pin |
tepes
Replies: 8
Views: 12777
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2012 2:45 am Subject: PIC24HJ128 Invalid Pre-Processor directive Invalid Pin |
First off all I would like to thank you for your answers! I will try to use them in order to solve my problem!
I am using MPLAB version 8.80!
One more thing: when i comand the pins like this:
... |
Topic: PIC24HJ128 Invalid Pre-Processor directive Invalid Pin |
tepes
Replies: 8
Views: 12777
|
Forum: General CCS C Discussion Posted: Fri Feb 24, 2012 10:13 am Subject: PIC24HJ128 Invalid Pre-Processor directive Invalid Pin |
I use GP504 and I dont have the IDE...
I have defined in the .h other pins for ex. PIN_A0 to PIN_A8 and I get no error when using them...Like I said, I get this error just for pins C8 and C9!
Than ... |
Topic: PIC24HJ128 Invalid Pre-Processor directive Invalid Pin |
tepes
Replies: 8
Views: 12777
|
Forum: General CCS C Discussion Posted: Fri Feb 24, 2012 9:24 am Subject: PIC24HJ128 Invalid Pre-Processor directive Invalid Pin |
Hello everybody!
I want to use pins C9 and C8 for communication but I am geting this eror: Invalid Pre-Processor directive Invalid Pin (chip)!
I get no eror if I use different pins!
In the .h ... |
Topic: Sampling a signal at a given frequency |
tepes
Replies: 10
Views: 18932
|
Forum: General CCS C Discussion Posted: Tue Feb 21, 2012 5:09 am Subject: Sampling a signal at a given frequency |
Once again, thank you Ttelmah!
I have tested the code and it works! I get a maximum sampling freguency of 15khz! In the future I will use a better PIC! Your example helped me understand the basics of ... |
Topic: Sampling a signal at a given frequency |
tepes
Replies: 10
Views: 18932
|
Forum: General CCS C Discussion Posted: Fri Feb 17, 2012 5:25 am Subject: Sampling a signal at a given frequency |
Thank you so very much Ttelmah!
I will test it and tell you how it works! |
|