Search found 41 matches

by ianjoh
Sat Feb 20, 2021 9:25 pm
Forum: Flowcode V8
Topic: EEPROM on 18F27J13
Replies: 3
Views: 1945

Re: EEPROM on 18F27J13

Ah! that'll be why... Partly assumed that a pic with lots of bells and whistles would have it and also confused with the flash memory that can be written to whilst the code is running. I need to read up about the differences between them. I will also have a look at the V9 Thanks all your for help, t...
by ianjoh
Fri Feb 19, 2021 11:54 pm
Forum: Flowcode V8
Topic: EEPROM on 18F27J13
Replies: 3
Views: 1945

EEPROM on 18F27J13

Hi all Just delving into the world of onboard storage and learning about it so I can use it in a project but have got stuck at the first hurdle. From the wiki I have downloaded the FC for a 16F877A and it runs in simulation but when I port it to my favourite 18F27J13 (only because it is set up and r...
by ianjoh
Wed Jan 20, 2021 1:32 am
Forum: Flowcode V8
Topic: Rain Gauge
Replies: 8
Views: 2835

Re: Rain Gauge

Hi Martin That looks brilliant! There are quite a few changes to digest, its great to see and learn how differently you do it, just the simple things like like the day input triggering a loop that runs until the input drops to 0. I had a long delay because there was minimum of a minute trigger from ...
by ianjoh
Tue Jan 19, 2021 3:17 am
Forum: Flowcode V8
Topic: Rain Gauge
Replies: 8
Views: 2835

Re: Rain Gauge

Wow Martin! I Wasn't expecting a re write - it must have been bad lol. My methods tend to be quite mechanical whereas you can achieve a result with some slick calculations. I like it and have been studying and changing some of it just to see how it works. Definitely open it up for more than 10mm as ...
by ianjoh
Sun Jan 17, 2021 11:55 pm
Forum: Flowcode V8
Topic: Rain Gauge
Replies: 8
Views: 2835

Re: Rain Gauge

Nearly there with this. The closest i can get on the display is: 2.2 4.4 6.6 8.8 1.0 1.2 1.4 1.6 etc to 9.8 then it rolls over to 1.2. Increasing the string length to [2] to get beyond 10 makes the addition much worse. Is there some way of blanking or converting the double number in the first 4 addi...
by ianjoh
Sun Jan 10, 2021 10:21 pm
Forum: Flowcode V8
Topic: Rain Gauge
Replies: 8
Views: 2835

Re: Rain Gauge

Brilliant - thank you.
Regards Ian
by ianjoh
Sat Jan 09, 2021 10:28 pm
Forum: Flowcode V8
Topic: Rain Gauge
Replies: 8
Views: 2835

Rain Gauge

Seeing as I have had so much rain recently I thought I would revisit an old shelved project. The Gauge sender unit has a transmitter that triggers a receiver relay for every 0.2 mm of rain. Simply adding 0.2 or 2/10 eventually gives a rounding error so it no longer is adding an even decimal number. ...
by ianjoh
Mon Dec 14, 2020 10:26 pm
Forum: General Programming
Topic: UM3750 Emulation
Replies: 7
Views: 6711

Re: UM3750 Emulation

hi all I had at go at bastardising the component macro to learn about it and build my version just a macro call and it is remarkably similar! I can now understand how it outputs the data in reverse order to what I want, so I reversed the data before sending it. It works although I have not fully tes...
by ianjoh
Mon Dec 07, 2020 10:01 pm
Forum: General Programming
Topic: UM3750 Emulation
Replies: 7
Views: 6711

Re: UM3750 Emulation

Thanks Ben, nowt like missing the obvious :oops: I have been having a good play and can transmit a 2 channel receiver but have no control over individual channels. Turns out it is only sending the last 8 data bits anything before that gets sent as a 0. Also seems to be sending in reverse order as no...
by ianjoh
Wed Dec 02, 2020 11:42 pm
Forum: General Programming
Topic: UM3750 Emulation
Replies: 7
Views: 6711

Re: UM3750 Emulation

Struggling with this as I cannot see where in the properties to set the output pin to C1 and a delay of 700uS as just not seeing the option.
Using a variable to set the output code is as far as I have got, any pointers would be great help, thanks
Ian
by ianjoh
Mon Nov 30, 2020 12:27 pm
Forum: General Programming
Topic: UM3750 Emulation
Replies: 7
Views: 6711

Re: UM3750 Emulation

Wow! Thank you Ben, that will make a fab starting point. My aim is to make the low byte an address and the remaining 4 bits will be for control, ie on/off.
kind regards
Ian
by ianjoh
Sun Nov 29, 2020 11:17 pm
Forum: General Programming
Topic: UM3750 Emulation
Replies: 7
Views: 6711

UM3750 Emulation

Hi Has anyone have experience of emulating the UM3750 encoder/decoder, I am more interested in encoding as I want to transmit into an existing scantronic receiver. A google search shows an Arduino sketch so it has been done but I have no idea about interpreting it! I have controlled a UM3750 directl...
by ianjoh
Sat Nov 07, 2020 9:57 pm
Forum: Bug Reports
Topic: Ports A6 & A7 not accessible
Replies: 9
Views: 5266

Re: Ports A6 & A7 not accessible

Yes, it compiles to the chip a treat.
Thank you
Ian
by ianjoh
Sat Nov 07, 2020 9:05 pm
Forum: Bug Reports
Topic: Ports A6 & A7 not accessible
Replies: 9
Views: 5266

Re: Ports A6 & A7 not accessible

You are a genius Martin, my mistake was to allow FC to do an update which rolled the file back!
All good now, thank you!
Ian
by ianjoh
Sat Nov 07, 2020 7:39 pm
Forum: Bug Reports
Topic: Ports A6 & A7 not accessible
Replies: 9
Views: 5266

Re: Ports A6 & A7 not accessible

Hi Martin
Thank you for your reply, I have replaced the file and reloaded FC but the ports remain grayed out, would you mind having another look please.
Many thanks Ian
by ianjoh
Fri Nov 06, 2020 9:53 pm
Forum: Bug Reports
Topic: Ports A6 & A7 not accessible
Replies: 9
Views: 5266

Ports A6 & A7 not accessible

Hi all I am setting up another project with the settings based on a previous working setup driving a GLCD. I want to use ports A6 & A7 but they are grayed out as if in use as OSC1 & OSC2, I think I have disabled all usage of the external oscillator functions to release the ports for general use. Hop...
by ianjoh
Thu Jul 09, 2020 10:10 pm
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 16
Views: 5401

Re: Piezo Sounder accuracy

Oh yes that has compiled to an accurate signal! I can now play with some variables for different outputs. Don't know whether I have read it wrong but on the Project options I have to set the "PLL Configuration Enable Bit" to Enable if I am not using it. On another project when I was using the PLL at...
by ianjoh
Thu Jul 09, 2020 8:57 am
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 16
Views: 5401

Re: Piezo Sounder accuracy

Thanks Martin- that is neat.
I have seen you use that last decision in other flowcodes "If Enable ?" thinking it looks incomplete but its works!

Regards
Ian
by ianjoh
Thu Jul 02, 2020 9:44 pm
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 16
Views: 5401

Re: Piezo Sounder accuracy

Thank you Martin - lots to digest!
by ianjoh
Thu Jul 02, 2020 5:22 pm
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 16
Views: 5401

Re: Piezo Sounder accuracy

Hi Martin Got there in the end, the timings are spot on now but I will adjust the configuration settings some more to see what breaks it. The timer calculator now loads without a hitch - pure genius! I have been playing with gating the output on and off at 1Hz, probably crude but it works and its ev...
by ianjoh
Wed Jul 01, 2020 11:29 pm
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 16
Views: 5401

Re: Piezo Sounder accuracy

Hi Martin Thank you so much for this, it makes a great platform to start from. A couple of things, there always are (!) my output frequency was 100Hz so I changed the post scaler to 1:1 and got 1.003 KHz which is pretty bang on, I had confidence that the config was correct until I added the 1 sec pu...
by ianjoh
Tue Jun 30, 2020 7:20 pm
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 16
Views: 5401

Re: Piezo Sounder accuracy

Hi Martiive not seen that page before on Matrix, a bewildering choice! I can bypass that bit short term as I have a Pic18F27J13 already set up on a board i bought as a kickstarter project by Mike Hibbet a few years back, i have shoehorned a 40mhz xtal on it to drive an oled display so it's not slow....
by ianjoh
Mon Jun 29, 2020 4:47 pm
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 16
Views: 5401

Re: Piezo Sounder accuracy

Hi Martin I hadn't really thought about how many pins I will need as I was only thinking about getting the output frequency and timing sorted first within the confines of my existing board and it is confining so time to move on! So yes a good idea to upgrade with more timers, I will still need to us...
by ianjoh
Mon Jun 29, 2020 12:34 pm
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 16
Views: 5401

Re: Piezo Sounder accuracy

Thank you for your reply Ben, an example would be a great starting point. Since posting i have been experimenting with timer interrupts instead of using the loop-delay-count method for the pause between the sounder outputs, the calculated v the actual timings have been interesting so there is much t...
by ianjoh
Sun Jun 28, 2020 12:15 am
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 16
Views: 5401

Piezo Sounder accuracy

I am creating a new project based loosely on an earlier project where I had issues getting the frequency and timing to work with any degree of accuracy so I thought I would start with this. With it complied and running in a pcb I am getting a 640Hz (set for 1000Hz) tone with a 1.5 second duration, t...