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

Program not working... error in CCS?

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



Joined: 05 Feb 2005
Posts: 14

View user's profile Send private message

Program not working... error in CCS?
PostPosted: Sun Feb 13, 2005 3:25 pm     Reply with quote

Hi, this code is supposed to output a 16 bit number on LEDs. The problem is that when I simulate it, it works as it should. But when I program it onto the chip, it doesn't work. I think it is an error within the CCS compiler. Are there other ways of doing this? Here's the code...

[code]
freq=700;
j = make8(freq,1);
output_c(j);
k = make8(freq,0);
output_d(k);
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Sun Feb 13, 2005 4:11 pm     Reply with quote

Please post a complete working program, the processor and the CCS version you are using.
Also describe what results you observe, just saying 'it doesn't work' isn't very helpful. Are any output changing? If yes, on both port C and D, or just on one port? Etc.
valemike
Guest







PostPosted: Sun Feb 13, 2005 5:33 pm     Reply with quote

Ckielstra's right. Just because the snippet of code you posted and simulated may work, we don't see the other parts of your source code, especially the #fuse settings you chose. If you chose the wrong #fuse settings, then your chip won't work at all.
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