Search found 75 matches

by TonyR
Fri Nov 18, 2016 1:35 am
Forum: User Modules
Topic: Interrupts - ISRRX Glitches
Replies: 4
Views: 2454

Re: Interrupts - ISRRX Glitches

Thanks David and Jerry. This bit of code has given me the most grief. Even if I have no code at all in the On Interrupt Sub the value of "total" in the code glitches to an erroneous value maybe one in every 200 readings. The faster the rate of data coming in the worse it is. But if I disable the On ...
by TonyR
Wed Nov 16, 2016 7:42 pm
Forum: User Modules
Topic: Interrupts - ISRRX Glitches
Replies: 4
Views: 2454

Interrupts - ISRRX Glitches

I've had great success with SF many times but one place that often comes unstuck is the ISRRX ISR. Despite trying save and restore of everything that moves. Usually Ive had a main program doing something and the ISR takes chars from a serial port with ISRRX and concatenates a command string that the...
by TonyR
Mon Sep 12, 2016 4:52 am
Forum: Compiler
Topic: Near Disaster with Interrupt Handling ISRRX
Replies: 2
Views: 1994

Near Disaster with Interrupt Handling ISRRX

I designed a great battery test system using PIC18F87K22 driving Power Op Amps, capable of charge, discharge up to 12V 1A of battery under test. After the long development of that I then added the last part, the RS485 link that was meant to monitor and control it (many of them in fact) from a distan...
by TonyR
Thu Apr 28, 2016 11:52 pm
Forum: Modules
Topic: SF SD File System Module -Max File Size, max number of files
Replies: 4
Views: 2484

Re: SF SD File System Module -Max File Size, max number of f

BTW is that documented somewhere and I missed it?
by TonyR
Thu Apr 28, 2016 11:50 pm
Forum: Modules
Topic: SF Timer Module stops my Timer
Replies: 3
Views: 2359

Re: SF Timer Module stops my Timer

Thanks Jerry, I changed to Timer 0 and its working fine. It would be just lovely if there was somewhere I could read this stuff before finding out the long and painful way and/or pestering you guys! If Davids reading this maybe a note at the top of the timer module help page. If I knew that in advan...
by TonyR
Thu Apr 28, 2016 12:18 am
Forum: Modules
Topic: SF Timer Module stops my Timer
Replies: 3
Views: 2359

SF Timer Module stops my Timer

I am trying to use one PIC timer to gate on/off another PIC timer which is used as a counter in an 18F87K22. I need a frequency counter with a one second gate time. My timer (Timer1) is set up as a simple counter, the signal I'm measuring comes in continuously as Timer1's clock on T1CKI. All I do is...
by TonyR
Thu Apr 28, 2016 12:02 am
Forum: Modules
Topic: SF SD File System Module -Max File Size, max number of files
Replies: 4
Views: 2484

Re: SF SD File System Module -Max File Size, max number of f

Thanks Jerry thats great info.
by TonyR
Wed Apr 27, 2016 1:25 am
Forum: Modules
Topic: SF SD File System Module -Max File Size, max number of files
Replies: 4
Views: 2484

SF SD File System Module -Max File Size, max number of files

Does anyone know what the max file size is in the SD Card Module and max number of files? Im hoping not to have to try and work through the code to figure it out!

Thanks.
by TonyR
Wed Feb 24, 2016 10:23 pm
Forum: User Modules
Topic: Swordfish --> Web Server
Replies: 6
Views: 3227

Re: Swordfish --> Web Server

Well Ive dived in and bought some WIZ550io from Digikey since they're next day delivery.

If you have time - whats the difference between using the WIZ550io which sounds like it will work OK and the WIZ5100 ? In beginners language :-)
by TonyR
Wed Feb 24, 2016 6:28 pm
Forum: User Modules
Topic: Swordfish --> Web Server
Replies: 6
Views: 3227

Re: Swordfish --> Web Server

Thanks for advice, will investigate further.
by TonyR
Wed Feb 24, 2016 1:35 am
Forum: User Modules
Topic: Swordfish --> Web Server
Replies: 6
Views: 3227

Swordfish --> Web Server

I've got a few working Swordfish projects now that gather all kinds of data that's accessible to the user by GSM. I mostly used the PIC18FK22 and Quectel M35 for that. The question is, whats the shortest way to connect my projects to the net instead of GSM? ie. Is there a tiny Swordfish web server p...
by TonyR
Wed Feb 24, 2016 1:26 am
Forum: User Modules
Topic: ISR for ADC's
Replies: 14
Views: 5170

Re: ISR for ADC's

If you are still stuck with this I did it with PIC18FK22 and it works fine. But my ADCs are ADS1100s (16 bit - interfaced by I2C) in an ISR called at 1 second interval. Data is stored in globals and accessed by serial port at random.

Let me know and I'll help out if I can.
by TonyR
Thu Jan 14, 2016 10:00 pm
Forum: User Modules
Topic: Bootloader - 200 x l PIC18F on same RS485 bus
Replies: 5
Views: 2866

Re: Bootloader - 200 x l PIC18F on same RS485 bus

Thanks for suggestions. I will try and set up something to test it the sleep wake idea. Messing with the direction/hand shaking sounds scary. I've used VB for heaps of things since its so fast to get things working and has dozens of libraries. It works great with the $5 USB to RS485 converters with ...
by TonyR
Thu Jan 14, 2016 12:04 am
Forum: User Modules
Topic: Bootloader - 200 x l PIC18F on same RS485 bus
Replies: 5
Views: 2866

Bootloader - 200 x l PIC18F on same RS485 bus

Has anyone tried to use the SF boot loader over RS485. I assume (dangerous I know) it will work immediately - if there's only one device on the bus. But what if there are 200? Has anyone tried it. I thought I could maybe put all the ones not being boot loaded to sleep for 30 seconds, at any instant,...
by TonyR
Wed Sep 16, 2015 9:39 pm
Forum: Compiler
Topic: 18F87K22 USART2.write can only send 1 char, USART is OK
Replies: 5
Views: 2220

Re: 18F87K22 USART2.write can only send 1 char, USART is

Thanks greatly Jerry, usart2.write worked as soon as I swapped in the fixed library.

usart2.readbyte worked as soon as I put in setalldigital.