Search found 25 matches

by ionize
Thu Oct 30, 2014 4:39 am
Forum: Flowcode V6
Topic: Reading and Writing integers to EEPROM
Replies: 9
Views: 6232

Re: Reading and Writing integers to EEPROM

:D Well, I think I can put this baby to bed! It's working well now, thank you so much Martin. Your direction and advice as always, spot on.
All Hail THE PROFESSOR! :D
Scott
by ionize
Sun Oct 26, 2014 8:31 pm
Forum: Flowcode V6
Topic: Reading and Writing integers to EEPROM
Replies: 9
Views: 6232

Re: Reading and Writing integers to EEPROM

I should have known EEPROM was improved just like everything else. I believe I added your suggestions correctly and now it simulates well but won't compile: I get: error: invalid pragma DATA argument 'MX_UINT16' when trying to write to the chip. Since the chart simulates, I don't have a clue on wher...
by ionize
Sat Oct 25, 2014 12:12 am
Forum: Flowcode V6
Topic: Reading and Writing integers to EEPROM
Replies: 9
Views: 6232

Re: Reading and Writing integers to EEPROM

I think I added the code right but now the display is blanked or displays garbage from the start. Haven't had that problem before no matter how bad my code was. The rest of the program works as before. It works, I think, in simulation where the display can be seen but you cannot see whats in the EEP...
by ionize
Fri Oct 24, 2014 12:44 am
Forum: Flowcode V6
Topic: Reading and Writing integers to EEPROM
Replies: 9
Views: 6232

Re: Reading and Writing integers to EEPROM

Thanks Martin,
I'm trying to wrap my head around it.
Scott
by ionize
Fri Oct 24, 2014 12:38 am
Forum: General Programming
Topic: LCD – OLED interface
Replies: 3
Views: 7932

Re: LCD – OLED interface

Short answer: YES, no problem.
by ionize
Thu Oct 23, 2014 12:02 am
Forum: Flowcode V6
Topic: Reading and Writing integers to EEPROM
Replies: 9
Views: 6232

Reading and Writing integers to EEPROM

In the attached program, I've got most issues sorted, today, however, I found out that I didn't account for reading and writing numbers (which are minutes) up to 1440 to the EEPROM. Researching how to do it has left me confused (easy to do these days). The examples I have looked at are: http://www.m...
by ionize
Sat Oct 11, 2014 11:43 pm
Forum: Flowcode V6
Topic: Trouble with Switch Icon
Replies: 3
Views: 3875

Re: Trouble with Switch Icon

Of course, you are right :D Thank you very much. After applying your code and advice, which fixed everything, I decided to try and have a slow then fast number change on "display function 1". I only tried on the RED buttons and they now count by two but not appreciably faster than the BLUE...
by ionize
Fri Oct 10, 2014 10:17 pm
Forum: Flowcode V6
Topic: Trouble with Switch Icon
Replies: 3
Views: 3875

Trouble with Switch Icon

This is my on-going spa control project. I am trying to consolidate "0" and "2" in the Display Functions. The program defaults to "0" Display Function and pushing the UP/DN buttons switches to "2" Display Function and then back to "0" as soon as you ...
by ionize
Sun Oct 05, 2014 7:53 pm
Forum: Flowcode V6
Topic: UART Communication (TX/RX pins)
Replies: 3
Views: 4254

Re: UART Communication (TX/RX pins)

You can use a 74HC4052N multiplexer. Since you only need to switch between 2 devices, it will only take 1 pin to do it. Here is an easy to use one: https://www.atlas-scientific.com/product_pages/components/port_connector.html? . Of course, you'll have to adjust the baud rates in your code after the ...
by ionize
Sun Oct 05, 2014 7:36 pm
Forum: Flowcode V6
Topic: Count Down Timer Won't
Replies: 6
Views: 5380

Re: Count Down Timer Won't

I overcame the reset problem by adding a 1 sec delay connected to a PNP 2N3906 controlling the positive power input to the OLED (Thanks BENJ) and using ASM ("RESET"); instead of
asm
{
goto 0
}
, which appears not to reset the registers to startup values.
Thanks to all.
Scott
by ionize
Mon Sep 22, 2014 5:15 pm
Forum: Flowcode V6
Topic: Count Down Timer Won't
Replies: 6
Views: 5380

Re: Count Down Timer Won't

Again, many thanks to the Professor! Although every restart scheme I've tried works, the program hangs but I think its because the OLED problem described here: http://www.matrixtsl.com/mmforums/viewtopic.php?f=54&t=15016 If there is new code for the OLED component initialization that address thi...
by ionize
Thu Sep 18, 2014 10:16 pm
Forum: Flowcode V6
Topic: Count Down Timer Won't
Replies: 6
Views: 5380

Re: Count Down Timer Won't

Thanks for your inputs. I was able to get the Countdown tab to work after moving that calculation :oops: . The reset section on Main, however, causes the program to hang. I thought I fixed it :lol: If there is a better way to restart- great. When the program is simulated, it acts differently than in...
by ionize
Mon Sep 15, 2014 11:33 pm
Forum: Flowcode V6
Topic: Count Down Timer Won't
Replies: 6
Views: 5380

Count Down Timer Won't

