Author |
Message |
Topic: Bootloader Firmware Code Readout Protection |
RickMarsen
Replies: 1
Views: 5082
|
Forum: General CCS C Discussion Posted: Mon Jan 24, 2011 1:17 am Subject: Bootloader Firmware Code Readout Protection |
I am wondering about the best way to protect my firmware from being read out by someone with access to the PIC's ICSP electrical connections.
I adapted the CCS bootloader example to use an FTDI dev ... |
Topic: can_putd() troubles - SOLVED |
RickMarsen
Replies: 8
Views: 13142
|
Forum: General CCS C Discussion Posted: Wed Nov 24, 2010 7:14 am Subject: can_putd() troubles - SOLVED |
I should also mention that although I have a working solution, I still can't figure our why one of these methods works and the other does not:
This method does not work (program gets stuck in the w ... |
Topic: can_putd() troubles - SOLVED |
RickMarsen
Replies: 8
Views: 13142
|
Forum: General CCS C Discussion Posted: Wed Nov 24, 2010 1:23 am Subject: can_putd() troubles - SOLVED |
Collin,
Your suggestion worked. I wasn't able to mod the can_putd() function using a polling while loop - it would always get stuck there.
I used a tbe define as you suggested and placed an if a ... |
Topic: can_putd() troubles - SOLVED |
RickMarsen
Replies: 8
Views: 13142
|
Forum: General CCS C Discussion Posted: Tue Nov 23, 2010 6:18 pm Subject: can_putd() troubles - SOLVED |
Collin,
Your response makes perfect sense to me. I will try it and let you all know how it goes.
Do you see any issues with using your suggestion in a slightly different manner:
- Add the fol ... |
Topic: can_putd() troubles - SOLVED |
RickMarsen
Replies: 8
Views: 13142
|
Forum: General CCS C Discussion Posted: Sun Nov 21, 2010 10:33 am Subject: can_putd() troubles - SOLVED |
PCM,
I will prepare and post some test code and a brief description of the hardware set-up, as you suggested.
I have not tried any other ECAN enabled PICs. In fact, this one works quite well (bo ... |
Topic: can_putd() troubles - SOLVED |
RickMarsen
Replies: 8
Views: 13142
|
Forum: General CCS C Discussion Posted: Sat Nov 20, 2010 7:45 am Subject: can_putd() troubles - SOLVED |
If I move the while statement after this line
CANCON.win=CAN_WIN_RX0;
I don't get stuck in the loop, but I am not sure if it's doing what I need it to do which is sit and wait for the current tran ... |
Topic: can_putd() troubles - SOLVED |
RickMarsen
Replies: 8
Views: 13142
|
Forum: General CCS C Discussion Posted: Sat Nov 20, 2010 7:24 am Subject: can_putd() troubles - SOLVED |
I now see that Microchip's datasheet on Page 289 shows a different sending method that uses WIN bits and I see that the can_putd() function uses this approach. From this, it's clear why some register ... |
Topic: can_putd() troubles - SOLVED |
RickMarsen
Replies: 8
Views: 13142
|
Forum: General CCS C Discussion Posted: Fri Nov 19, 2010 11:25 pm Subject: can_putd() troubles - SOLVED |
I'm using a PIC18F4685 (running at 40MHz) to send 256 CAN frames to another device on the CanBUS. The way the send routine works is that a loop runs 256 times calling the can_put() function each time. ... |
Topic: 2D Lookup Table Smoothing |
RickMarsen
Replies: 2
Views: 4233
|
Forum: General CCS C Discussion Posted: Sat Oct 30, 2010 4:20 pm Subject: 2D Lookup Table Smoothing |
I’m wondering if any of you guys have a good suggestion on how to “linearize” the parsing of a 2D lookup table (i.e. array).
I have a program that puts out a duty cycle determined by an ADC r ... |
Topic: ECAN Filtering Theory - Range of IDs |
RickMarsen
Replies: 2
Views: 3087
|
Forum: General CCS C Discussion Posted: Thu Feb 25, 2010 11:40 pm Subject: ECAN Filtering Theory - Range of IDs |
Andrew,
THANK YOU VERY MUCH for that excellent explanation.
I still had a bit of trouble figuring out why it wasn't working even after implementing your suggestion. The reason was that (unless ... |
Topic: ECAN Filtering Theory - Range of IDs |
RickMarsen
Replies: 2
Views: 3087
|
Forum: General CCS C Discussion Posted: Wed Feb 24, 2010 9:24 pm Subject: ECAN Filtering Theory - Range of IDs |
I am wondering if anyone has successfully set up a filtering scheme whereby a range of IDs are allowed through.
Using this code I am able to filter out all but the two specified IDs (100 and 200) b ... |
Topic: Problem with PIC18F4685 Bootloader |
RickMarsen
Replies: 0
Views: 3696
|
Forum: General CCS C Discussion Posted: Sat Nov 14, 2009 7:05 pm Subject: Problem with PIC18F4685 Bootloader |
Hello,
I am trying to use the bootloader functionality for the first time, but I am having little luck with it.
Since I couldn't make heads or tails of the ex_bootloader.c / ex_bootload.c in the ... |
Topic: Correct Way of Temporarily Disabling an Interrupt |
RickMarsen
Replies: 2
Views: 3119
|
Forum: General CCS C Discussion Posted: Wed Dec 24, 2008 4:44 pm Subject: Correct Way of Temporarily Disabling an Interrupt |
Ttelmah,
Thanks for taking a look at my code. The code you replied with works great. I will try to re-write my send function, as suggested, with a flag that removes the need to disable any interrup ... |
Topic: Correct Way of Temporarily Disabling an Interrupt |
RickMarsen
Replies: 2
Views: 3119
|
Forum: General CCS C Discussion Posted: Wed Dec 24, 2008 2:20 pm Subject: Correct Way of Temporarily Disabling an Interrupt |
I have a PIC18F4685 that communicates over a half-duplex RS232-type bus. The bus itself is a single wire that switches from GND to 24V using an open collector and a pull-up. The IC that handles the el ... |
Topic: Issue with PIC18F4580 CCP Operation on Power-Up |
RickMarsen
Replies: 4
Views: 5719
|
Forum: General CCS C Discussion Posted: Fri Oct 31, 2008 8:50 pm Subject: Issue with PIC18F4580 CCP Operation on Power-Up |
PCM,
That's exactly what the problem was. I've been staring at this code for three days before deciding to post a question.
Almost embarrassed about the solution...
Thanks for all your help. |
|