Author |
Message |
Topic: slow pic chip |
rwjzownts
Replies: 13
Views: 16466
|
Forum: General CCS C Discussion Posted: Mon Feb 15, 2010 7:12 pm Subject: slow pic chip |
That works, so it must be the crystal. I've used these crystals with my 18f2620 and they've worked fine. I'll get the proper crystals. Do you have any part recommendations?
Thanks again! |
Topic: slow pic chip |
rwjzownts
Replies: 13
Views: 16466
|
Forum: General CCS C Discussion Posted: Mon Feb 15, 2010 6:51 pm Subject: slow pic chip |
1. The pic is running +5 volts from a computer's usb.
2. The 47k resistor on masterclear goes to 5v.
3. I'm using this crystal on pins 11 & 12:
http://mouser.com/ProductDetail/Vishay/XT9SNL ... |
Topic: slow pic chip |
rwjzownts
Replies: 13
Views: 16466
|
Forum: General CCS C Discussion Posted: Mon Feb 15, 2010 6:38 pm Subject: slow pic chip |
The version is 4.088. This is not a proteus project. I'm just using a breadboard. |
Topic: slow pic chip |
rwjzownts
Replies: 13
Views: 16466
|
Forum: General CCS C Discussion Posted: Mon Feb 15, 2010 6:30 pm Subject: slow pic chip |
Weird. I tried this simpler program and now the light doesn't blink. I tested different timings to be sure that I wasn't missing it. Other ideas? |
Topic: slow pic chip |
rwjzownts
Replies: 13
Views: 16466
|
Forum: General CCS C Discussion Posted: Mon Feb 15, 2010 6:04 pm Subject: slow pic chip |
Also changed the setup_spi line without any luck. |
Topic: slow pic chip |
rwjzownts
Replies: 13
Views: 16466
|
Forum: General CCS C Discussion Posted: Mon Feb 15, 2010 6:03 pm Subject: slow pic chip |
Thanks. I've changed the fuse. (I had it this way earlier and thought it might be the problem):
#FUSES HS
I also commented out the second #use delay. The light still blinks about 50 times too ... |
Topic: slow pic chip |
rwjzownts
Replies: 13
Views: 16466
|
Forum: General CCS C Discussion Posted: Mon Feb 15, 2010 5:46 pm Subject: slow pic chip |
This is a problem that I've encountered before, but I've never solved it. My pic chip is running about 50 times too slow. I'm trying to blink an led 100 times a second, but it blinks about 2.7 times ... |
Topic: booting problems with serial |
rwjzownts
Replies: 4
Views: 5698
|
Forum: General CCS C Discussion Posted: Sat Jan 30, 2010 3:21 pm Subject: booting problems with serial |
I've added the capacitors to both of the chips running this code, and that has solved the booting problem. However, one now has serious timing problems. It is running about 20 times too slow. Any i ... |
Topic: booting problems with serial |
rwjzownts
Replies: 4
Views: 5698
|
Forum: General CCS C Discussion Posted: Sat Jan 30, 2010 2:17 pm Subject: booting problems with serial |
Thanks for the advice. I commented out the interrupts, and the problem still happens, so I think it must be in the board.
I designed the board, and had it fabricated by pcbfabexpress. I've taken ... |
Topic: booting problems with serial |
rwjzownts
Replies: 4
Views: 5698
|
Forum: General CCS C Discussion Posted: Fri Jan 29, 2010 8:27 pm Subject: booting problems with serial |
When I don't have serial plugged into my board, my pic chip boots great everytime. When I do have serial plugged in, the chip boots correctly about 2/3 of the time. If I plug the serial in after boo ... |
Topic: passing a struct through one function into another |
rwjzownts
Replies: 2
Views: 3551
|
Forum: General CCS C Discussion Posted: Wed Oct 01, 2008 3:18 pm Subject: Thanks! |
That makes sense. I got it to work. Thanks! |
Topic: passing a struct through one function into another |
rwjzownts
Replies: 2
Views: 3551
|
Forum: General CCS C Discussion Posted: Tue Sep 30, 2008 5:28 pm Subject: passing a struct through one function into another |
I would like to pass a struct into one function that will then pass the same struct into another function. Is this possible? I haven't been able to find anything about doing this. Here's my falied ... |
Topic: pass struct into function |
rwjzownts
Replies: 3
Views: 6398
|
Forum: General CCS C Discussion Posted: Mon Sep 29, 2008 8:37 pm Subject: Thanks! |
I figured it out. Thanks for pointing me to those! |
Topic: pass struct into function |
rwjzownts
Replies: 3
Views: 6398
|
Forum: General CCS C Discussion Posted: Mon Sep 29, 2008 8:04 pm Subject: pass struct into function |
I am trying to pass a struct into a function and it isn't working. There are no errors when I compile, but the led that should blink doesn't, so the counter isn't getting reset. I believe that I hav ... |
Topic: stdlib trouble |
rwjzownts
Replies: 2
Views: 5509
|
Forum: General CCS C Discussion Posted: Sat Jul 19, 2008 4:01 pm Subject: Thanks! |
That did it. Don't know how those spaces got there. I'll pay attention to those in the future. |
|