Search found 152 matches

by RangerBob
Tue Dec 09, 2014 4:36 pm
Forum: User Modules
Topic: ESP8266 Module - Issues
Replies: 7
Views: 13914

Re: ESP8266 Module - Issues

OK, this is annoying. I fixed up something I noticed whilst putting it up on this page, and having tested for a while here it appears to have fixed it. It was a unterminated string condition sometimes occurring in the ReadString function. Tested now with SUART and USBCDC test terminal, and things ap...
by RangerBob
Tue Dec 09, 2014 1:26 pm
Forum: User Modules
Topic: ESP8266 Module - Issues
Replies: 7
Views: 13914

ESP8266 Module - Issues

Hello All, I'm releasing a module for the low cost ESP8266 Uart to Wifi Bridge. EDIT:*** POSSIBLY FIXED *** { Please be aware that this is still a work in progress; there is a major bug in the module somewhere, but I have spent far too long on this module already and cannot seem to get to the bottom...
by RangerBob
Tue Nov 25, 2014 12:41 pm
Forum: Modules
Topic: Where does the compiler search for libraries?
Replies: 23
Views: 12285

Re: Where does the compiler search for libraries?

I have a number of general projects stuffed into the root project folder, then I have a number of projects separated into their own folders. Ie. testproject1.bas testproject2.bas testproject3.bas > project1dir > > project1.bas > > USBCDC.bas > project2dir > > project2.bas > > USBCDC.bas > Userlibrar...
by RangerBob
Tue Nov 25, 2014 11:35 am
Forum: Modules
Topic: Where does the compiler search for libraries?
Replies: 23
Views: 12285

Re: Where does the compiler search for libraries?

Hi David, I know I'm late to the party here but is there any chance I could beg you to put in a switch for this updated library search behaviour, so I can force it back to the old way? Let me explain my problem: I have just come back to some new projects, and revising some old ones since this update...
by RangerBob
Mon Nov 24, 2014 12:01 pm
Forum: User Modules
Topic: PDF generator
Replies: 4
Views: 5495

Re: PDF generator

How on earth do you find this stuff Jerry??!!? :shock:
by RangerBob
Mon Nov 24, 2014 11:36 am
Forum: User Modules
Topic: PDF generator
Replies: 4
Views: 5495

Re: PDF generator

I think you'd find a PDF generator in a PIC a real struggle to pull off. However, we had a very similar situation to you. To combat it we put in a checksum/hash output on the end of the file. This didn't prevent them from modifying it (or help if people we're just looking at the printed output), but...
by RangerBob
Mon Nov 17, 2014 10:30 am
Forum: Compiler
Topic: Problem with Timer Interrupt
Replies: 6
Views: 3004

Re: Problem with Timer Interrupt

If this is all you are doing on the device, could you double buffer your display at the cost of another 513 or so bytes? The 18F25k22 has plenty of RAM.

Then you modify one buffer whilst the display updates from the other, then switch them over at the end, and so on.
by RangerBob
Thu Oct 23, 2014 4:07 pm
Forum: User Modules
Topic: Looking for GLCD Menu sample code
Replies: 5
Views: 6120

Re: Looking for GLCD Menu sample code

Ok, I've got this touchscreen driven menu system. Because it was done in a hurry the main logic and menu system are somewhat intertwined. I've got to rush off today, but here's the bulk of it It's not complete. I had to knock out some propriety bits so it won't compile or anything, but it should giv...
by RangerBob
Mon Aug 11, 2014 8:21 am
Forum: Compiler
Topic: Can't read RTCC registers in 18F87J93 ?
Replies: 7
Views: 2898

Re: Can't read RTCC registers in 18F87J93 ?

Excellent, glad it was of some use! Weird about the ASM comments bit. Never seen that. I'll change the WIKI from // to ' and move it out of that assembly section just to be on the safe side. Rangerbob Edit: Weirdly my source doesn't have those comments anyway. Perhaps I got carried away and added th...
by RangerBob
Fri Aug 08, 2014 2:33 pm
Forum: Compiler
Topic: Can't read RTCC registers in 18F87J93 ?
Replies: 7
Views: 2898

Re: Can't read RTCC registers in 18F87J93 ?

Hi Tony, The reason your Seconds field isn't updating is because you cannot just flip the WriteEnable bit (RTCCFG.5). You have to send an unlock sequence first (see 15.2.7 WRITE LOCK pg. 167 of the datasheet). You have to write $55, then $AA to EECON2 then the immediate next instruction can flip the...
by RangerBob
Mon Jun 23, 2014 10:36 am
Forum: Modules
Topic: Multiple Software I2C
Replies: 6
Views: 5199

Re: Multiple Software I2C

Blimey Jerry, that's a very useful and absolutely brilliant library! Many thanks for sharing, should come in useful sometime.

Rangerbob
by RangerBob
Mon Jun 02, 2014 1:14 pm
Forum: Compiler
Topic: Best way to optimise an string array search?
Replies: 8
Views: 3393

Re: Best way to optimise an string array search?

Personally I've only every really used the "Compare" function in the in-built string library. Not reinventing the wheel and all that.

You can have a look in the library to see how it performs it; using the FSRs and POSTINC registers. Seems pretty darn efficient to me.

Regards,

Rangerbob
by RangerBob
Mon Mar 31, 2014 1:20 pm
Forum: User Modules
Topic: How to add an ISR when already using ISRRX
Replies: 4
Views: 4616

Re: How to add an ISR when already using ISRRX

The Easiest way would probably to use the High/Low interrupt vectors that these devices support. Put one interrupt to high, the other to low. Bear in mind that the low priority can/will be interrupted itself by the high, but for serial comms, you can probably put the ISRRX onto the low as there is s...
by RangerBob
Mon Mar 24, 2014 10:18 am
Forum: Compiler
Topic: SF compiler reconize wrong pic?
Replies: 6
Views: 3019

Re: SF compiler reconize wrong pic?

David, I think MrDeb... Sorry Toyman seems to believe that Swordfish should detect what PIC is mounted on his board and refuse to compile if it detects the wrong device is fitted.
...
Somehow.
...
Even though Swordfish and Pickit are two completely separate entities.
...
by RangerBob
Mon Mar 03, 2014 1:40 pm
Forum: User Modules
Topic: XML parser
Replies: 3
Views: 4263

Re: XML parser

I created a "QuasiXML" parser for use in my Reverse Geocache . It was quick, dirty and nasty but it works a treat for reading and writing parameters off an SD card. At least it may be a useful jumping off point. { ***************************************************************************** * Name :...