Author |
Message |
Topic: Version 4 Comments |
meepa123
Replies: 270
Views: 420319
|
Forum: General CCS C Discussion Posted: Wed Mar 21, 2007 5:48 pm Subject: Version 4 Comments |
Hello people. Found the bug finally.
3221 code:
.................... temp = y/8;
0248: RRCF x09,W
024A: MOVWF x0D
024C: RRCF x0D,F
024E: RRCF x0D,F
0250 ... |
Topic: Version 4 Comments |
meepa123
Replies: 270
Views: 420319
|
Forum: General CCS C Discussion Posted: Wed Mar 21, 2007 4:11 pm Subject: Version 4 Comments |
Look:
http://www.freewebs.com/meepa123/02%5Fmain%5F3221.LST
http://www.freewebs.com/meepa123/02%5Fmain%5F4023.LST
Could anybody compare both LSTs? The 3221 simulates OK but the 4023 doesn't g ... |
Topic: Version 4 Comments |
meepa123
Replies: 270
Views: 420319
|
Forum: General CCS C Discussion Posted: Tue Mar 20, 2007 4:48 pm Subject: Version 4 Comments |
Thanks for your answer!
But recompiling the code at a different compiler (3.221 rather than my 4.023) has brightened the causes. Definitely, IT IS a bug.
I've tried both compilations in a stand- ... |
Topic: Version 4 Comments |
meepa123
Replies: 270
Views: 420319
|
Forum: General CCS C Discussion Posted: Tue Mar 20, 2007 10:03 am Subject: Version 4 Comments |
I must add this, in order for you to understand better the conflictive part of the program...
....................
....................
.................... do
.................... { ... |
Topic: Version 4 Comments |
meepa123
Replies: 270
Views: 420319
|
Forum: General CCS C Discussion Posted: Tue Mar 20, 2007 5:38 am Subject: Version 4 Comments |
Mine must be compiler issue too. I'm working with a 128x64 lcd but at certain modes it doesn't work. It is not a hardware issue, as the proteus 6.9 simulator gives the same response.
a=0;
b=0;
... |
Topic: Function behaves differently... possible bug? ccs 4.023 |
meepa123
Replies: 5
Views: 6152
|
Forum: General CCS C Discussion Posted: Mon Mar 19, 2007 9:44 am Subject: Function behaves differently... possible bug? ccs 4.023 |
May this be bug?
b=20;
a=10;
do
{
glcd_pixel(a,b,ON);
a=a+1;
b=b+1;
}while(b!=30);
Does not plot anything
b=20;
a=10;
do
{
a=a+1;
b=b+1;
glcd_p ... |
Topic: Function behaves differently... possible bug? ccs 4.023 |
meepa123
Replies: 5
Views: 6152
|
Forum: General CCS C Discussion Posted: Mon Mar 19, 2007 6:43 am Subject: Function behaves differently... possible bug? ccs 4.023 |
Thanks!
Problem got solved a bit...
b=20;
a=10;
for(a=1;a<=20;++a)
{
glcd_pixel(a,b,ON);
}
now draws a perfect line, but
b=20;
a=10;
for(b ... |
Topic: Function behaves differently... possible bug? ccs 4.023 |
meepa123
Replies: 5
Views: 6152
|
Forum: General CCS C Discussion Posted: Mon Mar 19, 2007 5:49 am Subject: Function behaves differently... possible bug? ccs 4.023 |
Hello
I have a function that plots points at a graphical LCD 128x64. The interface is OK.
b=20;
a=10;
glcd_pixel(a,b,ON);
glcd_pixel(a*2,b*2,ON);
glcd_pixel(a*3,b* ... |
Topic: Trouble with I2C comm 18f452 (M) to 18f2550 (Sl) |
meepa123
Replies: 17
Views: 23787
|
Forum: General CCS C Discussion Posted: Mon Mar 12, 2007 12:06 pm Subject: Trouble with I2C comm 18f452 (M) to 18f2550 (Sl) |
18f2550 pinout-compatible devices, which suit the requirement of having hardware I2C on <B0>, have the same errata-set.
I can't afford getting into pic16 devices, as they don't suit my projec ... |
Topic: Trouble with I2C comm 18f452 (M) to 18f2550 (Sl) |
meepa123
Replies: 17
Views: 23787
|
Forum: General CCS C Discussion Posted: Mon Mar 12, 2007 11:51 am Subject: Trouble with I2C comm 18f452 (M) to 18f2550 (Sl) |
I can't give up with this PIC, as so much work would have been in vain. Nevertheless, your words are taken into account, and I'll think about it.
The slave's adress is 0xa0 , and the "conflict ... |
Topic: Trouble with I2C comm 18f452 (M) to 18f2550 (Sl) |
meepa123
Replies: 17
Views: 23787
|
Forum: General CCS C Discussion Posted: Mon Mar 12, 2007 11:09 am Subject: Trouble with I2C comm 18f452 (M) to 18f2550 (Sl) |
Hello
I have fresh news. The problem is more focused now. I've tried a different master pic (18f4680) but it still doesn't work. After checking everything out with a digital oscilloscope, i came to ... |
Topic: New I2C trouble, 18f4550 master versus 18f2550 slave. |
meepa123
Replies: 3
Views: 5050
|
Forum: General CCS C Discussion Posted: Sun Mar 04, 2007 6:48 pm Subject: New I2C trouble, 18f4550 master versus 18f2550 slave. |
Master: 18f4550 @48mhz / 20mhz xtal
#include <18f4550.h>
#fuses HS,PLL5,CPUDIV1,NOWDT,PUT,NOLVP
#use delay(clock=48000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
... |
Topic: Trouble with I2C comm 18f452 (M) to 18f2550 (Sl) |
meepa123
Replies: 17
Views: 23787
|
Forum: General CCS C Discussion Posted: Thu Mar 01, 2007 2:03 pm Subject: Trouble with I2C comm 18f452 (M) to 18f2550 (Sl) |
Hello once again. I made an i2c_slave driver, but still doesn't work the whole thing.
#if defined(__PCM__)
#include <16F877.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock= ... |
Topic: Trouble with I2C comm 18f452 (M) to 18f2550 (Sl) |
meepa123
Replies: 17
Views: 23787
|
Forum: General CCS C Discussion Posted: Thu Mar 01, 2007 11:15 am Subject: Trouble with I2C comm 18f452 (M) to 18f2550 (Sl) |
I didn't find anything at those links. Nevertheless... if i don't use "#use i2c", i can't use useful commands like i2c_isr_state, for example. That may be rather annoying.
Hasn't anyone t ... |
Topic: Trouble with I2C comm 18f452 (M) to 18f2550 (Sl) |
meepa123
Replies: 17
Views: 23787
|
Forum: General CCS C Discussion Posted: Wed Feb 28, 2007 4:09 pm Subject: Trouble with I2C comm 18f452 (M) to 18f2550 (Sl) |
Ok, thanks a lot.
One of the A3 erratas seems the most conflictive to me, as it mentions that there have been noticed some i2c troubles about it. The one concerning the TRISB and the LATB registers ... |
|