View previous topic :: View next topic |
Author |
Message |
Slick05
Joined: 05 Feb 2005 Posts: 14
|
Program not working... error in CCS? |
Posted: Sun Feb 13, 2005 3:25 pm |
|
|
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
|
|
Posted: Sun Feb 13, 2005 4:11 pm |
|
|
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
|
|
Posted: Sun Feb 13, 2005 5:33 pm |
|
|
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. |
|
|
|