Search found 38 matches

by Gunplumber
Sun Apr 21, 2024 2:33 am
Forum: Modules
Topic: 8 Pin 18F series chips?
Replies: 2
Views: 347

Re: 8 Pin 18F series chips?

Thanks for confirming that Jerry..
I’ll have to get a hold of a few 14 pin chips for this kind of thing..
Cheers
Lee
by Gunplumber
Sat Apr 20, 2024 1:13 pm
Forum: Modules
Topic: 8 Pin 18F series chips?
Replies: 2
Views: 347

8 Pin 18F series chips?

Hi all I recently had the need for a small PIC for a simple led flasher project (led lighting for RC aircraft). I did quite a bit of searching but I couldn’t find any 8 pin 18F series controllers at all? I found plenty of 16F and a few 24F in 8 pin Packages but absolutely nothing in 18F. Does anyone...
by Gunplumber
Fri Sep 15, 2023 10:58 pm
Forum: Compiler
Topic: AddressOf command
Replies: 7
Views: 2897

Re: AddressOf command

Jerry Thanks for getting back to me.. I managed to get it working by adding some code the check that each event was being executed.. Public Event A_sensor_Switch() Inc(Test_event_counter) If A_Speak_Switch And Sensor_A Then Speak_data(17,A_Sensor.byte0,A_Sensor.byte1) End If End Event Adding the INC...
by Gunplumber
Wed Sep 13, 2023 1:09 pm
Forum: Compiler
Topic: AddressOf command
Replies: 7
Views: 2897

Re: AddressOf command

Hi Jerry The For-Next loop executes to completion and counts through each event but it appears as though once an event calls a Sub then the rest of the events in the For-next loop are not actually executed.. I’ll have to test it but I assume for now that if no subs are called then the events execute...
by Gunplumber
Wed Sep 13, 2023 12:33 pm
Forum: Compiler
Topic: AddressOf command
Replies: 7
Views: 2897

Re: AddressOf command

Hi Jerry Thanks for the reply. I knew there had to be a suitable way to do it.. :D I have copied and modified your code sample to suit and it does appear work except for some reason if the event calls the sub Speak_data(17,SensorN.byte0,SensorN.byte1) then the Speak_data () sub is called correctly o...
by Gunplumber
Tue Sep 12, 2023 6:22 am
Forum: Compiler
Topic: AddressOf command
Replies: 7
Views: 2897

AddressOf command

Hi guys I am after a little more info on the 'AddressOf" command. Some background... I have the below sub routine. It's job is to check a series of sensors and if each sensor is active then it sends some data to a speaker. The issue i have is that the order in which the sensors are checked is hard c...
by Gunplumber
Sun Sep 10, 2023 7:25 am
Forum: Modules
Topic: I2C-24LC256 intermittent read error
Replies: 2
Views: 1890

Re: I2C-24LC256 intermittent read error

Hi Guys Disregard the above post.. I think i have it sorted.. I re-read the 24LC256 data sheet again and finally the below excerpt sunk in!. :roll: Sequential reads are initiated in the same way as a random read except that after the 24XX256 transmits the first data byte, the master issues an acknow...
by Gunplumber
Sun Sep 10, 2023 4:46 am
Forum: Modules
Topic: I2C-24LC256 intermittent read error
Replies: 2
Views: 1890

I2C-24LC256 intermittent read error

Hi guys I am using the following code to read a block of data (256 bytes) from an external eeprom 24LC256. PIC is a 26K40. The below code works on the first power up of the device and first run through the sub, but on subsequent reads, it sometimes locks up somewhere between the Start and stop comma...
by Gunplumber
Sat Sep 09, 2023 4:10 am
Forum: Modules
Topic: LCD module Custom Characters
Replies: 2
Views: 1795

Re: LCD module Custom Characters

Hi Jerry

Once again, thanks for the help.. Much appreciated!!
I have the custom characters up and running.. :D

Cheers
Lee
by Gunplumber
Fri Sep 08, 2023 7:52 am
Forum: Modules
Topic: LCD module Custom Characters
Replies: 2
Views: 1795

LCD module Custom Characters

Hi Guys Can someone help with some sample code to print custom characters? There is a sample in the Help file, but it's overly complicated and not very clear how it works. I know you have to write a series of bytes who's bit patterns correspond to the 5x8 pixels, but how is this done exactly? And on...
by Gunplumber
Sun Sep 03, 2023 2:34 am
Forum: User Modules
Topic: SD Card Read position
Replies: 5
Views: 2699

Re: SD Card Read position

Jerry Messina wrote:
Sat Sep 02, 2023 10:21 pm
I noticed in the comments that you have to use OpenFileRW() instead of OpenFile() if you want to use FSeek().

I haven't tested that... if you run across anything odd let me know.
Thanks Jerry
I will have to test that..

Cheers
Lee
by Gunplumber
Sat Sep 02, 2023 12:46 am
Forum: User Modules
Topic: SD Card Read position
Replies: 5
Views: 2699

Re: SD Card Read position

Thanks Gerry With regard to FSeek() and FilePtr(), do these reference from position 0 or from position 1? IE does FSeek(0) reference the first byte in a file? Or is it FSeek(1)? Also does FilePtr() reference the current position, or the next position? IE SD.openfile() Var=SD.readbyte() longVAR=FileP...
by Gunplumber
Tue Aug 29, 2023 10:32 am
Forum: User Modules
Topic: SD Card Read position
Replies: 5
Views: 2699

SD Card Read position

Hi all I am using the SD card module in my project which is working very well. I have the need to ready from a certain position within a file, but notice the read commands appear to start at byte zero and auto increment with every subsequent read command.. Is the a way to specify a starting position...
by Gunplumber
Fri Aug 11, 2023 5:04 am
Forum: User Modules
Topic: Hex file converter
Replies: 12
Views: 5914

Re: Hex file converter

Jerry Once again thanks for your reply.. :D A few more questions if i may pester you further. :wink: I have noticed that the 16 bit data words in the Hex file are stored as Byte1-Byte2, Byte1-Byte2 etc. But when you look at the code window in the PICKit programmer it shows them in reverse order IE B...
by Gunplumber
Thu Aug 10, 2023 1:19 pm
Forum: User Modules
Topic: Hex file converter
Replies: 12
Views: 5914

Re: Hex file converter

Jerry I now have some working tools to convert a hex file into a Binary file that i can read from an SD card. I am now trying to understand how the #option ORG_Program commands works, and the intricacies of moving Swordfish generated code in memory. At this stage my plan is a high memory boot loader...