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 144 matches
CCS Forum Index
Author Message
  Topic: Receiving package on RS232
Gerhard

Replies: 5
Views: 5924

PostForum: General CCS C Discussion   Posted: Fri May 08, 2009 3:17 pm   Subject: Receiving package on RS232
Its a barcode reader but for my purpose yes, as i will be printing the codes myself.
  Topic: Receiving package on RS232
Gerhard

Replies: 5
Views: 5924

PostForum: General CCS C Discussion   Posted: Fri May 08, 2009 2:31 pm   Subject: Receiving package on RS232
Thanks.

I have reused that code to see if it will work but i am not getting any data read out on the LCD. I do have the running and buffered part displaying on the lcd though. I know my rs232 port ...
  Topic: Receiving package on RS232
Gerhard

Replies: 5
Views: 5924

PostForum: General CCS C Discussion   Posted: Fri May 08, 2009 1:19 pm   Subject: Receiving package on RS232
Hi. This might be a silly question but I need to read a scanner into the pic with RS 232. The package looks similar to this +6007762002185.

What function or how should I go about doing it?
I am tr ...
  Topic: Comms between PC, PIC master and several slave pics
Gerhard

Replies: 7
Views: 6079

PostForum: General CCS C Discussion   Posted: Mon May 04, 2009 1:50 pm   Subject: Comms between PC, PIC master and several slave pics
Thanks

Problem is this seems very complicated and I am not yet at a level of competence to allow me to use this. I have used 485 on several ocasions but never on more than 2 pics at a time. I had a ...
  Topic: Comms between PC, PIC master and several slave pics
Gerhard

Replies: 7
Views: 6079

PostForum: General CCS C Discussion   Posted: Mon May 04, 2009 1:26 pm   Subject: Comms between PC, PIC master and several slave pics
Thanks.

I usually do 485 by

#use rs232(baud=115200, xmit=PIN_C6, rcv=PIN_C7
and the just use putc on the line with a max 485 chip. Is this the correct way?

If I start doing multi drop h ...
  Topic: A/D (ADC) Question...
Gerhard

Replies: 4
Views: 4155

PostForum: General CCS C Discussion   Posted: Mon May 04, 2009 12:52 pm   Subject: A/D (ADC) Question...
Firstly as I have stated it depends on what pic you are using and what your sample rate is.

You have to set that manually with a statement such as
set_adc_channel(0);
delay_us(20) ...
  Topic: A/D (ADC) Question...
Gerhard

Replies: 4
Views: 4155

PostForum: General CCS C Discussion   Posted: Mon May 04, 2009 12:40 pm   Subject: A/D (ADC) Question...
Yes you have to allow the cap of the adc conversion to charge and this data is given in the data sheet depending on the type of pic and speed at which you are converting a/d. I do not know which pic y ...
  Topic: Comms between PC, PIC master and several slave pics
Gerhard

Replies: 7
Views: 6079

PostForum: General CCS C Discussion   Posted: Mon May 04, 2009 12:31 pm   Subject: Comms between PC, PIC master and several slave pics
Thanks.

I will use the RS485 then but I do have a question regarding the hardware config of the nodes. I intend using 18F4682 Pics and for the Coms to PC i have a rs232-usb converter which will be ...
  Topic: Comms between PC, PIC master and several slave pics
Gerhard

Replies: 7
Views: 6079

PostForum: General CCS C Discussion   Posted: Mon May 04, 2009 10:35 am   Subject: Comms between PC, PIC master and several slave pics
Hi. I am starting a project where data will be sent from a PC to a master PIC (probably using RS232 485 or ethernet). This data then needs to be checked and reworked and sent to several different slav ...
  Topic: HMC6352 16 reading averaging
Gerhard

Replies: 11
Views: 10903

PostForum: General CCS C Discussion   Posted: Sun Oct 12, 2008 10:14 am   Subject: HMC6352 16 reading averaging
Just to ensure that I am understanding correctly. Is this what you suggest?

i2c_start();
i2c_write(HMC6352_I2C_WRITE_ADDRESS);
i2c_write(0x77);//write to eeprom
delay_us& ...
  Topic: HMC6352 16 reading averaging
Gerhard

Replies: 11
Views: 10903

PostForum: General CCS C Discussion   Posted: Sun Oct 12, 2008 9:56 am   Subject: HMC6352 16 reading averaging
Thanks dyeatman.

Should it be in sequence with one i2c_start at beginning of each comand and stop at each comand or one start comand, 3 data comands and then 1 stop comand.
  Topic: HMC6352 16 reading averaging
Gerhard

Replies: 11
Views: 10903

PostForum: General CCS C Discussion   Posted: Sun Oct 12, 2008 9:54 am   Subject: HMC6352 16 reading averaging
I tried doing it as follows but something is amiss because it does not work.
int16 HMC6352_read_heading(void)
{
int8 lsb;
int8 msb;
i2c_start();
i2c_write(HMC6352_I2 ...
  Topic: HMC6352 16 reading averaging
Gerhard

Replies: 11
Views: 10903

PostForum: General CCS C Discussion   Posted: Sun Oct 12, 2008 8:53 am   Subject: HMC6352 16 reading averaging
Hi.
I am still using a HMC6352 compass and I want to remove some of the jitter by using the function in the chip to use the average of the past 16 values of the magnetometers.
On page 8 of the data ...
  Topic: 18f4680 not starting up
Gerhard

Replies: 13
Views: 12414

PostForum: General CCS C Discussion   Posted: Mon Sep 22, 2008 1:12 pm   Subject: 18f4680 not starting up
Thanks Ttelmah for all the help. I'll do that.
Appreciated.
  Topic: 18f4680 not starting up
Gerhard

Replies: 13
Views: 12414

PostForum: General CCS C Discussion   Posted: Mon Sep 22, 2008 8:01 am   Subject: 18f4680 not starting up
Thanks for the help.
I think I am at a dead end now and should look at another compiler version. I have done all that was discussed but still this does not want to work.
This is the program that I a ...
 
Page 1 of 10 Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group