Search found 1197 matches

by David Barker
Thu Jun 18, 2020 9:58 am
Forum: Compiler
Topic: Clock Speed
Replies: 8
Views: 3929

Re: Clock Speed

Yes, the error seems a little anomalous. We will look into it. However, as W4GNS has pointed out it would help to post some additional code that generates the error in your use case. Thanks...
by David Barker
Wed Jun 17, 2020 5:16 pm
Forum: General
Topic: Digitaldiy
Replies: 5
Views: 3468

Re: Digitaldiy

What's happened to the site? Have you tried contacting Graham? It's a real shame if it has all gone. Perhaps try "wayback machine" internet archive?
by David Barker
Tue Jun 16, 2020 1:08 pm
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 14908

Re: Default Variable Assignment

It's a fair question. In the example you have given x could be anything. It most likely state would be "0" *but* then again it might not. It's easy to miss an initialisation in the code. But the warning should catch them... > ... and just to be REALLY clear, my use of "RHS" was NOT how the Urban Dic...
by David Barker
Tue Jun 16, 2020 7:13 am
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 14908

Re: Default Variable Assignment

Just to be clear dim x as byte will generate a hint "x is never used". As Jerry points out, it's not an issue unless you use "x" on the right hand side of an expression. dim x as byte dim y as byte y = x will generate a warning that "x has not been initialised" and dim x as byte dim y as byte = x wi...
by David Barker
Mon Jun 15, 2020 11:53 am
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 14908

Default Variable Assignment

I've decided to post this on the forum as it's a new feature of the compiler that I know a number of users have requested in the past. From 2.2.3.3 onward you can now declare and initialise variables at the same time. Some examples include: // Strings... Include "string.bas" Dim message As String = ...
by David Barker
Sun Jun 14, 2020 7:57 am
Forum: Modules
Topic: USB HID Bootloader v1.4.3 over memory
Replies: 10
Views: 5080

Re: USB HID Bootloader v1.4.3 over memory

> I asked for a key to the virtual executive washroom but no go!

There's been a shortage of virtual toilet paper - when it abates you can have a key!
by David Barker
Wed Jun 03, 2020 6:11 am
Forum: General
Topic: configurable bootloader
Replies: 2
Views: 5232

Re: configurable bootloader

Bluetooth modules (you don't state which one you are using) tend to have a simple RS-232 interface. Using the USART module should do the trick...
by David Barker
Thu May 28, 2020 4:46 pm
Forum: General
Topic: COVID19
Replies: 10
Views: 9232

Re: COVID19

How is everything with you guys?
by David Barker
Thu May 28, 2020 7:56 am
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 16068

Re: ST7565 GLCD Support

Yes, I have found it useful in the past to do this on smaller devices ("spread" the data bus rather than use a contiguous set of pins on a single port). The speed really isn't an issue. An LCD refresh is slow enough that you won't see any difference. I've tested this in the past. With respect to Ran...
by David Barker
Wed May 27, 2020 9:56 am
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 16068

Re: ST7565 GLCD Support

I have just tested the above code on real hardware and it works as expected (see image). For those people who have a Firewing board with LCD, here is the code I used: Device = 18F25K22 Clock = 64 // configure options... #option LCD_DOGM = DOGM_163 // 3 line #option LCD_INTERFACE = 4 // 4 bit data bu...
by David Barker
Wed May 27, 2020 7:49 am
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 16068

Re: ST7565 GLCD Support

I don't have any tested code for Swordfish but I do have some Swordfish code which I ported over from Firewing (which 100% works) so it may work for you or at least get you started. I have attached the modules you need and here is a simple program which uses them. Pay particular attention to the opt...
by David Barker
Sat May 23, 2020 9:21 am
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 16068

Re: ST7565 GLCD Support

> I am using DOGM163

I have used these modules. They are very good. Let us know how you get on...
by David Barker
Wed May 20, 2020 9:12 am
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 16068

Re: ST7565 GLCD Support

Apologies. I just looked at the controller datasheet. So that appears to leave three options: (1) find a GLCD that utilises the parallel bus for the ST7565R or (2) use a different (supported) Swordfish driver for a GLCD with parallel bus (KS0108 - tons of devices, well tested under swordfish) or (3)...
by David Barker
Wed May 20, 2020 7:41 am
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 16068

Re: ST7565 GLCD Support

Having a *very* brief look at the ST7565R datasheet, the device can be run either parallel or serial.

Code: Select all

P/S = “H”: Parallel data input/output.
P/S = “L”: Serial data input.
by David Barker
Tue May 19, 2020 11:29 am
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 16068

Re: ST7565 GLCD Support

Just looking through previous posts, I see where you got the driver. However, you state you need a ST7665R driver. Certainly without this, your code will not work.