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 9 matches
CCS Forum Index
Author Message
  Topic: Interrupts disabled warning. Why ?
ashrau

Replies: 8
Views: 6620

PostForum: General CCS C Discussion   Posted: Sat Mar 14, 2009 12:14 pm   Subject: Interrupts disabled warning. Why ?
Thanks! Very helpful Smile
  Topic: Interrupts disabled warning. Why ?
ashrau

Replies: 8
Views: 6620

PostForum: General CCS C Discussion   Posted: Sat Mar 14, 2009 1:55 am   Subject: Interrupts disabled warning. Why ?
P.S. the 5000 ms and 3000 ms delays I had in the code were for debugging, so that I have enough time to read the adc conversion values that are output on port_c. I intend on removing them in my final ...
  Topic: Interrupts disabled warning. Why ?
ashrau

Replies: 8
Views: 6620

PostForum: General CCS C Discussion   Posted: Sat Mar 14, 2009 1:51 am   Subject: Interrupts disabled warning. Why ?
Thanks for the replies. I guess it makes sense to not have delays inside an isr. But the 5 ms delay I have, because right after the LO-HI edge of the clock signal, there is a 5 ms rise time in the out ...
  Topic: Interrupts disabled warning. Why ?
ashrau

Replies: 8
Views: 6620

PostForum: General CCS C Discussion   Posted: Fri Mar 13, 2009 12:54 am   Subject: Interrupts disabled warning. Why ?
Hi. I wrote the following code to use a signal from a 1-axis compass. I'm using interrupts to sample the compass signal upon a Lo-Hi edge of a clock signal (also from the compass). Here is the code:
...
  Topic: external clock triggering adc sampling
ashrau

Replies: 6
Views: 7364

PostForum: General CCS C Discussion   Posted: Fri Mar 13, 2009 12:41 am   Subject: external clock triggering adc sampling
Thanks a lot! The interrupt is working now. I really appreciate all your help Smile
  Topic: external clock triggering adc sampling
ashrau

Replies: 6
Views: 7364

PostForum: General CCS C Discussion   Posted: Tue Mar 10, 2009 2:16 pm   Subject: external clock triggering adc sampling
You connnect the trigger to one of external interrupt pins (INT0..INT2), define an interrupt handler #INT_EXT in CCS C and enable it by enable_interrupts() and ext_int_edge().

Thanks again for the ...
  Topic: external clock triggering adc sampling
ashrau

Replies: 6
Views: 7364

PostForum: General CCS C Discussion   Posted: Tue Mar 10, 2009 12:26 am   Subject: external clock triggering adc sampling
I think, the problem can be handled by connecting the event signal to an external interrupt rather than a clock input.

To achieve a delay, the interrupt can start a timer and the timer interupt the ...
  Topic: external clock triggering adc sampling
ashrau

Replies: 6
Views: 7364

PostForum: General CCS C Discussion   Posted: Mon Mar 09, 2009 8:17 pm   Subject: external clock triggering adc sampling
Hi,

I am trying to use an external clock input in my PIC18F2525. I want to use either the hi-2-lo or lo-2-hi edge of this clock pulse to trigger a portion of code that would sample for an a/d conve ...
  Topic: sampling timing help
ashrau

Replies: 6
Views: 5225

PostForum: General CCS C Discussion   Posted: Wed Feb 25, 2009 2:33 am   Subject: sampling timing help
Hi,

I need to sample an analog signal on channel 0 of PIC18F4220. My problem is that i need to take 104 samples, and each of them needs to be spaced exactly 192 microseconds apart. This is for a fr ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group