Author |
Message |
Topic: serial transmit data truncation 16F18855 |
dDelage
Replies: 25
Views: 16722
|
Forum: General CCS C Discussion Posted: Mon Feb 26, 2024 9:27 pm Subject: serial transmit data truncation 16F18855 |
...
You were handling the string incorrectly in two ways. The first is that
=, does not 'copy' a string. It will load the pointer on the left with the
contents of the pointer on the right. To 'c ... |
Topic: serial transmit data truncation 16F18855 |
dDelage
Replies: 25
Views: 16722
|
Forum: General CCS C Discussion Posted: Sun Feb 25, 2024 10:28 pm Subject: serial transmit data truncation 16F18855 |
OK.
...
Test code;
//#include "16F18855.H" //Trying two different chips
#include "16F18445.h"
#device PASS_STRINGS=IN_RAM
#FUSES NOWDT //make sure the watchdog is off
... |
Topic: serial transmit data truncation 16F18855 |
dDelage
Replies: 25
Views: 16722
|
Forum: General CCS C Discussion Posted: Sun Feb 25, 2024 10:05 pm Subject: serial transmit data truncation 16F18855 |
I downloaded & installed RealTerm, and the truncation is gone. whew!
But, as Clippy once told me, "Problems that go away by themselves can come back by themselves." I wanted to find ... |
Topic: serial transmit data truncation 16F18855 |
dDelage
Replies: 25
Views: 16722
|
Forum: General CCS C Discussion Posted: Sun Feb 25, 2024 2:25 pm Subject: serial transmit data truncation 16F18855 |
Well I'm confused, I was under the impression that you wrote the PC side,using Delphi, but you mention an 'app logging data to a file' ?
So ,to clarify,are you using software someone else wrote ?
... |
Topic: serial transmit data truncation 16F18855 |
dDelage
Replies: 25
Views: 16722
|
Forum: General CCS C Discussion Posted: Sat Feb 24, 2024 11:16 pm Subject: serial transmit data truncation 16F18855 |
There is no transmit buffer,
I think you have a receive issue in your monitoring software.
Since you are using Delphi, have it display the incoming data from the PIC.
Like Mr. T, I suspect your u ... |
Topic: serial transmit data truncation 16F18855 |
dDelage
Replies: 25
Views: 16722
|
Forum: General CCS C Discussion Posted: Fri Feb 23, 2024 10:15 pm Subject: serial transmit data truncation 16F18855 |
More testing.
The serial port monitoring software I'm using shows me that the string that gets truncated is 100 characters long. That's a strangely rounded number to be coincidence, so I removed 1 ... |
Topic: serial transmit data truncation 16F18855 |
dDelage
Replies: 25
Views: 16722
|
Forum: General CCS C Discussion Posted: Fri Feb 23, 2024 9:56 pm Subject: serial transmit data truncation 16F18855 |
How are you testing this?.
With the code modified as I show (so the proper way to load strings),
it works perfectly on the latest version of MPLAB, but does show a problem
on the previous release ... |
Topic: serial transmit data truncation 16F18855 |
dDelage
Replies: 25
Views: 16722
|
Forum: General CCS C Discussion Posted: Tue Feb 20, 2024 10:02 pm Subject: serial transmit data truncation 16F18855 |
Out of curiosity why do you think it will be beneficial here? I only see the one shared variable and it is atomic relative to the architecture. What is the disable_ints providing you? From my per ... |
Topic: serial transmit data truncation 16F18855 |
dDelage
Replies: 25
Views: 16722
|
Forum: General CCS C Discussion Posted: Mon Feb 19, 2024 8:52 pm Subject: serial transmit data truncation 16F18855 |
I'm puzzled what your three printf's have to do with anything?. The warning
happens without any of the code. Just the data declaration.
How are you displaying the output data from the serial? ... |
Topic: serial transmit data truncation 16F18855 |
dDelage
Replies: 25
Views: 16722
|
Forum: General CCS C Discussion Posted: Sun Feb 18, 2024 10:54 pm Subject: serial transmit data truncation 16F18855 |
I ran into a couple issues while trying to verify some code I had written. The code appears to work just fine, but I was looking for visual confirmation. Here is the bare minimum code to reproduce t ... |
Topic: RS-232 interrupt fails |
dDelage
Replies: 18
Views: 31260
|
Forum: General CCS C Discussion Posted: Fri Feb 16, 2024 8:20 pm Subject: RS-232 interrupt fails |
Thanks, all!
And also, thanks for not berating me for not reading the FAQs. I had done searches, but never noticed that FAQ link before.
I was amazed, but not surprised, to hear about gets() wait ... |
Topic: RS-232 interrupt fails |
dDelage
Replies: 18
Views: 31260
|
Forum: General CCS C Discussion Posted: Wed Feb 14, 2024 9:45 pm Subject: RS-232 interrupt fails |
Greetings, all. I am resurrecting this thread from a year and a half ago. I am the son of the OP. I'm picking this project up where he left off.
I see that after Dad got his answer and left the ... |
Topic: Timer0 not working |
dDelage
Replies: 5
Views: 14052
|
Forum: General CCS C Discussion Posted: Wed Nov 02, 2022 2:12 pm Subject: Timer0 not working |
Now that's embarrassing! 1K lines of code, adding a feature and forget a simple requirement. Been using PIC chips for 20 years! Too soon old, too late smart.
Thanks,
Dave |
Topic: Timer0 not working |
dDelage
Replies: 5
Views: 14052
|
Forum: General CCS C Discussion Posted: Wed Nov 02, 2022 11:18 am Subject: Timer0 not working |
#include <16F18855.H> //includes #device spec
#use delay (INTERNAL=4MHZ) //Says INTERNAL OSCILLATOR is 4MHz
#Int_Timer0
void Timer0Int () {
output_toggle( ... |
Topic: RS-232 interrupt fails |
dDelage
Replies: 18
Views: 31260
|
Forum: General CCS C Discussion Posted: Sun Oct 16, 2022 6:22 am Subject: RS-232 interrupt fails |
Thank you, thank you. I woke up this morning to a message that makes me feel so dumb, but happy! You made my day. On to the next! |
|