Search found 185 matches

by Jon Chandler
Tue Nov 17, 2009 11:18 pm
Forum: Compiler
Topic: Confused about crystals
Replies: 6
Views: 3715

Swordfish clock frequencies ARE in MHz. I just brought up the RTC crystals because your example corresponds the standard crystal frequency in KHz used with them. Sorry for the confusion. Swordfish takes care of all the timing issues as long as the crystal is within the specified ranges. I would haza...
by Jon Chandler
Tue Nov 17, 2009 9:41 pm
Forum: Compiler
Topic: Confused about crystals
Replies: 6
Views: 3715

The Swordfish Help files include a lot of information that is not in any of the printed documentation. Searching on CLOCK, I found the floowing answer to your question: "The crystal frequency of a device can be represented as a floating point number. For example, clock = 3.2768 This can be extremely...
by Jon Chandler
Tue Nov 17, 2009 4:47 am
Forum: Compiler
Topic: Confused about crystals
Replies: 6
Views: 3715

It's all handled behind scenes, but it depends on the correct clock frequency being specified.

I don't know if it can work for ANY clock frequency, but I do know it works fine with a 20 MHz crystal.
by Jon Chandler
Sun Nov 08, 2009 3:01 pm
Forum: IDE
Topic: software reset
Replies: 2
Views: 3191

I believe you're asking about how to make the bootloader automatically do a reset to download the hex file? The MCLoader (supplied with Swordfish) uses the RS-232 signal DTR to trigger a reset. A schematic is in the MCLoader docmentation file. (I can't figure out how to upload a picture - grrrr) Jon...
by Jon Chandler
Thu Nov 05, 2009 5:48 pm
Forum: General
Topic: odd pic problem on 18f6723
Replies: 3
Views: 2998

One thing I found recently...... If you use a variable name as a port pin: dim LED as PORTB.0 and then do something like: LED = 1 LED = 0 You won't see any change on the port pin. If you add a lin near the top of the program: HIGH (LED) or LOW(LED) the above works fine. I believe the added HIGH or L...
by Jon Chandler
Sat Oct 24, 2009 8:21 am
Forum: Compiler
Topic: Noob trouble PLEASE HELP!!!
Replies: 5
Views: 3685

I used to use the Olimex USB programmer. It was a constant headache trying to get the thing to work. The USB interface was never recognized from one session to the next and always took a few delete/re-install/reboot cycles to get it connected again. Regarding this problem, there is a jumper for usin...
by Jon Chandler
Wed Jan 28, 2009 2:46 am
Forum: Modules
Topic: SI2C Query
Replies: 6
Views: 5107

Steven,

This upgrade did the trick for me too in trying to determine some intermittent communications with a TI I2C chip. Thanks for the great support.


Jon
by Jon Chandler
Tue Jan 20, 2009 6:46 pm
Forum: IDE
Topic: w/SE how do you set up for a project for 18F4550
Replies: 4
Views: 3715

I don't believe the free Swordfish SE edition provides USB support.

I am currently working on a project with USB on a 18F2550 and it's working great! The HID interface is awesome. Plug in the hardware, start the software and it just works.

Jon
by Jon Chandler
Wed Jan 14, 2009 1:35 am
Forum: Compiler
Topic: A question about Structures
Replies: 1
Views: 1805

A question about Structures

If I have two structures, say A and B, and I define variables One, Two, Three, etc under each structure, are those variables independent? Does setting A.One to a value have any effect on B.One? I'm having some problems with recent program changes, and wondering if that's where the strangeness is com...
by Jon Chandler
Fri Sep 12, 2008 3:40 pm
Forum: IDE
Topic: Boot loader problems with a 18F4550
Replies: 2
Views: 3708

The problem is solved. I used a friend's PICKit 2 programmer to erase and reload the boot loader into 3 parts. Two of them work fine and the 3rd actually has a bad memory location reported by the PICKit software. For some reason, my Olimex PICStart+ clone can't erase the chips. It's always been a pa...
by Jon Chandler
Fri Sep 12, 2008 3:36 pm
Forum: Compiler
Topic: GLCD problem *starting Swordfish and basic* Solved!!
Replies: 8
Views: 4387

You may have to disconnect the display to use ICSP, as it uses 2 bits of the B port. With the GLCD databus connected to the B Port, it may be loaded down too much to function. If available, using a different port for the GLCD might be better.


Jon
by Jon Chandler
Tue Sep 09, 2008 3:01 pm
Forum: IDE
Topic: Boot loader problems with a 18F4550
Replies: 2
Views: 3708

Boot loader problems with a 18F4550

I'm having a problem once in a while using the boot loader with an 18F4550. The boot loader with work fine for anywhere between a handful of load cycles and a hundred or more but once in a while it hangs up during the load process. This might be WinXP delaying the data transfer but I'm not sure. Mos...
by Jon Chandler
Fri Sep 05, 2008 1:38 pm
Forum: Compiler
Topic: Clearing a LCD-area as soon as possible
Replies: 7
Views: 4259

An easy way to clear the screen or invert the screen is to create a screen-size graphic and use the setimage command. If the screen has static information (like a title and boxes for example), creating a graphic with everything on it may be faster than redrawing the screen each time it's cleared. Jon
by Jon Chandler
Tue May 20, 2008 9:50 pm
Forum: Modules
Topic: Smallest form factor digital photo frame
Replies: 3
Views: 3589

WalMart has some "key chain" photo frames....I think they have a 96 x 96 color display, approximately 1" square. They cost something like $15!

From what I've seen, they are USB, but they don't behave as a standard USB memory device....they require special software to load pictures I believe.

Jon
by Jon Chandler
Thu Apr 17, 2008 2:34 pm
Forum: Wiki Announcements
Topic: VS1001 Audio Decoder Library Available
Replies: 9
Views: 13267

Octal Wrote: I received my EasyMP3 Board 10 days ago and I was thinking to write such a driver in order to read some mp3 files. The idea was to reuse Steven SD driver as a storage board for mp3 files with it to make an automatic audio reminder. I'd be very interested in this. I've been thinking of b...