This is my first V6 Flow Chart and I can't get my count down timer tab to work in minutes in this flow chart, no matter how I configure it. If someone could show me what I'm doing wrong, it would be wonderful.
Thanks,
Scott
by ionize
Thu May 08, 2014 4:47 am
Forum: Flowcode V5
Topic: Personal Thank you!
Replies: 4
Views: 6548

Re: Personal Thank you!

I would also like to give thanks to all the Valued Contributors and Matrix team for developing Flowcode. I nominate Martin as the MVP :wink: (Most Valuable Programmer) of Matrix. He is able to express complex ideas effortlessly and it seems he is always willing to help via PMs or here on the forums....
by ionize
Wed May 07, 2014 12:08 am
Forum: Flowcode V5
Topic: Can't figure out how to break in/out of loop
Replies: 4
Views: 5538

Re: Can't figure out how to break in/out of loop

Hi Martin, I've been working with the version you sent and successfully added EEPROM to hold the values I wanted to it and I've been trying to add a requested additional feature- an ammeter, but have not made that work yet. If you'd like to take a look at it, and elaborate on the switch icon functio...
by ionize
Mon Feb 03, 2014 7:29 am
Forum: Flowcode V5
Topic: Can't figure out how to break in/out of loop
Replies: 4
Views: 5538

Can't figure out how to break in/out of loop

I've been reading about interrupts and have been trying to make this chart work for awhile now but I can't get a handle on interrupts and get stuck in a loop. Can someone show me how to do this with this chart? or re-arrange it. The 16F1938 chip has port B available for pin change interrupts but I a...
by ionize
Thu Jan 30, 2014 5:04 am
Forum: Flowcode V5
Topic: Trying to add adjustable delays with Tac Switches
Replies: 2
Views: 3333

Re: Trying to add adjustable delays with Tac Switches

Thanks Much!! Looks like what I need.
Scott
by ionize
Wed Jan 29, 2014 4:54 am
Forum: Flowcode V5
Topic: Trying to add adjustable delays with Tac Switches
Replies: 2
Views: 3333

Trying to add adjustable delays with Tac Switches

I'm trying to create a program for my new project. I couldn't find an example similar to what I want in the forums. I'm hoping your smart minds can help. I need an adjustable by Tac switches delay for starters. It would be nice to have these same switches be able to adjust other parts of the program...
by ionize
Wed Dec 05, 2012 7:08 pm
Forum: Flowcode V5
Topic: Recalling delay time after first cycle
Replies: 31
Views: 20963

Re: Recalling delay time after first cycle

Thanks Martin :D I built a similar device using 555's a long time ago and it worked well but this is much more elegant! Yes, I'm running Flowcode V5 Professional. Sorry for a delayed reply, my internet connection broke down for several hours. (good ole reliable Qwest/ Century Link-NOT) The C code at...
by ionize
Sun Dec 02, 2012 9:34 pm
Forum: Flowcode V5
Topic: Recalling delay time after first cycle
Replies: 31
Views: 20963

Re: Recalling delay time after first cycle

I really like this flowchart (Martin's V4) and I've been trying to wrap my head around all that it is teaching me. I've been trying to figure out how to start the program automatically upon power up after the initial programming and be able to adjust the output trigger time, if possible, from the ta...
by ionize
Sat Nov 03, 2012 4:53 am
Forum: Flowcode V5
Topic: PIC18F4685 2 PWM?
Replies: 14
Views: 9236

Re: PIC18F4685 2 PWM?

Here is a chart with 2 independent PWM channels based on brandonb's, Martin's, Enamul's and others various charts (thanks for sharing your knowledge!). It works well and does what I want but It needs a little refinement and maybe one of these Flowcode masters can help us both by doing that. For inst...
by ionize
Sat Jul 07, 2012 8:15 pm
Forum: Flowcode V5
Topic: multiple delays and loop with 12F609
Replies: 8
Views: 7392

Re: multiple delays and loop with 12F609

Martin, Werner is right- you are the Professor of Flowcode! You have blown me away with these charts. I've got to digest them and I'll get back to you, thanks
by ionize
Sat Jul 07, 2012 1:09 am
Forum: Flowcode V5
Topic: multiple delays and loop with 12F609
Replies: 8
Views: 7392

Re: multiple delays and loop with 12F609

Thanks for your answer. I read the posts you referenced above while I was trying to come up with something and looking for some example code. What I need is a loop of say 10 minutes on and 10 off on port a bit 0 and 1, plus a delay that stays on of 1 hour on port a bit 2, 2 hours on port a bit 4 and...
by ionize
Fri Jul 06, 2012 11:18 pm
Forum: Flowcode V5
Topic: multiple delays and loop with 12F609
Replies: 8
Views: 7392

Re: multiple delays and loop with 12F609

Thanks BENJ for answering my call for help!
I tried your suggestion but no go. I also tried removing the loop and no go. I also removed the equalizing code at the start of the tick macro and still nothing yet. any more suggestions will greatly appreciated!
by ionize
Tue Jul 03, 2012 7:26 am
Forum: Flowcode V5
Topic: multiple delays and loop with 12F609
Replies: 8
Views: 7392

multiple delays and loop with 12F609

Although I have built many devices over the years, I'm a newbie with little programming experience and I am trying to implement multiple delays using an interrupt and have an independent loop. Not sure if I'm headed in the right direction with this flowchart. The loop works as intended but the other...