Search found 139 matches

by Senacharim
Wed Feb 27, 2013 6:08 pm
Forum: Compiler
Topic: 64 bit arithmetic
Replies: 8
Views: 5233

Ah, in that case I'd suggest scaled integer math.

Or, if the inputs will always fall within a certain expected range a lookup-table would be faster depending upon your desired degree of accuracy.

Can you give some more specific examples of the code/operation you're attempting to perform/solve?
by Senacharim
Wed Feb 27, 2013 5:38 pm
Forum: Compiler
Topic: 64 bit arithmetic
Replies: 8
Views: 5233

Were I doing it, I'd pass them to a function which temporarily puts the values into 64 bit unsigned variables, perform the math, and then pass back the result in 32 bit format.
by Senacharim
Thu Feb 21, 2013 3:45 pm
Forum: Compiler
Topic: 18F25K20
Replies: 8
Views: 7172

Lots of the system designators ('OSC', for example) differ in the K series PICs from others in the PIC18 line. You'll need to adapt your code to suit.

Also, it's 'FOSC'

Read those specs! Pay attention and you'll do fine.
by Senacharim
Tue Feb 12, 2013 5:58 pm
Forum: IDE
Topic: ubuntu wine
Replies: 3
Views: 4663

I'd be curious to know if this (Ubuntu -> Wine -> Swordfish) works, as I've been maintaining (for years!!) a virtualbox'd Windows XP for no other reason than to code for PICs with Swordfish...
by Senacharim
Sun Feb 10, 2013 6:34 pm
Forum: General
Topic: pic to pic communication
Replies: 1
Views: 2009

USART is one way, yes. You're on the right track.
by Senacharim
Sat Jan 26, 2013 4:04 am
Forum: General
Topic: An all-PIC project. aka Braggart Thread.
Replies: 9
Views: 5795

I'm in Ventura, kinda "on the way" to San Diego if you're driving from a certain direction...
by Senacharim
Wed Jan 23, 2013 8:23 pm
Forum: General
Topic: An all-PIC project. aka Braggart Thread.
Replies: 9
Views: 5795

by Senacharim
Wed Jan 23, 2013 8:22 pm
Forum: General
Topic: An all-PIC project. aka Braggart Thread.
Replies: 9
Views: 5795

There's a (crummy) piece of software called (I think) DRU-II Config. If you get it, it serial comms to/from the radar and can be used to change the settings. I'd actually written a module for changing the radar settings, but that external drive is in storage (I recently moved to Cali) and will conti...
by Senacharim
Fri Jan 04, 2013 10:26 pm
Forum: General
Topic: An all-PIC project. aka Braggart Thread.
Replies: 9
Views: 5795

I know it's in the range of "a few hundred dollars" (I was insulated from pricing concerns) and definitely less than 1000.
by Senacharim
Thu Dec 20, 2012 10:11 pm
Forum: General
Topic: An all-PIC project. aka Braggart Thread.
Replies: 9
Views: 5795

The radar is a DRU-III (directional radar unit 3) from Decatur, features configurable serial output. Sadly, no project page, as it was work-for-hire for RU2 Systems, and they've chosen not to share. However, I'll be glad to answer questions. The VMS display is driven by 20 18F2520 chips. They are al...
by Senacharim
Thu Dec 13, 2012 3:02 pm
Forum: Modules
Topic: ADC.bas
Replies: 4
Views: 3073

What does the spec for the 18f2550 say the ADC returns? If it's a 10-bit number, then you'll just need to scale it down to 8 bits if you need 8 bits.

You can do it!
by Senacharim
Wed Dec 05, 2012 3:34 pm
Forum: General
Topic: An all-PIC project. aka Braggart Thread.
Replies: 9
Views: 5795

An all-PIC project. aka Braggart Thread.

I realize this has been up for a couple years, and it just recently occurred to me to share it here... http://youtu.be/M8DERzTSpK0 What you're seeing there is a VMS (Variable Message Sign) with functions entirely via numerous PIC18's, all of which were coded (*by me!*) in Swordfish. I attribute a gr...
by Senacharim
Wed Nov 14, 2012 4:44 pm
Forum: General
Topic: No Noose is good noose?
Replies: 7
Views: 4022

Same situation, haven't had a coding problem with Swordfish in ages, and the code I produce with it at work my boss considers an "industrial secret" (*snort, tee hee) so I cannot show it off.
by Senacharim
Wed Nov 14, 2012 4:42 pm
Forum: General
Topic: RFID reader checksum problem
Replies: 11
Views: 6177

I'm glad you were helped.

(Jerry, you were right.)
by Senacharim
Wed Nov 14, 2012 4:33 pm
Forum: General
Topic: RFID reader checksum problem
Replies: 11
Views: 6177

Ascii 2 (start of text) and binary 2 are the same value. Ascii 3 (end of text) and binary 3 are the same value. (etc) Try it the way I described, far simpler, same data. STX (Hex) = 2 (Header) Data (Hex) = 0X04 0X15 0XAF 0X79 0X41 'from original post example 'decimal data = {4, 21, 175, 121, 65} 'de...