Author |
Message |
Topic: XTEA encryption library with smartcard example |
JBM
Replies: 7
Views: 63260
|
Forum: Code Library Posted: Mon Dec 14, 2009 9:51 am Subject: XTEA encryption library with smartcard example |
sjharris: Your code isn't wrong, you're just misunderstanding what the functions do: The encrypt and decrypt functions modify the contents of 'testdata' - try running this fragment and you'll see w ... |
Topic: SPI woes with CYWUSB6935 not reading MOSI line |
JBM
Replies: 2
Views: 4371
|
Forum: General CCS C Discussion Posted: Wed Feb 11, 2009 5:40 am Subject: SPI woes with CYWUSB6935 not reading MOSI line |
Thanks for your post PCM programmer, but it turns out my problem was an as-yet-unidentified hardware fault in that particular board I was developing my driver code on. I happened to switch to another ... |
Topic: SPI woes with CYWUSB6935 not reading MOSI line |
JBM
Replies: 2
Views: 4371
|
Forum: General CCS C Discussion Posted: Tue Feb 10, 2009 12:13 pm Subject: SPI woes with CYWUSB6935 not reading MOSI line |
I have a project using a CYWUSB6935 and a PIC18F2525, but it seems the radio chip isn't paying attention to data being sent on the MOSI line:
All attempts to read a register return the value 0x07, ... |
Topic: max array size PIC18F4620 |
JBM
Replies: 1
Views: 3785
|
Forum: General CCS C Discussion Posted: Sat May 13, 2006 11:13 am Subject: max array size PIC18F4620 |
Just a hunch-
There isn't a problem with the amount of RAM to store the array in, but looks like it's to do with how you're addressing it:
in CCS, an int = int8 = 8 bits, with a maximum of 256
th ... |
Topic: Odd printf behaviour |
JBM
Replies: 4
Views: 6665
|
Forum: General CCS C Discussion Posted: Sun Apr 30, 2006 2:35 pm Subject: Odd printf behaviour |
This particular implementation has been designed to hopefully aviod such problems. By that I mean that it reads in the entire 512 byte block to to a RAM buffer, and fgetch() simply decides whether or ... |
Topic: Odd printf behaviour |
JBM
Replies: 4
Views: 6665
|
Forum: General CCS C Discussion Posted: Sun Apr 30, 2006 1:54 pm Subject: Odd printf behaviour |
Well, your suggestion worked PCM Programmer, but I don't understand why a delay (of any length) would alter matters here (though it clearly does). I'm not waiting for I/O and I'm not causing any side ... |
Topic: Odd printf behaviour |
JBM
Replies: 4
Views: 6665
|
Forum: General CCS C Discussion Posted: Sat Apr 29, 2006 3:16 pm Subject: Odd printf behaviour |
Nothing new about the subject, to be fair, but this one isn't to do with mis-printing of floating point numbers or the like.
I have a piece of code which only works when the printf() statements are ... |
Topic: Interrupt re-entrany problems |
JBM
Replies: 6
Views: 9960
|
Forum: General CCS C Discussion Posted: Tue Apr 04, 2006 11:04 am Subject: Interrupt re-entrany problems |
Well, yes and no.
fclose() calls other functions, one of which is delay_ms(). So any time delay_ms() is called (like during the 200ms delay in the main loop) , interrupts are disabled.
Any othe ... |
Topic: Interrupt re-entrany problems |
JBM
Replies: 6
Views: 9960
|
Forum: General CCS C Discussion Posted: Tue Apr 04, 2006 10:56 am Subject: Interrupt re-entrany problems |
Nice idea, but i have a statement
delay_ms(200);
which rather prohibits that - checking for a set bit every 200ms just isn't fast enough when power is going down.
I know i could call th ... |
Topic: Interrupt re-entrany problems |
JBM
Replies: 6
Views: 9960
|
Forum: General CCS C Discussion Posted: Tue Apr 04, 2006 10:22 am Subject: Interrupt re-entrany problems |
I'm currently writing a program which has a loop which takes a temperature reading, does a delay_ms(200), writes out to a MMC, and continutes looping.
Since MMCs need to be written to in 512 byte ... |
Topic: PIC16F88 comparator |
JBM
Replies: 2
Views: 13405
|
Forum: General CCS C Discussion Posted: Wed Mar 08, 2006 3:30 pm Subject: PIC16F88 comparator |
PCM, you never cease to amaze me.
Thanks a million.
-JBM |
Topic: SD Code |
JBM
Replies: 3
Views: 13119
|
Forum: General CCS C Discussion Posted: Wed Mar 08, 2006 3:23 pm Subject: SD Code |
1) This is not the correct forum for code queries. That would be the general discussion forum.
2) If you have a recent version of PCH, just look in the drivers folder of your install for mmc_spi.c ... |
Topic: PIC16F88 comparator |
JBM
Replies: 2
Views: 13405
|
Forum: General CCS C Discussion Posted: Wed Mar 08, 2006 3:03 pm Subject: PIC16F88 comparator |
I'm trying to use the PIC16F88's internal comparator, but so far, no joy.
Here's my code:
#include <16F88.h>
#fuses INTRC_IO, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=8 ... |
Topic: 18F87J10 Question |
JBM
Replies: 5
Views: 9752
|
Forum: General CCS C Discussion Posted: Tue Feb 28, 2006 5:00 am Subject: 18F87J10 Question |
I've had a little bit of experience with the the 18F67J10, the little brother (same series though) as the 18F87J10.
One thing to be VERY careful about is the ENVREG pin - this denotes whether you w ... |
Topic: MAX6675 driver |
JBM
Replies: 3
Views: 52782
|
Forum: Code Library Posted: Sun Feb 26, 2006 4:33 pm Subject: MAX6675 driver |
Below is my driver for the MAX6675, a chip which interfaces to a K-type thermocouple over a simple SPI bus.
The driver implements a software SPI port, so there is no need for dedicateed hardware- a ... |
|