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 8 matches
CCS Forum Index
Author Message
  Topic: Dumb question - delay_ms disables interrupts?
billvon

Replies: 8
Views: 11150

PostForum: General CCS C Discussion   Posted: Fri Jul 05, 2013 4:00 pm   Subject: Dumb question - delay_ms disables interrupts?
Works fine now with the delays in place. Thanks for the help everyone.
  Topic: Dumb question - delay_ms disables interrupts?
billvon

Replies: 8
Views: 11150

PostForum: General CCS C Discussion   Posted: Fri Jul 05, 2013 2:43 pm   Subject: Dumb question - delay_ms disables interrupts?
clever programmers set a flag variable - and do delays outside the ISR

i would switch the led -set a flag -
then do the delay in MAIN and release the LED

Thanks for the suggestion. The delay ...
  Topic: Dumb question - delay_ms disables interrupts?
billvon

Replies: 8
Views: 11150

PostForum: General CCS C Discussion   Posted: Fri Jul 05, 2013 1:35 pm   Subject: Dumb question - delay_ms disables interrupts?
Turn on compiler warnings. You will see a warning message that tells you why it's done.

There it is: "Interrupts disabled during call to prevent re-entrancy: (@delay_ms1)" I missed it ...
  Topic: Dumb question - delay_ms disables interrupts?
billvon

Replies: 8
Views: 11150

PostForum: General CCS C Discussion   Posted: Fri Jul 05, 2013 12:56 pm   Subject: Dumb question - delay_ms disables interrupts?
This is an odd one.

I have a 60Hz signal going to the RB0/INT0 pin. The following code works; it gives me a pulse on LED1 60 times a second.


#include <18F67K22.h>
#device ADC=12
#incl ...
  Topic: Motor control PWM working yet in PCD ?
billvon

Replies: 1
Views: 2963

PostForum: General CCS C Discussion   Posted: Thu Sep 11, 2008 4:27 pm   Subject: Motor control PWM working yet in PCD ?
I tried using the PWM setup commands - setup_power_pwm(), setup_power_pwm_pins() etc - but I get a :

Error 12 "dspic30_test.c" Line 72(21,22): Undefined identifier -- setup_power_pwm_pin ...
  Topic: Help - compiler "access violations"
billvon

Replies: 5
Views: 10057

PostForum: General CCS C Discussion   Posted: Thu Jun 15, 2006 2:02 pm   Subject: Help - compiler "access violations"


I compiled it with PCH vs. 3.249. I'm using Win98se.

Try doing it exactly as I did above.

Thanks for the recommendation, but 3.249 doesn't work on my machine. I get "Access violation at a ...
  Topic: Help - compiler "access violations"
billvon

Replies: 5
Views: 10057

PostForum: General CCS C Discussion   Posted: Thu Jun 15, 2006 12:52 pm   Subject: Help - compiler "access violations"
Filename: ex_usb_kbmouse2.c (from the CCS USB demo disk)

Include files:
#include "headerfiles\18F4550.h" (from 3.249 compiler)
#include "headerfiles\pic18_usb.h"
#include "headerfiles\usb_desc_k ...
  Topic: Help - compiler "access violations"
billvon

Replies: 5
Views: 10057

PostForum: General CCS C Discussion   Posted: Thu Jun 15, 2006 12:17 pm   Subject: Help - compiler "access violations"
Last week I got a USB demo kit in. We are developing a USB-based application for a truck tracking system. I tried to compile the code on my current version of the compiler; no luck. (Was using 3.24 ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group