Author |
Message |
Topic: Best way to debouce? |
mat72
Replies: 5
Views: 8681
|
Forum: General CCS C Discussion Posted: Sun Mar 11, 2007 9:55 am Subject: Best way to debouce? |
I have a bunch of switches that I debounce without using an ISR and it works great. it even picks up on press and release.
Each button has the following structure
typedef struct {
BYTE ... |
Topic: help with 18F4550, SPI, MCP2510 |
mat72
Replies: 5
Views: 11031
|
Forum: General CCS C Discussion Posted: Fri Mar 09, 2007 6:46 pm Subject: help with 18F4550, SPI, MCP2510 |
right now thats how I'm uploading the code. My programmer is packed up somewhere. I made the other fixes and its still crashing on the init code |
Topic: help with 18F4550, SPI, MCP2510 |
mat72
Replies: 5
Views: 11031
|
Forum: General CCS C Discussion Posted: Fri Mar 09, 2007 3:07 pm Subject: help with 18F4550, SPI, MCP2510 |
Thanks, I'll give it a try. Is it necessary to get rid of the USB bootloader? I find it great.
Thanks,
Matt |
Topic: help with 18F4550, SPI, MCP2510 |
mat72
Replies: 5
Views: 11031
|
Forum: General CCS C Discussion Posted: Fri Mar 09, 2007 10:47 am Subject: help with 18F4550, SPI, MCP2510 |
Hi, I'm having trouble with connecting the MCP2510. my program crashes on the can_init() function. Actually I've never interface anything via SPI before. Anyways here is what I have
The MCP is ... |
Topic: CCS w/UltraEdit Chip Programming |
mat72
Replies: 1
Views: 4763
|
Forum: General CCS C Discussion Posted: Thu Jan 26, 2006 3:52 pm Subject: CCS w/UltraEdit Chip Programming |
I have CCS configured with ultraEdit and I want to be able to download the compiled code to my chip using my programmer. The programmer is an olimex pic start + compatible. I tried ICD.exe but it wo ... |
Topic: Flaky int_ext |
mat72
Replies: 7
Views: 10501
|
Forum: General CCS C Discussion Posted: Tue Jan 24, 2006 5:35 pm Subject: Flaky int_ext |
I've replaced "setup_port_a( ALL_ANALOG );"
with "setup_adc_ports(AN0);"
This solved my problem. Why wouldn't "setup_port_a( ALL_ANALOG );" work?
Also I've removed the delay which didn't effec ... |
Topic: Flaky int_ext |
mat72
Replies: 7
Views: 10501
|
Forum: General CCS C Discussion Posted: Sun Jan 22, 2006 8:54 pm Subject: Flaky int_ext |
I have the following simple program which performs an ADC on channel 0 and has an external interrupt on RB0/INT0
#include <18F4550.h>
#include <ctype.h>
#fuses HS,NOPROTECT,NOLVP, N ... |
Topic: Incorrect Serial Communications |
mat72
Replies: 10
Views: 13084
|
Forum: General CCS C Discussion Posted: Fri Jan 20, 2006 3:59 pm Subject: Incorrect Serial Communications |
yep |
Topic: Incorrect Serial Communications |
mat72
Replies: 10
Views: 13084
|
Forum: General CCS C Discussion Posted: Fri Jan 20, 2006 3:08 pm Subject: Incorrect Serial Communications |
If the serial format is correct then there is a mismatch between the bit clocks of the PC and the PIC. Because the data is close to being correct, if it had been a PIC18F452 type processor, I would ha ... |
Topic: Incorrect Serial Communications |
mat72
Replies: 10
Views: 13084
|
Forum: General CCS C Discussion Posted: Thu Jan 19, 2006 9:01 pm Subject: Incorrect Serial Communications |
Interesting. You appear to be losing the most significant bit. Is the device the PIC is talking to a PC? If so are you sure you have configured it for 8 data bits, 1 stop bit and no parity?
Yep... ... |
Topic: Incorrect Serial Communications |
mat72
Replies: 10
Views: 13084
|
Forum: General CCS C Discussion Posted: Thu Jan 19, 2006 4:46 pm Subject: Incorrect Serial Communications |
I've written a simple program for a 18F4550 chip. I have a MAX323 chip properly connected for serial communications. When I receive the bytes on the computer, they are incorrect. I've sent the foll ... |
|