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

rtos dsPic soft reset

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







rtos dsPic soft reset
PostPosted: Thu Jul 17, 2008 8:24 pm     Reply with quote

Hi, I'm trying to test the rtos with a dsPIC30F6014A with a 7.237 MHz crystal but this code produces a continuos software reset. What is wrong? Thanks.

#include <30F6014A.h>
#fuses XT_PLL16,NOWDT, NOBROWNOUT, NOPUT
#use delay(clock=117952000)
#use rs232(baud=9600, UART2, STREAM=COM_B)

#use rtos(timer=4, minor_cycle=100ms)

#task(rate=900ms,max=100ms)
void send_data_task ( )
{
//fprintf(COM_B,"Online\r\n");
fputc('A', COM_B);
}

void main() {

printf("Sampling1:\r\n");
rtos_run();
}
mkent



Joined: 09 Sep 2003
Posts: 37
Location: TN, USA

View user's profile Send private message

PostPosted: Fri Jul 18, 2008 8:24 am     Reply with quote

I don't think you can run your clock at 118 MHZ. There is a post divider that has a minimum divide of 2 so your clock would be 58,976,000

Embarassed This is incorrect; the default post scale is divide by 1 (0,0 in post)
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