Search found 1031 matches

by mnf
Thu Oct 03, 2024 9:13 am
Forum: Flowcode V8
Topic: Custom interrupt for Nano Timer1
Replies: 4
Views: 1763

Re: Custom interrupt for Nano Timer1

See viewtopic.php?p=107449#p107449 - where I posted an Arduino PW sine wave chart..

Might do what you need?

Martin
by mnf
Sat Sep 28, 2024 7:22 pm
Forum: General Programming
Topic: EEPROM Operation
Replies: 48
Views: 30742

Re: EEPROM Operation

Just tried compiling and seems the PIC you have has too little RAM to use the component. I stripped everything out - apart from Read and Write of 10 bytes (no display etc) - and get an error insufficient memory to allocate _FCL_BUFF (130 bytes) - which would (space permitting) be used by the Page Re...
by mnf
Sat Sep 28, 2024 1:22 pm
Forum: General Programming
Topic: EEPROM Operation
Replies: 48
Views: 30742

Re: EEPROM Operation

Delete the pullup macro too...

I also output the data to UART - change this to use your display instead ..
by mnf
Sat Sep 28, 2024 11:57 am
Forum: General Programming
Topic: EEPROM Operation
Replies: 48
Views: 30742

Re: EEPROM Operation

Will try when I get home this afternoon.

I have a few PICs I can try too?

Martin
by mnf
Sat Sep 28, 2024 11:09 am
Forum: General Programming
Topic: EEPROM Operation
Replies: 48
Views: 30742

Re: EEPROM Operation

Yes - if that's where they are connected. Adress should probably be 0 (pins 1 and two floating or gnd)
by mnf
Sat Sep 28, 2024 9:45 am
Forum: General Programming
Topic: EEPROM Operation
Replies: 48
Views: 30742

Re: EEPROM Operation

You'll need to change the i2c pins (and the eeprom address) in the component properties.

Also delete the macro pullup (and the two calls to it). You'll need to have pull-up resistors as per i2c.

Martin
by mnf
Fri Sep 27, 2024 9:17 pm
Forum: General Programming
Topic: EEPROM Operation
Replies: 48
Views: 30742

Re: EEPROM Operation

