Search found 169 matches

by bitfogav
Tue Jun 16, 2020 1:22 pm
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 14835

Re: Default Variable Assignment

octal wrote:just make sure you use always the same colors when coding on your computer.
Ok Ok.. good tip Octal... :lol:

colorssf.png
colorssf.png (9.62 KiB) Viewed 7697 times
by bitfogav
Tue Jun 16, 2020 12:49 pm
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 14835

Re: Default Variable Assignment

... and just to be REALLY clear, my use of "RHS" was NOT how the Urban Dictionary defines it! https://www.urbandictionary.com/define.php?term=RHS :lol: haha Jerry... The hint and warning mechanism has not changed between versions. If you are not seeing hints or messages in similar use cases, you sh...
by bitfogav
Mon Jun 15, 2020 3:54 pm
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 14835

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 ...
by bitfogav
Mon Jun 15, 2020 3:19 pm
Forum: Compiler
Topic: Using I2C to scan for devices
Replies: 2
Views: 2259

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...
by bitfogav
Mon Jun 15, 2020 12:09 pm
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 14835

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. :D
by bitfogav
Mon Jun 15, 2020 12:01 pm
Forum: Compiler
Topic: Using I2C to scan for devices
Replies: 2
Views: 2259

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...
by bitfogav
Sat Jun 13, 2020 7:35 pm
Forum: Modules
Topic: USB HID Bootloader v1.4.3 over memory
Replies: 10
Views: 5044

Re: USB HID Bootloader v1.4.3 over memory

That's great, Works perfectly!, and has given me loads of breathing space.. :D Thank you for taking the time to make these changes Jerry, I really appreciate it..
by bitfogav
Fri Jun 12, 2020 9:12 pm
Forum: Modules
Topic: USB HID Bootloader v1.4.3 over memory
Replies: 10
Views: 5044

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...
by bitfogav
Fri Jun 12, 2020 6:49 pm
Forum: Modules
Topic: USB HID Bootloader v1.4.3 over memory
Replies: 10
Views: 5044

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 ...
by bitfogav
Fri Jun 12, 2020 1:48 pm
Forum: Modules
Topic: USB HID Bootloader v1.4.3 over memory
Replies: 10
Views: 5044

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...
by bitfogav
Thu Jun 11, 2020 12:20 pm
Forum: IDE
Topic: PicKit4 as a programmer in IDE
Replies: 17
Views: 7354

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...
by bitfogav
Wed Jun 10, 2020 11:52 pm
Forum: IDE
Topic: PicKit4 as a programmer in IDE
Replies: 17
Views: 7354

Re: PicKit4 as a programmer in IDE

Yes that's fixed it.. :D

Doh!! what a simple mistake, I should have copied and pasted the parameter into the IDE :lol: thanks Jerry for your help.
by bitfogav
Wed Jun 10, 2020 3:35 pm
Forum: IDE
Topic: PicKit4 as a programmer in IDE
Replies: 17
Views: 7354

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?.
by bitfogav
Wed Jun 10, 2020 1:21 pm
Forum: IDE
Topic: PicKit4 as a programmer in IDE
Replies: 17
Views: 7354

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...