I have uploaded a new module for the PCF8574 and LCD
https://www.sfcompiler.co.uk/wiki/pmwik ... LCDPCF8574
Search found 167 matches
- Mon Jun 15, 2020 10:00 pm
- Forum: Compiler
- Topic: Structure in Module and choice in Program, again...
- Replies: 11
- Views: 6373
- Mon Jun 15, 2020 3:54 pm
- Forum: Compiler
- Topic: Default Variable Assignment
- Replies: 27
- Views: 3860
Re: Default Variable Assignment
Sorry for my question, but I am just trying to understand how does the new compiler deal with variable assignments now for example the code below that was declared at the start of the prog without any assignment?. Dim x As Byte If the variable "x" has not been initialised, the compiler used to show ...
- Mon Jun 15, 2020 3:19 pm
- Forum: Compiler
- Topic: Using I2C to scan for devices
- Replies: 2
- Views: 784
Re: Using I2C to scan for devices
Bit 0 of the address is the RD_WRN bit, so I only use the even numbered "addresses". (I can't recall ever seeing a "read-only" device). If the slave is present, it will ACK its address byte, so no other data needs to be sent. Besides, you never know what you might be doing there. I also add a littl...
- Mon Jun 15, 2020 12:09 pm
- Forum: Compiler
- Topic: Default Variable Assignment
- Replies: 27
- Views: 3860
Re: Default Variable Assignment
This is a great addition to the compiler, It will save having to search through the code to find the default values..
Thank you for adding this David.
Thank you for adding this David.

- Mon Jun 15, 2020 12:01 pm
- Forum: Compiler
- Topic: Using I2C to scan for devices
- Replies: 2
- Views: 784
Using I2C to scan for devices
Hey guys, I have been trying to make a simple sub to read all the connected addresses on a I2C bus, the following routine works, but sometimes I get strange results on a serial monitor (as in the bus thinks there's 127 addresses on it?, when there's not), now I don't know if the sub is fully correct...
- Sat Jun 13, 2020 7:35 pm
- Forum: Modules
- Topic: USB HID Bootloader v1.4.3 over memory
- Replies: 10
- Views: 2082
Re: USB HID Bootloader v1.4.3 over memory
That's great, Works perfectly!, and has given me loads of breathing space..
Thank you for taking the time to make these changes Jerry, I really appreciate it..

- Fri Jun 12, 2020 9:12 pm
- Forum: Modules
- Topic: USB HID Bootloader v1.4.3 over memory
- Replies: 10
- Views: 2082
Re: USB HID Bootloader v1.4.3 over memory
I'll have to take another look at that code and see if there's anything that can be trimmed down. I remember doing a lot of that already, but I might be able to squeeze a few more bytes out of it. I could probably do something with the sections that allow programming of the CONFIG and IDLOC section...
- Fri Jun 12, 2020 6:49 pm
- Forum: Modules
- Topic: USB HID Bootloader v1.4.3 over memory
- Replies: 10
- Views: 2082
Re: USB HID Bootloader v1.4.3 over memory
Can you live without the status led in the bootloader? Sure, and yes that has lowered the program byte output, thank you Jerry. Your other option would be to use USBSystem.bas from v1.4.3 for the bootloader Yes I see the difference switching between USBSystem.bas v1.4.3, and USBSystem.bas v1.4.4 A ...
- Fri Jun 12, 2020 1:48 pm
- Forum: Modules
- Topic: USB HID Bootloader v1.4.3 over memory
- Replies: 10
- Views: 2082
USB HID Bootloader v1.4.3 over memory
Hi guys I have downloaded the latest USB Lib v1.4.3 and replaced the USBsystems.bas v1.4.4 file. I am trying to compile the program HIDBootloader18F.bas using the 18F2553 Bit Wacker board, I have changed nothing in code apart from uncommenting the Bit Wacker hardware, when I compile the code it goes...
- Thu Jun 11, 2020 12:20 pm
- Forum: IDE
- Topic: PicKit4 as a programmer in IDE
- Replies: 17
- Views: 2795
Re: PicKit4 as a programmer in IDE
I should have also read the documentation 'IPECMD.htm'! :lol: I also see you can use the PicKit3 too with the same command line and parameters, makes the command line a very versatile tool. I was also wondering how the PicKit set the correct target voltage, and I think I'm right in saying that the c...
- Wed Jun 10, 2020 11:52 pm
- Forum: IDE
- Topic: PicKit4 as a programmer in IDE
- Replies: 17
- Views: 2795
Re: PicKit4 as a programmer in IDE
Yes that's fixed it..
Doh!! what a simple mistake, I should have copied and pasted the parameter into the IDE
thanks Jerry for your help.

Doh!! what a simple mistake, I should have copied and pasted the parameter into the IDE

- Wed Jun 10, 2020 3:35 pm
- Forum: IDE
- Topic: PicKit4 as a programmer in IDE
- Replies: 17
- Views: 2795
Re: PicKit4 as a programmer in IDE
Thanks for you're suggestion Jerry. I have been using the following parameters, but no that doesn't seem to keep the command window open.
-TPPK4-OB-W-M-OL-P$target-device$-F$hex-filename$
That's why I wasn't sure if something relating to windows is stopping it or some compatibility issue?.
-TPPK4-OB-W-M-OL-P$target-device$-F$hex-filename$
That's why I wasn't sure if something relating to windows is stopping it or some compatibility issue?.
- Wed Jun 10, 2020 1:21 pm
- Forum: IDE
- Topic: PicKit4 as a programmer in IDE
- Replies: 17
- Views: 2795
PicKit4 as a programmer in IDE
Hey guys, I am trying to install PicKit4 as a programmer tool into the IDE, I have followed the excellent instructions as per the wiki page Adding MPLABX IPECMD. I have MplabX and Mplab v8.92 installed and running windows 10 64bit, but I have been unsuccessful in getting the PicKit4 to work with the...
- Tue Nov 26, 2019 7:48 pm
- Forum: User Modules
- Topic: MODULES FOR MCP23008 AND MCP9800
- Replies: 5
- Views: 3531
Re: MODULES FOR MCP23008 AND MCP9800
I have the module by Jon here for the MCP23008 - I'm not sure if its the latest version but it was one I had in my library.. 

- Thu Oct 31, 2019 10:18 am
- Forum: Compiler
- Topic: Request for SF support for new chip 18F27Q10
- Replies: 8
- Views: 3034
Re: Request for SF support for new chip 18F27Q10
Thank you Jerry, David for the hard work and update
The update has gone smoothly here..

The update has gone smoothly here..