Search found 1259 matches

by Jerry Messina
Tue Apr 06, 2021 10:40 am
Forum: Modules
Topic: i2c Does not want to show what's on the bus?
Replies: 5
Views: 747

Re: i2c Does not want to show what's on the bus?

No, you didn't do anything stupid. What that example is missing is the IO pin setup to switch pins to digital mode. Many of the IO pins default to analog mode at startup, and if they're in analog mode they always read '0'. For I2C that would look like an ACK. Add this to your '// import libraries' s...
by Jerry Messina
Sun Mar 14, 2021 2:14 pm
Forum: Modules
Topic: SOFTWARE UART - ASM ERRORS
Replies: 9
Views: 901

Re: SOFTWARE UART - ASM ERRORS

Glad you got it figured out. If you try the FDX module (hwsuart_FD.bas), you'll have to use something other than an 18F14K22. Full-duplex uses two independent TMRx and CCPx peripherals, one for TX and another for RX, and while the 14K22 has two TMR modules (TMR1/TMR3), it only has a single CCP1 peri...
by Jerry Messina
Sat Mar 13, 2021 12:42 pm
Forum: Modules
Topic: SOFTWARE UART - ASM ERRORS
Replies: 9
Views: 901

Re: SOFTWARE UART - ASM ERRORS

Lee - Could you post all of the actual code you're using? What you posted doesn't compile as is. Also, just so you know - in general, software UARTs are usually ok for sending data but have multiple issues reading data. Since there's no hardware involved, your code must be ready to receive a byte (i...
by Jerry Messina
Mon Mar 01, 2021 4:39 am
Forum: General
Topic: interested in new device support?
Replies: 12
Views: 2103

Re: interested in new device support?

Datasheets now rival War And Peace.

I'm not looking for anything specific, just how things go as you try various functions.
The new devices have some very different layouts.
by Jerry Messina
Tue Feb 23, 2021 1:59 pm
Forum: Compiler
Topic: Vector Interrupts
Replies: 8
Views: 2173

Re: Vector Interrupts

Well, almost a year later and I finally got around to doing an article on using vectored interrupts!

The new IVT V2.0 module in the latest update makes this much easier to setup.
There are also a few more examples and even versions of ISRRX and ISRTimer that support using them.
by Jerry Messina
Mon Feb 22, 2021 8:09 pm
Forum: Wiki Announcements
Topic: New Article: Using Vectored Interrupts with Swordfish
Replies: 1
Views: 10246

New Article: Using Vectored Interrupts with Swordfish

There's a new article describing how to use Vectored Interrupts with SF and the IVT.bas module.

This goes along with the IVT V2.0 module in the latest library update.
by Jerry Messina
Mon Feb 22, 2021 8:03 pm
Forum: Announcements
Topic: Swordfish Library and Device File Update 2_22_2021
Replies: 0
Views: 1349

Swordfish Library and Device File Update 2_22_2021

Swordfish Library and Device File Update 2_22_2021 This update for V2.2.3.6 has various device file and library updates, including: K83 device file updates to fix interrupt definitions updated IVT module for improved vectored interrupt support (IVT.bas V2.0) versions of ISRRX and ISRTimer for vector...
by Jerry Messina
Sat Feb 20, 2021 11:52 am
Forum: General
Topic: interested in new device support?
Replies: 12
Views: 2103

Re: interested in new device support?

Great, Lee. The Q41 has a lot of features to play around with. Sounds like you have all you'll need if your chips ever make the Great Escape!. It'd be good to get some feedback once you're all setup... there's bound to be some things I've missed along the way. I have some library updates that I'll b...
by Jerry Messina
Tue Feb 02, 2021 10:57 am
Forum: Modules
Topic: SOFTWARE UART - ASM ERRORS
Replies: 9
Views: 901

Re: SOFTWARE UART - ASM ERRORS

I think I may have "cried wolf" a bit hastily! I don't think you did. Your old PC probably has an older version of the compiler. The SUART.bas in SF VERSION 2.2.3.6 - ICC 1.2.0.7 will show the error. I tried to simplify some of the include files and left out some stuff. Sorry! The attached file sho...
by Jerry Messina
Wed Jan 13, 2021 5:40 pm
Forum: General
Topic: interested in new device support?
Replies: 12
Views: 2103

Re: interested in new device support?

Ruben,

If you go to "quick links" | "Members", David Barker you should be able to send a PM or email to David from there.

I don't have a phone number.
by Jerry Messina
Mon Jan 04, 2021 12:50 am
Forum: Modules
Topic: USART2 interupt
Replies: 8
Views: 768

Re: USART2 interupt

Two things... - Once you're using ISRRX then all read data has to come from the buffering in that module. Don't use UART.Read anything, you have to use the read routines in ISRRX - The ISRRX OnData event is called each time a char comes in, so you normally wouldn't try to read anything inside it. To...
by Jerry Messina
Fri Jan 01, 2021 7:37 pm
Forum: IDE
Topic: Problem with the path to the Library folder
Replies: 21
Views: 3412

Re: Problem with the path to the Library folder

Forgive me if this is off-base...
You're not looking for "project.idf" are you?
If so, try looking in the same folder as your program file. Same name, different extension
by Jerry Messina
Thu Dec 31, 2020 4:51 pm
Forum: Modules
Topic: USART2 interupt
Replies: 8
Views: 768

Re: USART2 interupt

Here's an example of using the new user-defined interrupt feature of ISRRX and ISRRX2 to share a single ISR, freeing up the low-priority interrupt for other uses. // ISRRX and ISRRX2 example using a single ISR // requires ISRRX and ISRRX2 v1.3 or later device = 18F27J13 clock = 32 include "intosc.ba...
by Jerry Messina
Wed Dec 30, 2020 6:13 pm
Forum: Modules
Topic: USART2 interupt
Replies: 8
Views: 768

Re: USART2 interupt

Garry - Here's a copy of the new ISRRX2 module, along with updated ISRRX and PPS modules. There's an example program in there too: J13_isrrx1_isrrx2.bas // ISRRX and ISRRX2 example device = 18F27J13 clock = 32 include "intosc.bas" #option DIGITALIO_INIT = true // automatically call SetAllDigital at ...
by Jerry Messina
Wed Dec 30, 2020 2:33 pm
Forum: Modules
Topic: USART2 interupt
Replies: 8
Views: 768

Re: USART2 interupt

I have a version of ISRRX2 that you can use along with ISRRX which uses both interrupts... you set one as ipHigh and the other as ipLow. I also have provisions for using both of those modules along with a user-defined ISR so they can share a single interrupt (untested). I think I have a 27J13 around...