I tried the official component - good to check you have comms first :-) After a little fiddling - using an Arduino Uno - and enabling the inbuild pull-ups (I also needed external pull-ups but it wouldn't work with either the enable or the hardware removed - very odd, but the resistors I used were ju...
by mnf
Fri Sep 27, 2024 7:06 am
Forum: General Programming
Topic: EEPROM Operation
Replies: 48
Views: 30742

Re: EEPROM Operation

Hi,

You look to be using i2c generic read/write register The eeprom needs more than this to work correctly. Have you tried the eeprom component?

Have a look at viewtopic.php?t=22422 for some more detail

Martin
by mnf
Sat Jun 08, 2024 9:14 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 76974

Re: Download the program for the device via the Internet.

Looking at the component source - and it it makes fairly heavy use of RAM. For example 6 'In' and 10 'Out' buffers of 20 bytes each and ScanNames at 100 bytes. Some might be optimised away by the compiler (?). It might be possible to modify it to a 'cut down' version - with less features and less me...
by mnf
Sat Jun 08, 2024 9:06 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 76974

Re: Download the program for the device via the Internet.

Tested with the WLAN component cut down to a minimum - no web pages, no substitutions. Adding an SSD1306 (height set as 8 ) - and the esp8266 just returns 'error'. Two UARTs also seems to be too much - I tested using a 32 byte string to hold (some of) the firmware version - and used 4800baud (9600 -...
by mnf
Sat Jun 08, 2024 8:14 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 76974

Re: Download the program for the device via the Internet.

A step forward... I managed to reflash the Wemos d1 mini. I managed to get the device to reply with the firmware version using an FTDI device. But - I think the problem is that the ATMega8 at least won't support the display (I tried an ssd1306 and set the display height to 16). I think it might be a...
by mnf
Sat Jun 08, 2024 9:02 am
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 76974

Re: Download the program for the device via the Internet.

Yes - stepping up to v10 (and a m328p) would be a good idea. Out of interest - I just recompiled using v8. It still 'works' in that the SendString still sends "AT+GMR" - but Initialise() just seems to send a newline. I'll have a bit more of a play getting an esp8266 flashed and see if I ca...
by mnf
Fri Jun 07, 2024 11:11 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 76974

Re: Download the program for the device via the Internet.

I can confirm that the MCU does write the appropriate data to the esp8266 using the component.. So initialise it writes AT+CIPMUX=0 I then wrote in a loop AT+GMR using the ESP8266::SendString macro. But - I tested with the FTDI convertor. I used hardware channel at 115200 (on 8MHz Atmega8 as before)...
by mnf
Fri Jun 07, 2024 6:10 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 76974

Re: Download the program for the device via the Internet.

Have just tested an ATMega8 UART and seems to work okay. Setup - I have the MCU on a breadboard connected to (and powered by) a programmer Reset pin 1 mosi 17 miso 18 sck 19 VCC (I have 5v) 7 Gnd 8 First I did a 'flash test' - using d0 and all is good. Then I hooked a FTDI converter to d0 and d1 (an...
by mnf
Fri Jun 07, 2024 3:55 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 76974

Re: Download the program for the device via the Internet.

What is displayed is correct... The control characters don't display.

Martin.
by mnf
Fri Jun 07, 2024 2:21 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 76974

Re: Download the program for the device via the Internet.

AT+GMR\r\n will just display as AT+GMR the \r\n are control characters and would do carriage return and new line (from the days of teletypes) and probably do nothing on the LCD display.

Martin
by mnf
Fri Jun 07, 2024 12:23 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 76974

Re: Download the program for the device via the Internet.

I have an atmega8 - I'll have a play with the UART component this evening - see if I can spot any issues?

Martin
by mnf
Wed May 08, 2024 11:40 am
Forum: Bug reports
Topic: Display Starburst
Replies: 1
Views: 4310

Re: Display Starburst

The '\' character is an escape character so you need to follow it with something (in this case it escaping ') so if you want a backslash change it to '\\'

Martin
by mnf
Wed Apr 10, 2024 9:10 am
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 76974

Re: Download the program for the device via the Internet.

I think Iain meant to connect the Tx and Rx pins on the UART-TTL adapter rather than on the esp8266?

Martin
by mnf
Fri Mar 15, 2024 9:35 am
Forum: Flowcode V8
Topic: fround command pic 24fFV
Replies: 4
Views: 3563

Re: fround command pic 24fFV

One way to do this is to multiply the value by 100 (for 2 decimal places) and assign to an integer...
Note that not all numbers can be represented exactly by fp variables.

Can I also suggest an upgrade to v10 it's free and v4 is now very old

Martin
by mnf
Sat Mar 02, 2024 12:25 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 355
Views: 76974

Re: Download the program for the device via the Internet.

If you want to 'download' a program - then you are limited to targets (for example the esp32) which can handle OTA updates. Don't expect it to be easy. It would also be possible on something like a Raspberry Pi - where your 'main program' could download new programs - and run them. If you are using ...
by mnf
Mon Jan 29, 2024 5:39 pm
Forum: General Programming
Topic: Rotates 8 bits
Replies: 2
Views: 5520

Re: Rotates 8 bits

You need to shift and then add the shifted 'out' bit back in. so assuming 8 bit values (.x and .msb and .lsb) .msb = .x & 0x80 .x = (.x << 1) | (.msb != 0) // Or use (.msb >> 7) not sure which is quicker? Will do a left rotate - note you could probably cram it into one line and do without the ex...
by mnf
Wed Nov 29, 2023 11:50 am
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 88
Views: 278902

Re: Fast display ST7789!

Yes - I got a couple of batches at about that time and some worked and some not - hence the above thread... As a test - try running them using the Adafruit libraries and the Arduino IDE - if they work it's an initialisation problem (and I'd guess you'd be very unlucky to get 50 duff displays...) If ...
by mnf
Tue Nov 28, 2023 10:15 pm
Forum: Feature Requests
Topic: Fast display ST7789!
Replies: 88
Views: 278902

Re: Fast display ST7789!

Yes, I think so.

There seem to be several variants which need slightly different startup sequences.

If you give me a pointer to the display you are using I'll see what I can do...

Once you have the initialisation correct the rest is fairly straightforward..

Martin
by mnf
Tue Nov 07, 2023 9:11 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 141
Views: 10730224

Re: some problems with spi data transmission

I think the issue might be one of timing, In the receiver - have an interrupt on CS change (it limits the choice of pins for this) - then attempt to receive the data. I don;t know whether it would be possible to receive in the interrupt handler (small number of bytes maybe? - depends if the receive ...