Search found 1473 matches

by Jerry Messina
Tue Jul 05, 2011 1:30 pm
Forum: General
Topic: 18f26k80 with PWM
Replies: 15
Views: 9625

Richard -

Which compiler/version are you using?

The reason I ask is that many of the registers you're using are located in bank15 but are outside the access bank, so they require the use of bank select instructions.
by Jerry Messina
Fri Jul 01, 2011 4:21 pm
Forum: Compiler
Topic: Need pointers on Ethernet with ENC28J60 or J600
Replies: 9
Views: 6790

I've used it with an 18F2620 and an 18F4685, although to be honest I can't say if it ran "right out of the box". It's been a long time. The routines I use now are heavily modified versions of those originals. I'll look around and see if I kept any of the original test versions I used when I first st...
by Jerry Messina
Thu Jun 30, 2011 3:02 pm
Forum: Compiler
Topic: Need pointers on Ethernet with ENC28J60 or J600
Replies: 9
Views: 6790

David's port of the microchip stack works pretty well with the ENC28J60

http://www.sfcompiler.co.uk/wiki/pmwiki ... r.Ethernet
by Jerry Messina
Mon Jun 27, 2011 3:18 pm
Forum: General
Topic: consultant needed
Replies: 5
Views: 3881

Looking at the datasheet for the 16C54 there is only one 8 bit timer. So I don't know how it is done. Just guessing, but you could use a single timer for both generating the output and measuring RPM... you'd just have to do everything "by hand" and use the timer purely as a timebase for counting. I...
by Jerry Messina
Tue Jun 21, 2011 5:01 pm
Forum: User Modules
Topic: MCP342x ADC module
Replies: 8
Views: 6148

Another thing to watch out for with the K22 series is that the IO pins have slew-rate control, and they default to 'slow' mode.

This slows the pin transitions down by a factor of 10, so that can be an issue as well. See the SLRCON register.
by Jerry Messina
Tue Jun 14, 2011 9:46 am
Forum: Modules
Topic: SetAllDigital() for J and K series with SE support
Replies: 13
Views: 13966

Thanks Rickado. The K22 series certainly has a number of features that need taking care of! There are a number of parts that have a similar feature to the K22 "DAC" output, although it's usually called a Comparator Voltage Reference Module. Also For the 18F1230 and 18F1330 devices I see you have Ena...
by Jerry Messina
Sun Jun 12, 2011 3:10 pm
Forum: Compiler
Topic: Parsing Bug in Floating point routines
Replies: 6
Views: 3629

This one's definitely up to David.

I did a similar quick check going +ve, and didn't notice anything funny (at least for the few values I looked at).
by Jerry Messina
Sun Jun 12, 2011 2:18 pm
Forum: Compiler
Topic: Parsing Bug in Floating point routines
Replies: 6
Views: 3629

x=1.234E-13 // parsing reliable at E-13 ... This shows the underlying math is correct but there is a definite bug in the program parser That sure seems to be the case. You're right, as the exponent becomes increasingly more negative, more and more digits disappear. Here's a program fragment and the...
by Jerry Messina
Sun Jun 12, 2011 2:06 pm
Forum: User Modules
Topic: Type K thermocouple conversion module
Replies: 5
Views: 4056

Peter - I haven't worked through all the math, but it would seem that a lot of the compensations are probably outside the range of single-precision floats, which only give you 6-7 decimal digits of precision. When you have operations involving a wide range of numbers, operations like addition and su...
by Jerry Messina
Fri Jun 10, 2011 12:27 pm
Forum: Modules
Topic: SetAllDigital() for J and K series with SE support
Replies: 13
Views: 13966

In the Pic18F2x/4xk22 series CMxCON0 => 0 has nothing to do with analog=> digital Input/output It doesn't? 18.2.4 COMPARATOR OUTPUT SELECTION The output of the comparator can be monitored by reading either the CxOUT bit of the CMxCON0 register or the MCxOUT bit of the CM2CON1 register. In order to ...
by Jerry Messina
Thu Jun 09, 2011 10:35 am
Forum: Modules
Topic: SetAllDigital() for J and K series with SE support
Replies: 13
Views: 13966

Thanks Rickado, I sure did.

I updated the original post to add those in (now v1.5).

I'm sure there's a lot more out there, too, so if anyone's got some (or any corrections), feel free to pipe up.
by Jerry Messina
Tue Jun 07, 2011 6:45 pm
Forum: Modules
Topic: SetAllDigital() for J and K series with SE support
Replies: 13
Views: 13966

SetAllDigital() for J and K series with SE support

Here's an updated version of SetAllDigital() with support for many of the J and K series parts and the SE compiler. EDIT: check the SetDigitalIO wiki page for the latest version I tried to cover some of the odd-ball ones like those that have non-access bank registers and parts that have shared overl...
by Jerry Messina
Tue Jun 07, 2011 6:29 pm
Forum: Compiler
Topic: detect SE compiler
Replies: 2
Views: 1765

Yeh, pretty much. I have a new, expanded version of SetAllDigital() that tries to deal with the odd-ball chips that have certain registers located in that upper non-access bank. Right now I've got a set of macros that will use a MOVFF instruction to read/write the registers so that you can use it wi...
by Jerry Messina
Tue Jun 07, 2011 1:43 pm
Forum: Compiler
Topic: detect SE compiler
Replies: 2
Views: 1765

detect SE compiler

Is there any way to detect if you're compiling with the SE compiler vs the standard one?
by Jerry Messina
Tue Jun 07, 2011 11:21 am
Forum: Compiler
Topic: Compiler issues with 18F25K22 - SOLVED!
Replies: 8
Views: 5056

Glad you've got everything working so far, Peter. A little word of warning: one thing David just pointed out to me is that the SE version has no provisions for setting the Bank Select Register, hence the single bank limit. When using SE, you could run into issues with devices that have SFR's that ar...