Author |
Message |
Topic: My Port B does not want to work |
Slick05
Replies: 2
Views: 5853
|
Forum: General CCS C Discussion Posted: Mon Feb 14, 2005 7:40 pm Subject: My Port B does not want to work |
For some reason on the PIC18F458, when I set PORT B to output and output 0xFF onto LEDs they all light up except B5,B6,and B7. However all of the pins on PORT B work fine as input.
I think I just ... |
Topic: Any suggestions for this design? |
Slick05
Replies: 7
Views: 11575
|
Forum: General CCS C Discussion Posted: Sun Feb 13, 2005 10:44 pm Subject: Any suggestions for this design? |
Would I be able to use the comparator built into the 18f458? I've never used the comparator before so I'm not sure how it works... |
Topic: Any suggestions for this design? |
Slick05
Replies: 7
Views: 11575
|
Forum: General CCS C Discussion Posted: Sun Feb 13, 2005 8:48 pm Subject: Any suggestions for this design? |
Yeah, I tried implementing the frequency counter by sampling the signal with the PIC 18F458 and then counting the peaks, but the processor does not have enough RAM to do this robustly. I like the ide ... |
Topic: Program not working... error in CCS? |
Slick05
Replies: 2
Views: 5816
|
Forum: General CCS C Discussion Posted: Sun Feb 13, 2005 3:25 pm Subject: Program not working... error in CCS? |
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 er ... |
Topic: Unused ports |
Slick05
Replies: 2
Views: 5691
|
Forum: General CCS C Discussion Posted: Sun Feb 13, 2005 1:05 pm Subject: Unused ports |
What do you do with these? Do you leave them, hook up a resistor to ground, or just straight ground them? |
Topic: Circuit schematics? |
Slick05
Replies: 1
Views: 5235
|
Forum: General CCS C Discussion Posted: Sun Feb 13, 2005 11:26 am Subject: Circuit schematics? |
Hi, what do you use for drawing circuit schematics? I'm using Pspice right now but it does not have any of the PIC symbols... What do you use? |
Topic: Any suggestions for this design? |
Slick05
Replies: 7
Views: 11575
|
Forum: General CCS C Discussion Posted: Sat Feb 12, 2005 11:10 am Subject: Any suggestions for this design? |
Well I have already wrote the software, I just need an amplifier for the input signal.... |
Topic: Any suggestions for this design? |
Slick05
Replies: 7
Views: 11575
|
Forum: General CCS C Discussion Posted: Fri Feb 11, 2005 8:49 pm Subject: Any suggestions for this design? |
Hi, I have a circuit using the 18f458 where I have a microphone going to an amplifer , going to the A/D of the PIC. The microphone generates a signal of amplitude 50mV (roughly). Could you recommend ... |
Topic: ROM |
Slick05
Replies: 1
Views: 4886
|
Forum: General CCS C Discussion Posted: Fri Feb 11, 2005 8:46 pm Subject: ROM |
Hi I wrote a program for the 18f458 and when I compile it, the CCS compiler says that all of the ROM is used up, but when I look at the memory map in MPLAB, it still looks like there is plenty of prog ... |
Topic: Why am I getting an error? |
Slick05
Replies: 5
Views: 7935
|
Forum: General CCS C Discussion Posted: Sat Feb 05, 2005 4:21 pm Subject: Why am I getting an error? |
Actually don't worry about it, I'm an idiot. One of the braces was the wrong way ;P. I just spent hours trying to figure that one out. What a good waste of time |
Topic: Why am I getting an error? |
Slick05
Replies: 5
Views: 7935
|
Forum: General CCS C Discussion Posted: Sat Feb 05, 2005 4:17 pm Subject: Why am I getting an error? |
I have done alot of testing and actually think it is a bug within CCS. How could I get around this? |
Topic: Why am I getting an error? |
Slick05
Replies: 5
Views: 7935
|
Forum: General CCS C Discussion Posted: Sat Feb 05, 2005 4:04 pm Subject: Why am I getting an error? |
When I take out the for loop in the get_freq routine it compiles fine. What is wrong? |
Topic: Why am I getting an error? |
Slick05
Replies: 5
Views: 7935
|
Forum: General CCS C Discussion Posted: Sat Feb 05, 2005 3:58 pm Subject: Why am I getting an error? |
Hi, I have a program to determine the frequency of an incoming analog signal. The main program builds and runs fine, but when I insert the simple subroutine "get_freq", I get all these errors popping ... |
Topic: A/D conversion |
Slick05
Replies: 3
Views: 7527
|
Forum: General CCS C Discussion Posted: Sat Feb 05, 2005 2:13 pm Subject: A/D conversion |
Hi, I am working on a project (with the 18F458) where I need to sample an incoming signal. I do not fully understand how the A/D implementaion works. Do I have to use the A/D ISR? I made a test pro ... |
|