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 28 matches
CCS Forum Index
Author Message
  Topic: Problem in Full Duplex SPI communication
gokulrred

Replies: 3
Views: 6251

PostForum: General CCS C Discussion   Posted: Wed May 30, 2012 2:29 am   Subject: Problem in Full Duplex SPI communication
RF_Developer:::::

thanks for ur quick response sir.......

but if i need to send a data from the slave side to the master side how to do???????


u said the master must ask slave's data...
ho ...
  Topic: Problem in Full Duplex SPI communication
gokulrred

Replies: 3
Views: 6251

PostForum: General CCS C Discussion   Posted: Wed May 30, 2012 12:43 am   Subject: Problem in Full Duplex SPI communication
Hi all...

I am using the following for the project:
Two PIC18F4431.
Two motors with encoders

I tried to send and receive encoder position values between the PIC controllers through SPI.

I ...
  Topic: PROBLEM IN RECEIVING 16 BIT SPI DATA
gokulrred

Replies: 10
Views: 15455

PostForum: General CCS C Discussion   Posted: Sat Feb 18, 2012 4:44 am   Subject: PROBLEM IN RECEIVING 16 BIT SPI DATA
FvM sir,,,,,,,,,,,

i can't get you.......
sorry.......

is there any possibilities to receive 16 bit data or 32 bit data in ISR?????????
  Topic: PROBLEM IN RECEIVING 16 BIT SPI DATA
gokulrred

Replies: 10
Views: 15455

PostForum: General CCS C Discussion   Posted: Sat Feb 18, 2012 1:15 am   Subject: PROBLEM IN RECEIVING 16 BIT SPI DATA
so..

Can i take conclusion like this:

ISR receives 8bit only synchronously but not 16 or 32 bit...

But in main it is possible to receive 16 bit data without problem....


right????
  Topic: PROBLEM IN RECEIVING 16 BIT SPI DATA
gokulrred

Replies: 10
Views: 15455

PostForum: General CCS C Discussion   Posted: Fri Feb 17, 2012 9:58 am   Subject: PROBLEM IN RECEIVING 16 BIT SPI DATA
Hi RF_Developer...
first of all
thanks for your interest u took in this ...

i know that data transmission is byte based...

but one issue:

i could not receive 16 bit data in ISR...

but i ...
  Topic: PROBLEM IN RECEIVING 16 BIT SPI DATA
gokulrred

Replies: 10
Views: 15455

PostForum: General CCS C Discussion   Posted: Fri Feb 17, 2012 4:43 am   Subject: PROBLEM IN RECEIVING 16 BIT SPI DATA
hi..

i was trying to receive 16 bit data in SPI using
spi_xfer function.

i am able to receive values correctly when i receive values in main...
i am not able to receive values when i use ISR ...
  Topic: help needed to debug Quadrature Encoder coding ( very Basic)
gokulrred

Replies: 3
Views: 6432

PostForum: General CCS C Discussion   Posted: Mon Feb 06, 2012 10:55 pm   Subject: help needed to debug Quadrature Encoder coding ( very Basic)
#include <18F4431.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)

#byte MCHH=0Xf65 //SET THE MAX COUNT HIGH
#byte MCLL=0Xf64 //SET THE MAX COUNT LOW
#bit up ...
  Topic: help needed to debug Quadrature Encoder coding ( very Basic)
gokulrred

Replies: 3
Views: 6432

PostForum: General CCS C Discussion   Posted: Mon Feb 06, 2012 10:52 pm   Subject: help needed to debug Quadrature Encoder coding ( very Basic)
EUREKA..... EUREKA.....

found the theory behind it......

IC3DR:

this is the interrupt which gets generated whenever there is a change in direction of rotation of motor.

IC2QEI:

this int ...
  Topic: help needed to debug Quadrature Encoder coding ( very Basic)
gokulrred

Replies: 3
Views: 6432

PostForum: General CCS C Discussion   Posted: Mon Feb 06, 2012 12:14 am   Subject: help needed to debug Quadrature Encoder coding ( very Basic)
hi.
I am using pic 18f4431.
When qei is used with older versions it was working fine.

Now updated to the latest version.

This is my code:

#include <18F4331.h>
#fuses HS,NOWDT,NOPROTE ...
  Topic: Problem in setup_qei()
gokulrred

Replies: 0
Views: 3664

PostForum: General CCS C Discussion   Posted: Thu Feb 02, 2012 12:17 am   Subject: Problem in setup_qei()
Previously I was using older versions of CCS.

I was working with Quadrature Encoder Interface...
in that while I was using qei, the setup was like this:
setup_qei(QEI_RESET_WHEN_MAXCOUNT,QEI_ ...
  Topic: basics of pwm in pic18
gokulrred

Replies: 3
Views: 5449

PostForum: General CCS C Discussion   Posted: Mon Jan 23, 2012 5:09 am   Subject: basics of pwm in pic18
sir.... ttelmah....

i've said wrongly as PWM interrupt....
ok fine...

correct me if my logic is wrong.....

when the current exceeds some marginal value in one direction i need to run motor i ...
  Topic: basics of pwm in pic18
gokulrred

Replies: 3
Views: 5449

PostForum: General CCS C Discussion   Posted: Mon Jan 23, 2012 3:25 am   Subject: basics of pwm in pic18
hi..

i am working on a project where i need to work with pwm for speed control of 9v dc motor.

i am using PIC18F4431.

i would like to know how to work with PWM in this.
what are all can be d ...
  Topic: purpose of spi_data_in(); and SSP ISR
gokulrred

Replies: 3
Views: 5802

PostForum: General CCS C Discussion   Posted: Fri Jan 13, 2012 7:45 pm   Subject: purpose of spi_data_in(); and SSP ISR
thank you for ur active and rapid answer...

so spi_data_in will not interrupt but we can read data throu that....
right?????
  Topic: purpose of spi_data_in(); and SSP ISR
gokulrred

Replies: 3
Views: 5802

PostForum: General CCS C Discussion   Posted: Fri Jan 13, 2012 6:49 pm   Subject: purpose of spi_data_in(); and SSP ISR
SSP ISR can be used when SPI data is sent to slave from master.

during that time interrupt will be generated and SSP ISR is called and we can read SPI data using spi_read(); in SSP ISR.
i have no ...
  Topic: handling two interrupts.... how????
gokulrred

Replies: 5
Views: 12242

PostForum: General CCS C Discussion   Posted: Fri Jan 13, 2012 6:41 pm   Subject: handling two interrupts.... how????
@Ttelmah:

ya sir...
using delay will be not a good idea...

but i want to make D6 =0 and D7=1 when i get 0x80 data throu SPI.
and D6=1 and D7=0 when i get 0x81 data throu SPI in the slave side. ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group