CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 34 matches
CCS Forum Index
Author Message
  Topic: Random Numbers
jemly

Replies: 1
Views: 2975

PostForum: General CCS C Discussion   Posted: Mon Mar 17, 2008 10:44 am   Subject: Random Numbers
I have got a pwm output for which I generate the duty value randomly using rand(). I currently set the rand_max value like this in my header file:

#define RAND_MAX 1023
#include <stdlib.h> ...
  Topic: I2C GRAPHIC LCD FOR PICS?
jemly

Replies: 4
Views: 7362

PostForum: General CCS C Discussion   Posted: Tue Mar 04, 2008 9:31 am   Subject: BATRON LCD DISPLAY
Hi,

I'm just about to start work using a 96*40 dot BATRON display and came across this post. Did anyone finish getting the driver software written for this? Just wondering so I don't spend too much ...
  Topic: Cannot Work Out Checksum Calculation
jemly

Replies: 6
Views: 5892

PostForum: General CCS C Discussion   Posted: Mon Oct 15, 2007 10:24 am   Subject: Cannot Work Out Checksum Calculation
TTelmah - thanks and here's some clarification. The data array is declared:

BYTE data[36];
and the csCheck array is declared:

BYTE csCheck(4);

We've checked with the people who wrote the sof ...
  Topic: Cannot Work Out Checksum Calculation
jemly

Replies: 6
Views: 5892

PostForum: General CCS C Discussion   Posted: Mon Oct 15, 2007 8:55 am   Subject: Cannot Work Out Checksum Calculation
Ok maybe some confusion.... the statement "exclusively OR the 1st, 4th, 8th, 12th '" should have read "exclusively OR the 0th, 4th, 8th, 12th '".

And I've looked over my code ag ...
  Topic: Cannot Work Out Checksum Calculation
jemly

Replies: 6
Views: 5892

PostForum: General CCS C Discussion   Posted: Mon Oct 15, 2007 8:22 am   Subject: Cannot Work Out Checksum Calculation
We are receiving data via rs232 and we know the data is for the most part good. A 4byte checksum is sent after the data we use and I am trying to write a routine to check the validity of the data sent ...
  Topic: CAN - question about multiple messages and transmit buffers
jemly

Replies: 2
Views: 4977

PostForum: General CCS C Discussion   Posted: Mon Oct 15, 2007 6:12 am   Subject: CAN - question about multiple messages and transmit buffers
Sorry I meant to show what the important values were!


byte can_mode = 0x01;
byte can_tx_buffers = 0xFC;
  Topic: CAN - question about multiple messages and transmit buffers
jemly

Replies: 2
Views: 4977

PostForum: General CCS C Discussion   Posted: Mon Oct 15, 2007 6:11 am   Subject: CAN - question about multiple messages and transmit buffers
Ok I've got this sorted now so I'm posting the solution for anyone who may ever need it.

By default the PIC 18F4680 has only 3 TX buffers set up. It has 6 programmable buffers which can be configu ...
  Topic: CAN - question about multiple messages and transmit buffers
jemly

Replies: 2
Views: 4977

PostForum: General CCS C Discussion   Posted: Mon Oct 15, 2007 3:49 am   Subject: CAN - question about multiple messages and transmit buffers
I have used the CCS example to write a bit of software which needs to send out data using CAN. Essentially I need to send 5 packets of 8 bytes but at the moment the receive side is only seeing the fir ...
  Topic: RS232 Questions : 18F452 38400 baud, data looks wrong
jemly

Replies: 22
Views: 18258

PostForum: General CCS C Discussion   Posted: Thu Oct 11, 2007 10:17 am   Subject: RS232 Questions : 18F452 38400 baud, data looks wrong
Hi all - thank you for all the amazing help! It's taken me a while to reply because after having implemented some of your suggestions we were still seeing numbers that seemed entirely wrong. To cut a ...
  Topic: RS232 Questions : 18F452 38400 baud, data looks wrong
jemly

Replies: 22
Views: 18258

PostForum: General CCS C Discussion   Posted: Tue Oct 09, 2007 9:09 am   Subject: RS232 Questions : 18F452 38400 baud, data looks wrong
Thanks for that explanation it has really helped me - I have modified my software now and will post the full code below. One problem is that startPos does not see to be the right number and I can't se ...
  Topic: RS232 Questions : 18F452 38400 baud, data looks wrong
jemly

Replies: 22
Views: 18258

PostForum: General CCS C Discussion   Posted: Tue Oct 09, 2007 7:59 am   Subject: RS232 Questions : 18F452 38400 baud, data looks wrong
Thanks very much John, that certainly helps clarify things but I still have a couple of questions...... I am looking at the example you suggested and am currently running the following code.


#def ...
  Topic: RS232 Questions : 18F452 38400 baud, data looks wrong
jemly

Replies: 22
Views: 18258

PostForum: General CCS C Discussion   Posted: Tue Oct 09, 2007 6:11 am   Subject: RS232 Questions : 18F452 38400 baud, data looks wrong
Sorry - where it says 'position 643' above, it should read 'position 63'.
  Topic: RS232 Questions : 18F452 38400 baud, data looks wrong
jemly

Replies: 22
Views: 18258

PostForum: General CCS C Discussion   Posted: Tue Oct 09, 2007 6:11 am   Subject: RS232 Questions : 18F452 38400 baud, data looks wrong
Ok I firstly am now running my 18F452 at 39.3216 MHz by using a 9.830400 MHz oscillator and internal 4xPLL. At least I hope I have ! Here are my fuse settings:


#FUSES H4 //H ...
  Topic: RS232 Questions : 18F452 38400 baud, data looks wrong
jemly

Replies: 22
Views: 18258

PostForum: General CCS C Discussion   Posted: Wed Oct 03, 2007 10:49 am   Subject: RS232 Questions : 18F452 38400 baud, data looks wrong
Wow thank you so much - that all makes great sense. I probably won't be able to post again until Tuesday unfortunately but many thanks for all the time you have put into this. I'll post questions and ...
  Topic: RS232 Questions : 18F452 38400 baud, data looks wrong
jemly

Replies: 22
Views: 18258

PostForum: General CCS C Discussion   Posted: Wed Oct 03, 2007 4:56 am   Subject: RS232 Questions : 18F452 38400 baud, data looks wrong
Thanks foppie, I will give that a go. Ttelmah the wiring is absolutely fine and has been fully tested. It's definitely a speed and/or software problem.
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group