Author |
Message |
Topic: SOLVED pwm problem pic18f27k40 |
koenbielen
Replies: 5
Views: 17304
|
Forum: General CCS C Discussion Posted: Wed Jul 11, 2018 2:59 am Subject: SOLVED pwm problem pic18f27k40 |
Hi
My PWM output does not seem to work.
I checked with an oscilloscope.
COMPILER : 5.078
PIC : 18F27K40
If someone knows what I'm doing wrong... well help is appreciated.
#include <1 ... |
Topic: SOLVED : MPLAB IDE-X |
koenbielen
Replies: 1
Views: 8266
|
Forum: General CCS C Discussion Posted: Tue Jul 10, 2018 4:01 am Subject: SOLVED : MPLAB IDE-X |
hi,
im using mplab ide-x and see there is not a way to change the eeprom data.
it always returns to oxFF.
is there a way i can predefine eepromdata so when it compiles this eepromdata is set to t ... |
Topic: fprintf prints %u instead of variable |
koenbielen
Replies: 11
Views: 28006
|
Forum: General CCS C Discussion Posted: Thu Oct 06, 2016 8:02 am Subject: fprintf prints %u instead of variable |
Ok understand your info.
The RDA interrupt is exactly doing what you say,
It grabs the single byte from the buffer and stores it inside an array of data.
The data always has a start and stop char ... |
Topic: fprintf prints %u instead of variable |
koenbielen
Replies: 11
Views: 28006
|
Forum: General CCS C Discussion Posted: Thu Oct 06, 2016 4:57 am Subject: fprintf prints %u instead of variable |
OK thank you for this valuable information
I use this global on of interrupt a lot.
So i removed and am testing.
So is it ok to disable a timer interrupt like example below?
To make sure the s ... |
Topic: fprintf prints %u instead of variable |
koenbielen
Replies: 11
Views: 28006
|
Forum: General CCS C Discussion Posted: Thu Oct 06, 2016 2:52 am Subject: fprintf prints %u instead of variable |
OK
so this means this item is solved in new version of compiler?
I will check, double check and triple check my code.
And yes I use disable_interrupts(GLOBAL) and enable_interrupts(GLOBAL) i ... |
Topic: fprintf prints %u instead of variable |
koenbielen
Replies: 11
Views: 28006
|
Forum: General CCS C Discussion Posted: Thu Oct 06, 2016 1:08 am Subject: fprintf prints %u instead of variable |
CCS PCH C Compiler, Version 5.001, 3xxxx 06-okt-16 08:37
Filename: test.c
ROM used: 64362 bytes (98%)
Largest free fragment is 11 ... |
Topic: fprintf prints %u instead of variable |
koenbielen
Replies: 11
Views: 28006
|
Forum: General CCS C Discussion Posted: Wed Oct 05, 2016 11:07 am Subject: hi |
hi
Yes you are correct.
I gave less information, so here is more.
PIC : 18F26K22
compiler version : 4.134
You gave me a good hint about the STVREN its actually off.
I try again with this s ... |
Topic: fprintf prints %u instead of variable |
koenbielen
Replies: 11
Views: 28006
|
Forum: General CCS C Discussion Posted: Wed Oct 05, 2016 5:36 am Subject: fprintf prints %u instead of variable |
hi
In my code i have
fprintf(NETWERK,"<II PWM %u %Ld %d>", nPWMValueF, nPreviousPWMValue, nNumber);
data on serial port in good condition is:
II PWM 0 0 36
Sometim ... |
Topic: wizard problem |
koenbielen
Replies: 1
Views: 5456
|
Forum: General CCS C Discussion Posted: Thu Feb 19, 2015 6:28 am Subject: wizard problem |
hi
PcdWiz is giving me a message
Format string to long.
the Clock speed field is full of
20.000.000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ... |
Topic: #use rs232 |
koenbielen
Replies: 3
Views: 6783
|
Forum: General CCS C Discussion Posted: Tue Jul 08, 2014 3:29 am Subject: #use rs232 |
Hello
Thanks for fast reply but you misunderstood my post
The problem in have is that my pin is set to output with the
#use rs232(baud=38400.... code
But never can be set again as analog inpu ... |
Topic: #use rs232 |
koenbielen
Replies: 3
Views: 6783
|
Forum: General CCS C Discussion Posted: Tue Jul 08, 2014 2:37 am Subject: #use rs232 |
Hello
Im having troubles with a analog input and RS232
At startup i put
#use rs232(baud=38400,xmit=pin_b5,rcv=pin_a2,stream=EEPROMPORT)
im doing some checks on this port for 5 seconds.
I ... |
Topic: pic18F25K22 variable goes crazy |
koenbielen
Replies: 11
Views: 14507
|
Forum: General CCS C Discussion Posted: Tue Apr 15, 2014 12:47 am Subject: pic18F25K22 variable goes crazy |
it was a array error.
pointer out of scope...
So that was the issue |
Topic: pic18F25K22 variable goes crazy |
koenbielen
Replies: 11
Views: 14507
|
Forum: General CCS C Discussion Posted: Tue Apr 08, 2014 11:50 pm Subject: pic18F25K22 variable goes crazy |
I have added a printf to a serial port on all parts where the variable has been changed.
The problem still remains....
Once i put the function calls on top of the program....
problem gone...
... |
Topic: pic18F25K22 variable goes crazy |
koenbielen
Replies: 11
Views: 14507
|
Forum: General CCS C Discussion Posted: Tue Apr 08, 2014 12:15 am Subject: pic18F25K22 variable goes crazy |
Problem seems to be solved:
Placing my function calls above the declaration of the variables seems to remove the problem.
This gives a problem with the variable called in different subroutines:
... |
Topic: pic18F25K22 variable goes crazy |
koenbielen
Replies: 11
Views: 14507
|
Forum: General CCS C Discussion Posted: Mon Apr 07, 2014 9:22 am Subject: pic18F25K22 variable goes crazy |
Hi,
thanks for comments
Yes you are correct on delays in isr. it was just a sample i wanted to explain.
Strange thing is now that it is also happening on a 2nd variable
These variables are r ... |
|