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!
Scott
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...
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...
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...
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...
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 ...
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 ...
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
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...
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...
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
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....
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...
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...
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...
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...
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...
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...
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
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...
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!
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...