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 5 matches
CCS Forum Index
Author Message
  Topic: getting angular position with pic18f2550 and AS5045
dronix

Replies: 5
Views: 11943

PostForum: General CCS C Discussion   Posted: Mon Jun 21, 2010 6:01 am   Subject: getting angular position with pic18f2550 and AS5045
When You said that I have to set the pic as a master ... I have to set it like that
setup_spi(SPI_MASTER|SPI_H_TO_L|SPI_CLK_DIV_4|SPI_SS_DISABLED);
Or is there another method ?
I tired to ...
  Topic: getting angular position with pic18f2550 and AS5045
dronix

Replies: 5
Views: 11943

PostForum: General CCS C Discussion   Posted: Mon Jun 21, 2010 5:25 am   Subject: getting angular position with pic18f2550 and AS5045
Thank you for your reply,
I'm using the pic18f2550 chip, and the clock rate is of 20MHz.
I have connected the PIN_B1 of the chip which correspond to the clock, and I thought that it is generated w ...
  Topic: getting angular position with pic18f2550 and AS5045
dronix

Replies: 5
Views: 11943

PostForum: General CCS C Discussion   Posted: Mon Jun 21, 2010 3:08 am   Subject: getting angular position with pic18f2550 and AS5045
Hello everyone,
I tried to get the value of this encoder

#INT_TIMER2
void timer2_isr() // interruption lorsque le Timer2 reboucle
{
timer++;

set_adc_channel(0);
...
  Topic: delay in the adc_read 18f2550
dronix

Replies: 3
Views: 5547

PostForum: General CCS C Discussion   Posted: Fri Jun 18, 2010 10:08 am   Subject: delay in the adc_read 18f2550
Thank you for your help,
Because I did not know that the reading would take 11*cycleOfthe ADC
Here in my cas I think that it is about 8-9µs ... So I will try to use your technics.
Just for inform ...
  Topic: delay in the adc_read 18f2550
dronix

Replies: 3
Views: 5547

PostForum: General CCS C Discussion   Posted: Fri Jun 18, 2010 8:25 am   Subject: delay in the adc_read 18f2550
hello,

I'm new here and need some advice about how to use efficiently the adc in my pic. I am using pic 18F2550, and need to get data from the adc convert when my motors are rotating ...
I tried ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group