Author |
Message |
Topic: change the pointer from 8 bits to 16 bits |
sv_shady
Replies: 4
Views: 5453
|
Forum: General CCS C Discussion Posted: Wed Jun 25, 2008 2:29 am Subject: change the pointer from 8 bits to 16 bits |
The error has nothing to with the pointer. You cant declare such a huge array. This is more than 1MB... Look up into the datasheet how much RAM the MCU has and you must get in this limit. |
Topic: I2C - reading from slave problem |
sv_shady
Replies: 1
Views: 3935
|
Forum: General CCS C Discussion Posted: Sat Jun 21, 2008 2:44 am Subject: I2C - reading from slave problem |
Come on guys... I don't think that nobody can help me. After more testin I've found out that the SSPBUF register of the master i set with the value it is supposed to read, but the bit for transmission ... |
Topic: I2C - reading from slave problem |
sv_shady
Replies: 1
Views: 3935
|
Forum: General CCS C Discussion Posted: Sun Jun 15, 2008 4:31 am Subject: I2C - reading from slave problem |
Hi, this is probably my third topic on i2c problems... I have no problems with writing to slave, but now I have to read from slave and of course it doesn't work...
The master is PIC18F4620 and here ... |
Topic: using float64 and cos; sin; acos and asin |
sv_shady
Replies: 21
Views: 30592
|
Forum: General CCS C Discussion Posted: Mon Jun 02, 2008 1:44 am Subject: using float64 and cos; sin; acos and asin |
If the arguments for cos and sin are relatively small finite number why dont you do a look-up table ? |
Topic: PORT C problem on PIC18F2550 |
sv_shady
Replies: 9
Views: 19826
|
Forum: General CCS C Discussion Posted: Sun May 25, 2008 11:29 pm Subject: PORT C problem on PIC18F2550 |
Post your source, otherway we are just having a chat |
Topic: Strange thing with i2c |
sv_shady
Replies: 10
Views: 9922
|
Forum: General CCS C Discussion Posted: Sun May 25, 2008 7:57 am Subject: Strange thing with i2c |
Just in case someone else encounters the same problem, or is just curios what's the soluten I have slightly changed the interrupt routine:#int_SSP
void SSP_isr(void)
{
int incomi ... |
Topic: Strange thing with i2c |
sv_shady
Replies: 10
Views: 9922
|
Forum: General CCS C Discussion Posted: Sat May 24, 2008 1:37 am Subject: Strange thing with i2c |
I decided to test the problem more extensively. I have changed the slave address to 0xA0 and put all the received bytes into an array and this is the result:(137,130,160,137,129,160,137,130,160,0, ... |
Topic: Strange thing with i2c |
sv_shady
Replies: 10
Views: 9922
|
Forum: General CCS C Discussion Posted: Sat May 24, 2008 1:34 am Subject: Strange thing with i2c |
I decided to test the problem more extensively. I have changed the slave address to 0xA0 and put all the received bytes into an array and this is the result:(137,130,160,137,129,160,137,130,160,0, ... |
Topic: Strange thing with i2c |
sv_shady
Replies: 10
Views: 9922
|
Forum: General CCS C Discussion Posted: Fri May 23, 2008 4:17 pm Subject: Strange thing with i2c |
Excuse me for the delay, but I had some problems...this routine
#int_SSP
void SSP_isr(void)
{
int incoming, state;
state = i2c_isr_state();
if(state < 0x80& ... |
Topic: PIC18F2520 and PWM problem |
sv_shady
Replies: 2
Views: 4845
|
Forum: General CCS C Discussion Posted: Sat May 17, 2008 3:16 pm Subject: PIC18F2520 and PWM problem |
This is my source code:
#include <18F2520.h>
#device adc=8
#FUSES NOWDT //No Watch Dog Timer
#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale
#FUS ... |
Topic: Strange thing with i2c |
sv_shady
Replies: 10
Views: 9922
|
Forum: General CCS C Discussion Posted: Wed Apr 30, 2008 10:45 am Subject: Strange thing with i2c |
Here is the source of the sender:
#include <16F877A.h>
#device adc=8
#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //High speed Osc (> 4mhz& ... |
Topic: Strange thing with i2c |
sv_shady
Replies: 10
Views: 9922
|
Forum: General CCS C Discussion Posted: Wed Apr 30, 2008 5:37 am Subject: Strange thing with i2c |
Here is the .lst file with #opt 0:
#int_SSP
.................... void SSP_isr(void)
.................... {
.................... int incoming, state;
.................... st ... |
Topic: Strange thing with i2c |
sv_shady
Replies: 10
Views: 9922
|
Forum: General CCS C Discussion Posted: Wed Apr 30, 2008 4:14 am Subject: Strange thing with i2c |
I have encountered this strange thing with the i2c_isr_state() This is my source:
#include <18F2520.h>
#device adc=8
#FUSES NOWDT //No Watch Dog Timer
#FUSES WDT128 ... |
Topic: EEPROM 93C56 16bit support |
sv_shady
Replies: 0
Views: 27630
|
Forum: Code Library Posted: Tue Apr 29, 2008 12:25 pm Subject: EEPROM 93C56 16bit support |
This is an enhanced 9356.c file which supports EEPROM Disable Function and 16bit mode of organizing eeprom memory. It is extensively tested and it works fine.
#define EEPROM_SELECT PIN_C7
#define ... |
Topic: Question for 18F4431 and SSP interrupt |
sv_shady
Replies: 9
Views: 6986
|
Forum: General CCS C Discussion Posted: Wed Apr 16, 2008 2:39 pm Subject: Question for 18F4431 and SSP interrupt |
Yes I DO have this line... Here is the .h file of my project #include <18F4431.h>
#device adc=8
#FUSES NOWDT //No Watch Dog Timer
#FUSES WDT128 //Watch Dog ... |
|