Author |
Message |
Topic: voltage measurement |
strsh
Replies: 5
Views: 3337
|
Forum: General CCS C Discussion Posted: Thu Aug 08, 2024 8:44 am Subject: voltage measurement |
Thanks for the answers.
I will take your suggestions into consideration and implement them into the project.
Once again, thank you. |
Topic: voltage measurement |
strsh
Replies: 5
Views: 3337
|
Forum: General CCS C Discussion Posted: Tue Aug 06, 2024 2:37 pm Subject: voltage measurement |
Thank you for the answer.
I followed the suggestions and corrected the code. I got a more accurate voltage measurement and reduced the oscillation of the measured voltage display.
Is it possible, an ... |
Topic: voltage measurement |
strsh
Replies: 5
Views: 3337
|
Forum: General CCS C Discussion Posted: Sun Aug 04, 2024 6:35 am Subject: voltage measurement |
Greeting,
I wrote a simple voltage measurement code with PIC 16F886 and PCWHD 5.112 compiler.
/* Voltmeter
*
* Created: uto mar 19 2024
* Processor: PIC16F886
* Compiler: CC ... |
Topic: About the range |
strsh
Replies: 2
Views: 10612
|
Forum: General CCS C Discussion Posted: Wed Jun 24, 2020 2:05 am Subject: About the range |
Thanks for your reply. I will accept the proposal.
Thank you. |
Topic: About the range |
strsh
Replies: 2
Views: 10612
|
Forum: General CCS C Discussion Posted: Wed Jun 24, 2020 1:42 am Subject: About the range |
Regards,
I have one quick question.
How to simplify the code?
if (error<=49 && error>=11) .....
The variable error should be in the range of 11 to 49 (11<=error=<4 ... |
Topic: Read letters from text |
strsh
Replies: 23
Views: 44601
|
Forum: General CCS C Discussion Posted: Tue Aug 13, 2019 2:45 pm Subject: Read letters from text |
That works too. But isn't it easier to write the correct reading location than to read the entire text each time?
If we can't solve the problem of typing in the correct location for reading the text, ... |
Topic: Read letters from text |
strsh
Replies: 23
Views: 44601
|
Forum: General CCS C Discussion Posted: Tue Aug 13, 2019 6:53 am Subject: Read letters from text |
Your code is fine and similar to my request but I have a problem with "walking" through the text file that is in the SD card. I was able to read the text from top to bottom and have informat ... |
Topic: Read letters from text |
strsh
Replies: 23
Views: 44601
|
Forum: General CCS C Discussion Posted: Mon Aug 12, 2019 11:23 am Subject: Read letters from text |
This is temporary. I ordered an SD card reader via Aliexpress so I will power PIC with 5V.
I think about it. I'll try.
Thank you. |
Topic: Read letters from text |
strsh
Replies: 23
Views: 44601
|
Forum: General CCS C Discussion Posted: Mon Aug 12, 2019 10:38 am Subject: Read letters from text |
You're right about the voltage. I see also the LF chip must be powered with a minimum of 4.2V for 48MHz?
I thought about that solution and I will try it tomorrow, but I would still try it another way ... |
Topic: Read letters from text |
strsh
Replies: 23
Views: 44601
|
Forum: General CCS C Discussion Posted: Mon Aug 12, 2019 8:38 am Subject: Read letters from text |
Greeting.
The code is fine, but the rest is wrong.
The whole story is to read a text file in an SD card and break it down into letters. I thought the code I wrote worked just fine but I have a probl ... |
Topic: Read letters from text |
strsh
Replies: 23
Views: 44601
|
Forum: General CCS C Discussion Posted: Sat Aug 10, 2019 9:25 am Subject: Read letters from text |
Thanks for the example. I'll try it on Monday and let you know if everything's okay.
Greeting. |
Topic: Read letters from text |
strsh
Replies: 23
Views: 44601
|
Forum: General CCS C Discussion Posted: Fri Aug 09, 2019 11:29 am Subject: Read letters from text |
I know what I'm looking for in the text, but it's important that I find it in a certain order and I'm sure nothing is skipped. I think the safest reading of the text is letter by letter (as we read it ... |
Topic: Read letters from text |
strsh
Replies: 23
Views: 44601
|
Forum: General CCS C Discussion Posted: Fri Aug 09, 2019 10:46 am Subject: Read letters from text |
I have this module (purchased via aliexpress) and have worked with it. If I include a USB connection, I'll use it. Thanks for the suggestion. But I still have a problem decomposing the text variable. ... |
Topic: Read letters from text |
strsh
Replies: 23
Views: 44601
|
Forum: General CCS C Discussion Posted: Fri Aug 09, 2019 9:38 am Subject: Read letters from text |
I know that the power supply is less than its minimum, but with that voltage I can read the SD card and read the text inside it into a variable called text. When I do the final version I will pay atte ... |
Topic: Read letters from text |
strsh
Replies: 23
Views: 44601
|
Forum: General CCS C Discussion Posted: Fri Aug 09, 2019 8:53 am Subject: Read letters from text |
My mistake. I put the code wrong. Crystal is an external 8MHz. I don't use USB but I read the SD card. It contains the file "cnc.txt" and the file contains text eg "123456789 etc". ... |
|