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 support@ccsinfo.com

dsPIC33 enable interrupts global

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
mbradley



Joined: 11 Jul 2009
Posts: 118
Location: California, USA

View user's profile Send private message Visit poster's website

dsPIC33 enable interrupts global
PostPosted: Sun Dec 20, 2009 12:29 am     Reply with quote

This is my first time testing out a pic33, On pic18 and below, I use:

enable_interrupts(INT_RDA);
enable_interrupts(GLOBAL);

but there is no GLOBAL define in 33FJ128GP802.h

How does one enable interrupts on a dsPIC33??
_________________
Michael Bradley
www.mculabs.com
Open Drivers and Projects
mbradley



Joined: 11 Jul 2009
Posts: 118
Location: California, USA

View user's profile Send private message Visit poster's website

PostPosted: Sun Dec 20, 2009 12:40 am     Reply with quote

Ok, got it, just took more reading on my part...

for the average user, getting started:

enable_interrupts(INTR_NORMAL | INTR_GLOBAL);

change INT_NORMAL to the int level of you choice when you start defining them.

Hope this helps others
_________________
Michael Bradley
www.mculabs.com
Open Drivers and Projects
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group