Author |
Message |
Topic: Warning#207 Code has no effect |
zzeroo
Replies: 6
Views: 11680
|
Forum: General CCS C Discussion Posted: Wed Jul 09, 2014 8:08 am Subject: Warning#207 Code has no effect |
Great explanation, thank you all.
This was exactly what I was looking for. As you can see in my Posts counter I'm just in the warm up phase with C |
Topic: Warning#207 Code has no effect |
zzeroo
Replies: 6
Views: 11680
|
Forum: General CCS C Discussion Posted: Wed Jul 09, 2014 2:14 am Subject: Warning#207 Code has no effect |
OK that was my mistake. I actually wanted to ask why the compiler outputs the warning?
Here is my Code of Question, this time it does something!
#include <18f26k22.h>
void main() ... |
Topic: Warning#207 Code has no effect |
zzeroo
Replies: 6
Views: 11680
|
Forum: General CCS C Discussion Posted: Wed Jul 09, 2014 1:06 am Subject: Warning#207 Code has no effect |
What is wrong with this piece of code? Apart from that, the code really does nothing
I get this <strikethrough>error</strikethrough> warning:
Warning#207 Code has no effect
#in ... |
Topic: 4x5 LED Matrix with 8bit shift registers PCH/PIC18F26K22 |
zzeroo
Replies: 8
Views: 12068
|
Forum: General CCS C Discussion Posted: Tue Jun 24, 2014 7:27 am Subject: 4x5 LED Matrix with 8bit shift registers PCH/PIC18F26K22 |
Thank you all. This is my first solution. What do you think about?
// Device header
#include <18F26K22.h>
#FUSES NOWDT //No Watch Dog Timer
#use delay(clock=110520 ... |
Topic: 4x5 LED Matrix with 8bit shift registers PCH/PIC18F26K22 |
zzeroo
Replies: 8
Views: 12068
|
Forum: General CCS C Discussion Posted: Tue Jun 24, 2014 6:01 am Subject: 4x5 LED Matrix with 8bit shift registers PCH/PIC18F26K22 |
I assume you have a typo, please confirm your shift register is a 74594.
I am confused by you calling your display a 4*5 matrix.
It seems your LEDs are wired as a 20*1 linear network.
Using the C ... |
Topic: 4x5 LED Matrix with 8bit shift registers PCH/PIC18F26K22 |
zzeroo
Replies: 8
Views: 12068
|
Forum: General CCS C Discussion Posted: Tue Jun 24, 2014 5:14 am Subject: 4x5 LED Matrix with 8bit shift registers PCH/PIC18F26K22 |
Can you please supply a good link to the datasheet for the 74954 shift registers you're using? Google didn't find anything !
tks
jay
http://www.nxp.com/documents/data_sheet/74HC_HCT594.pdf
S ... |
Topic: 4x5 LED Matrix with 8bit shift registers PCH/PIC18F26K22 |
zzeroo
Replies: 8
Views: 12068
|
Forum: General CCS C Discussion Posted: Tue Jun 24, 2014 4:55 am Subject: Re: 4x5 LED Matrix with 8bit shift registers |
Here is a gcc version how I think it could work. But the 24 bit datatype doesn't fit in my PCH
#include <stdio.h>
struct LEDBuffer {
int bits :24;
};
void LED(int ... |
Topic: 4x5 LED Matrix with 8bit shift registers PCH/PIC18F26K22 |
zzeroo
Replies: 8
Views: 12068
|
Forum: General CCS C Discussion Posted: Tue Jun 24, 2014 3:57 am Subject: 4x5 LED Matrix with 8bit shift registers PCH/PIC18F26K22 |
Hello,
I'm looking for ideas for a fitting data model for the following problem.
I have a 4 colum, 5 row led matrix. They are connected via three 8bit 74HCT594 shift registers. The last 4 ports ... |
Topic: [solved] modbus_phy_layer_rtu.c Error#44 ... |
zzeroo
Replies: 14
Views: 26693
|
Forum: General CCS C Discussion Posted: Fri Nov 01, 2013 1:03 am Subject: [solved] modbus_phy_layer_rtu.c Error#44 ... |
Oh man, I would have also come to it themselves.
Thank you Ttelmah, the tip with the separator was it. For all who fall also into that trap here a small "click-path" to change the decimal ... |
Topic: [solved] modbus_phy_layer_rtu.c Error#44 ... |
zzeroo
Replies: 14
Views: 26693
|
Forum: General CCS C Discussion Posted: Thu Oct 31, 2013 5:54 am Subject: [solved] modbus_phy_layer_rtu.c Error#44 ... |
Oh man I'm so sorry. I had this morning not included the modbus.c file and because that no error.
I've tried many different workstation this day, completely new installed CCS5.012 and CCS4. ... |
Topic: [solved] modbus_phy_layer_rtu.c Error#44 ... |
zzeroo
Replies: 14
Views: 26693
|
Forum: General CCS C Discussion Posted: Thu Oct 31, 2013 12:26 am Subject: [solved] modbus_phy_layer_rtu.c Error#44 ... |
Uff andWTF!
Problem solved, thank you Ttelmah. But it must further investigate how and why this was happen.
I deleted the whole PICC directory. After that I run the setup ag ... |
Topic: [solved] modbus_phy_layer_rtu.c Error#44 ... |
zzeroo
Replies: 14
Views: 26693
|
Forum: General CCS C Discussion Posted: Wed Oct 30, 2013 10:26 am Subject: [solved] modbus_phy_layer_rtu.c Error#44 ... |
No, I created a new empty project and compile without any luck
http://imageshack.us/a/img820/8522/tclc.png |
Topic: [solved] modbus_phy_layer_rtu.c Error#44 ... |
zzeroo
Replies: 14
Views: 26693
|
Forum: General CCS C Discussion Posted: Wed Oct 30, 2013 7:35 am Subject: [solved] modbus_phy_layer_rtu.c Error#44 ... |
Hi,
I try to compile the Modbus Slave example ex_modbus_slave.c from the Examples dir. But everytime I run into the error "modbus_phy_layer_rtu.c:25:9: Error#44 Internal Error - Contact CCS ... |
Topic: Pointer to array of chars |
zzeroo
Replies: 1
Views: 3726
|
Forum: General CCS C Discussion Posted: Fri Oct 18, 2013 9:01 am Subject: Pointer to array of chars |
Hi, I do not found a CCS valid solution for this problem. The following code are from a arduino library that I try to port for my PIC18.
I've a array of chars like this one
const unsigned char T ... |
Topic: [solved] PIC18f26k22 Timeout? Limited execution time? |
zzeroo
Replies: 5
Views: 8416
|
Forum: General CCS C Discussion Posted: Thu Oct 10, 2013 7:44 am Subject: [solved] PIC18f26k22 Timeout? Limited execution time? |
memset(dispram, 0, sizeof(dispram));
Faster and shorter thanks Ttelmah.
@RF_Developer: That's clear. This was just a example to show my question. And not a "look my nifty skills!"- ... |
|