Search found 1140 matches

by Jerry Messina
Wed May 27, 2020 8:38 pm
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 4094

Re: ST7565 GLCD Support

I don't have any tested code for Swordfish but I do have some Swordfish code which I ported over from Firewing (which 100% works)... That LCD module in your dogm.bas has the ability to map the LCD data pins anywhere you like. That's a nice feature! I'm going to steal that code and put it into the s...
by Jerry Messina
Sat May 23, 2020 3:48 pm
Forum: IDE
Topic: MPASM and MPLABX
Replies: 2
Views: 36

Re: MPASM and MPLABX

Thanks Gary. I should add... you really only need the mplabx/mpasmx files from 5.35 if you're trying to create your own device libraries. Otherwise, everything you need is included with the compiler. The version of mpasmx included with SF has a modified database file to fix some issues with the stan...
by Jerry Messina
Sat May 23, 2020 10:49 am
Forum: IDE
Topic: MPASM and MPLABX
Replies: 2
Views: 36

MPASM and MPLABX

I just thought I should warn anyone that likes to keep MPLABX up to date... The recent MPLABX 5.40 update dropped support for the mpasmx assembler that's required for Swordfish and all the utilities. The last version of MPLABX that includes mpasmx 5.87 is MPLABX 5.35, so if you update be sure to kee...
by Jerry Messina
Wed May 20, 2020 8:57 am
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 4094

Re: ST7565 GLCD Support

The controller can be set for either, but I think the DOGM128W-6 only has the SPI connections (at least that's all I see documented).
by Jerry Messina
Tue May 19, 2020 3:25 pm
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 4094

Re: ST7565 GLCD Support

I don't really use the GLCD displays, so I'm not the best one to ask.

If you look at the standard driver S1D15G00.bas you can see how to switch a driver over to SPI
by Jerry Messina
Tue May 19, 2020 1:05 pm
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 4094

Re: ST7565 GLCD Support

I think the "ST7665R driver" is just a typo. The EA DOGM128W-6 uses an ST7565R controller, same as the code posted above. The real problem is that the DOGM128 uses serial SPI to communicate and the ST7565R.bas driver in the above posts from skartalov uses a parallel interface, so that code won't wor...
by Jerry Messina
Tue May 19, 2020 10:58 am
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 4094

Re: ST7565 GLCD Support

Also can anyone explain if I need an external oscillator? As long as you include "intosc.bas" in your main program it should set it to run at the specified "clock=" freq. Does PORTA.1 toggle? That should give you a good indication that it's running. I can't help much with the display... I've never ...
by Jerry Messina
Sat May 09, 2020 11:15 pm
Forum: General
Topic: Using MCC for config
Replies: 8
Views: 730

Re: Using MCC for config

PPS Tools is available for download on the wiki.

http://www.sfcompiler.co.uk/wiki/pmwiki ... er.PPSTool
by Jerry Messina
Sat May 09, 2020 11:13 pm
Forum: Wiki Announcements
Topic: PPS Tool v0.0.6.1
Replies: 0
Views: 219

PPS Tool v0.0.6.1

There's a new PPS Tool utility available for download

http://www.sfcompiler.co.uk/wiki/pmwiki ... er.PPSTool
by Jerry Messina
Wed May 06, 2020 9:50 am
Forum: Modules
Topic: Can't get spi to read data
Replies: 6
Views: 681

Re: Can't get spi to read data

If you're using an older version of spi.bas you should check the transfer() routines. Some versions of the function returned the value in the SSPBUF register. They were declared something like this... public inline function transfer(b as WREG) as SSPBUF Note the 'as SSPBUF' as the return value. The ...
by Jerry Messina
Tue May 05, 2020 2:34 pm
Forum: Modules
Topic: Can't get spi to read data
Replies: 6
Views: 681

Re: Can't get spi to read data

Great. The ADCON/ANSEL/XXXXX varies from device to device. That's why it's best to use SetAllDigital Are you able to send me a new code to get the latest or does that have to come from David? There's a "check for updates" button in the IDE Help | About window. If you need your registration number yo...
by Jerry Messina
Tue May 05, 2020 10:39 am
Forum: Modules
Topic: Can't get spi to read data
Replies: 6
Views: 681

Re: Can't get spi to read data

I assume you're using the SPI.bas library module from the latest version (2.2.3.2) and have copied it and renamed the module to SPI1. I have also put a statement to show that TRISB.4, the SDI pin, is an input. This should satisfy the SetAllDigital() call requirement. In the parent routine only AN2 i...
by Jerry Messina
Mon May 04, 2020 4:02 pm
Forum: General
Topic: Using MCC for config
Replies: 8
Views: 730

Re: Using MCC for config

It's a port I did for Swordfish based on the PPS tool from https://sourceforge.net/projects/pps-tool/ so most of the credit goes to petereverett. It only works with devices that are part of mplabx MCC (so newer chips only) but that includes the Q43. It's a bit of cut-and-paste in its current form bu...
by Jerry Messina
Mon May 04, 2020 3:32 pm
Forum: General
Topic: Using MCC for config
Replies: 8
Views: 730

Re: Using MCC for config

I have a PPS tool too that I haven't posted yet, if that's of any interest.
by Jerry Messina
Mon May 04, 2020 3:25 pm
Forum: General
Topic: Using MCC for config
Replies: 8
Views: 730

Re: Using MCC for config

You caught me in mid-edit. I thought I had already added it to the IDE plugin menu, but looks like I never got to it.

You can run the tool standalone from the Tools folder or add it to the IDE.