Search found 152 matches

by RangerBob
Tue Mar 07, 2017 9:19 am
Forum: User Modules
Topic: SSD1306 I2C driver
Replies: 31
Views: 45719

Re: SSD1306 I2C driver

OK, not much information there. I poked around a number of similar listings and no-one seems to have any kind of detailed information about them. I would suggest you try the re-mapping registers and see if you can get an idea for how its hooked up. I have ordered a couple for the princely sum of £2 ...
by RangerBob
Mon Mar 06, 2017 9:08 am
Forum: User Modules
Topic: SSD1306 I2C driver
Replies: 31
Views: 45719

Re: SSD1306 I2C driver

Hi Jon, Sorry for chipping in late, busy weekend! It's been a while since I needed to look at these displays, but the SSD1306 is a fairly generic chip whilst the panels they are physically hooked up to can be connected in a number of ways. If you can get hold of the display datasheet, great; they sh...
by RangerBob
Thu Oct 01, 2015 10:05 am
Forum: Modules
Topic: updated Ethernet library with 18FxxJ60 and ENC424J600
Replies: 2
Views: 6173

Re: updated Ethernet library with 18FxxJ60 and ENC424J600

Good stuff Jerry! Will check it out when I get chance.
by RangerBob
Fri Aug 14, 2015 8:20 am
Forum: User Modules
Topic: USB PIC18F2550 Keyboard/HID query
Replies: 3
Views: 6796

Re: USB PIC18F2550 Keyboard/HID query

Absolutely correct. If there isn't a release report the OS will keep spewing character. But if you look at the "Sendkey" subroutine posted above, thats exactly what happens. So to send a sequence "A,B,C,D" you would just need to call (using the KeyDefs module for the constants): SendKey(a, LeftShift...
by RangerBob
Thu Aug 13, 2015 10:46 am
Forum: User Modules
Topic: USB PIC18F2550 Keyboard/HID query
Replies: 3
Views: 6796

Re: USB PIC18F2550 Keyboard/HID query

The SendKey function should look like this: Sub SendKey(pKey As Byte, pModifier As Byte = None) // Send desired key KeyReport.Modifier = pModifier KeyReport.Reserved = 0 KeyReport.KeyArray0 = pKey KeyReport.KeyArray1 = 0 KeyReport.KeyArray2 = 0 KeyReport.KeyArray3 = 0 KeyReport.KeyArray4 = 0 KeyRepo...
by RangerBob
Mon Jul 27, 2015 8:21 am
Forum: General
Topic: USB Bootloader with PICKit 2? Confused!
Replies: 22
Views: 16972

Re: USB Bootloader with PICKit 2? Confused!

Hey Aresby, good to hear you got it working.

If it helps to add my own "doh" moment; the links I sent you should work now. It helps if you haven't "temporarily" disabled your dropbox syncing as I did on friday. ;)
by RangerBob
Fri Jul 24, 2015 2:40 pm
Forum: General
Topic: USB Bootloader with PICKit 2? Confused!
Replies: 22
Views: 16972

Re: USB Bootloader with PICKit 2? Confused!

You can get the updated USB 1.4.3 library from the User Modules Page: http://www.sfcompiler.co.uk/wiki/pmwiki.php?n=SwordfishUser.USBLibrary Check your PM for more information. Here's a Hex file compiled and Tested on my 18F4550 PICDEM FS USB board. I just changed the Led ports, from the one I gave ...
by RangerBob
Fri Jul 24, 2015 1:58 pm
Forum: General
Topic: USB Bootloader with PICKit 2? Confused!
Replies: 22
Views: 16972

Re: USB Bootloader with PICKit 2? Confused!

Has anyone actually ever used this project code successfully? Yup, I wrote up the demo after a good chunk of it went into a commercial project (along with a bunch more code) ;). I've also used the core of that code, with updates to Jerrys new USB stack on 18F27J53, 18F47J53 and 18F87J50 devices. As...
by RangerBob
Wed Apr 08, 2015 8:48 am
Forum: Modules
Topic: PIC18F66J60 / 18F66J90 - Integral Ethernet
Replies: 20
Views: 13783

Re: PIC18F66J60 / 18F66J90 - Integral Ethernet

Nice one Jerry,

I'll download it and give it a buzz at some point this week on our PICDEM2 board, plus a couple of custom boards I have.

Regards,

Rangerbob
by RangerBob
Tue Mar 24, 2015 2:53 pm
Forum: Modules
Topic: PIC18F66J60 / 18F66J90 - Integral Ethernet
Replies: 20
Views: 13783

Re: PIC18F66J60 / 18F66J90 - Integral Ethernet

Just to chime in that the swordfish ENC28J60 modules appear to be pretty much rock solid from my testing and use (I do have some small changes / fixes for it). Not entirely sure what you want to use from it, but I did create a "Simple" HTTP Client a while back which may be of use: http://digitaldiy....
by RangerBob
Tue Feb 03, 2015 12:16 pm
Forum: User Modules
Topic: SSD1306 I2C driver
Replies: 31
Views: 45719

Re: SSD1306 I2C driver

It does rather sound like they're trying to pullup the reset line with a Cap ;)

Edit: Even looking at the picture on their website, R4 looks like a cap to me!
by RangerBob
Tue Feb 03, 2015 12:12 pm
Forum: User Modules
Topic: SSD1306 I2C driver
Replies: 31
Views: 45719

Re: SSD1306 I2C driver

As for the setup, if you look at the SSD1306 datasheet the actual command for segment remap is $A0 or $A1, similar for Set_Start_Line - you add $40 to the line to get the actual command. Just a different way to do things I think - some people have a sub they call with 0/1 as options, I have individ...
by RangerBob
Tue Feb 03, 2015 11:51 am
Forum: Compiler
Topic: Using _protected regions to recoup unusable ram
Replies: 2
Views: 2505

Re: Using _protected regions to recoup unusable ram

Good tip.

// the 18F13K50 has 512 bytes of total ram, but it's split into two banks with
// an unused block of data memory in between them...
// 000-0FF 256 bytes
// 100-1FF <unused>
// 200-2FF 256 bytes (gen purpose/usb ram)

WTF Microchip!?! What on earth are they thinking?
by RangerBob
Tue Feb 03, 2015 11:35 am
Forum: User Modules
Topic: SSD1306 I2C driver
Replies: 31
Views: 45719

Re: SSD1306 I2C driver

Ok, I've gone through and stripped out the more weird stuff from the code, now its just a single file that uses the inbuilt MSSP routines. As you said, different displays seem to demand different setup commands and I can't even get hold of the datasheet for your display! The display I'm using is a u...
by RangerBob
Mon Feb 02, 2015 5:09 pm
Forum: User Modules
Topic: SSD1306 I2C driver
Replies: 31
Views: 45719

Re: SSD1306 I2C driver

I have a working set of SSD1306 routines but..... *WARNING* They are very odd as there is a multi-master I2C on the bus in my application, and I have to keep a polled USB connection going at the same time. As such the Display I2C commands are bitbanged, whilst saving the MSSP settings for also actin...