Search found 211 matches

by Kenrix2
Tue Feb 04, 2014 1:19 am
Forum: Flowcode V6
Topic: Cannot store data to PIC18F4680 data EEPROM - SOLVED
Replies: 4
Views: 1833

Re: Cannot store data to PIC18F4680 data EEPROM

It turns out this is not a Flowcode issue. I finally found a way to fix it after reading this post in the sourceboost forums: http://forum.sourceboost.com/index.php?showtopic=5020 Here is an example of supplementary code that loads data into the eeprom starting at eeprom location zero: #pragma DATA ...
by Kenrix2
Mon Feb 03, 2014 10:56 am
Forum: Flowcode V6
Topic: Cannot store data to PIC18F4680 data EEPROM - SOLVED
Replies: 4
Views: 1833

Re: Cannot store data to PIC18F4680 data EEPROM

So glad you started this post. This issue has been a thorn in my side for quite sometime now, so I understand your reason for posting. This issue is not limited to Flowcode V6. It also affects Flowcode V4 and V5. It is also not limited to that chip. I have not been able to find a target device that ...
by Kenrix2
Thu Jan 30, 2014 5:38 pm
Forum: Flowcode V6
Topic: The time needed for an interrupt
Replies: 4
Views: 1300

Re: The time needed for an interrupt

I have no idea what happens internally and I don't know where you can look up that information. If you find a good explanation please let me know since a better knowledge of how the stack operates might help prevent overflows. Right now I rely on the compiler letting me know if there might be an iss...
by Kenrix2
Wed Jan 29, 2014 11:01 pm
Forum: Flowcode V6
Topic: The time needed for an interrupt
Replies: 4
Views: 1300

Re: The time needed for an interrupt

I could be way off in my calculations but, I think this is how you can determine step 1 and step 5. For step 1 you can look at the asm file way at the top and find the interrupt org(might be ORG 0x00000004). It takes 1 instruction cycle to get to ORG 0x00000004. Now count the number of lines after O...
by Kenrix2
Wed Jan 29, 2014 6:55 am
Forum: Flowcode V5
Topic: Trying to add adjustable delays with Tac Switches
Replies: 2
Views: 1704

Re: Trying to add adjustable delays with Tac Switches

Here is an example using up/down buttons to change a variable.
by Kenrix2
Sun Jan 26, 2014 12:12 am
Forum: Flowcode V5
Topic: I2C with 16F1847 error This chip does not have Master I2C
Replies: 3
Views: 1812

Re: I2C with 16F1847 error This chip does not have Master I2

Great job on catching the missing define. I don't have that micro to test with but, maybe you could try this instead: Define77=#define MX_MI2C For some reason I get a different define number than you and also deleted the spaces. Probably won't make any difference though. I am guessing there is somet...
by Kenrix2
Wed Jan 22, 2014 10:51 pm
Forum: General Programming
Topic: Flash Row Writer
Replies: 0
Views: 1777

Flash Row Writer

This is my first attempt at writing to flash and thought I would share what I have so far. This is just an untested experimental program so please don't consider this as a good working program. Use at your own risk. If anyone else has experimented with writing to flash, any tips or comments would be...
by Kenrix2
Mon Jan 20, 2014 2:41 am
Forum: Programming Tips & Tricks
Topic: Flash Read
Replies: 0
Views: 2073

Flash Read

Here is a Flowcode version of flash read.
by Kenrix2
Mon Jan 20, 2014 2:38 am
Forum: Flowcode V4
Topic: A simple keyreader, that doesnt read
Replies: 3
Views: 3116

Re: A SIMPLE KEYREADER, THAT DOESNT READ

Try turning off the watch dog timer and low voltage programming in chip configure and set the clock speed in project options to whatever the actual speed is and see how it runs.
by Kenrix2
Sun Jan 19, 2014 8:36 pm
Forum: Flowcode V5
Topic: Pic18f46j50 problem
Replies: 7
Views: 2778

Re: Pic18f46j50 problem

There are no configuration bits in your program, I wish I could help you in setting them but 18F devices are a mystery to me.
by Kenrix2
Fri Jan 17, 2014 8:15 pm
Forum: Flowcode V5
Topic: 18F14K50 External interrupt problem
Replies: 16
Views: 6800

Re: 18F14K50 External interrupt problem

I didn't see any configuration settings in your attached program, maybe you could take a close look at your settings if you just left them blank for the attachment. Also, i don't think any software resets if your using them, like wdt, bor, reset, ect. will clear the stack, only a por will. A good pl...
by Kenrix2
Tue Jan 14, 2014 8:20 pm
Forum: Flowcode V5
Topic: Pic18f46j50 problem
Replies: 7
Views: 2778

Re: Pic18f46j50 problem

Thanks for posting your discovery Desdewit. It turns out that the configuration address in the .fcd files for this entire family needs to be edited. The configuration addresses can be found in table 6.1 in the device data sheet. Please find the line containing "ConfigAddress=" in the .fcd ...
by Kenrix2
Sun Jan 12, 2014 11:41 pm
Forum: Flowcode V5
Topic: Pic18f46j50 problem
Replies: 7
Views: 2778

Re: Pic18f46j50 problem

Try loading the 18F46j50 with the hex file generated from your 18F25j50 project (since that one works) and see if it now works correctly. If it does work, then take a close look at the changes you made in your 18F46j50 project versus the 18F25j50 project.
by Kenrix2
Sun Jan 05, 2014 12:23 am
Forum: Flowcode V5
Topic: Serious Warnings
Replies: 18
Views: 3968

Re: Serious Warnings

Although kersing is correct that wdt is generally used as an abbreviation for watch dog timer, in this particular case it is referring to a delay function. You can view this function in the file PIC_CAL_Delay.c if you like, it is just a delay similar to the delay icon. Flowcode has many behind the s...
by Kenrix2
Thu Jan 02, 2014 8:16 am
Forum: Flowcode 4 Suggestions
Topic: Compiler problems.
Replies: 1
Views: 5402

Re: Compiler problems.

I don't see any errors in the compiler message, it says success. As for it not working on your chip, maybe double check you configuration settings, the LCD component macro connections setting. Sometimes adding a 100ms to 200ms delay before LCD initialize display helps with slow starting display modu...
by Kenrix2
Thu Jan 02, 2014 12:48 am
Forum: General Programming
Topic: creating a component macro
Replies: 4
Views: 2751

Re: creating a component macro

As for your specific use of a macro to convert a decimal value to BCD by "pushing it thru 4 lines", this might be a good starting point for research: http://www.microchip.com/forums/tm.aspx ... &high=btoa
Good luck.
by Kenrix2
Wed Jan 01, 2014 11:10 pm
Forum: Programming Tips & Tricks
Topic: KS0108 Graphical LCD
Replies: 8
Views: 6652

Re: KS0108 Graphical LCD

I have the V6 free edition v6.0.4.0(27.11.2013), it is past the 30 day trial, and I get this error when I try to open your project:

Failed to open document.
Attribute <start> is not found

I am very curious how you did the bar graph. Any Ideas on how I can open this?
by Kenrix2
Tue Dec 31, 2013 12:06 am
Forum: General Programming
Topic: Converting a number to tens and ones comparison
Replies: 3
Views: 2034

Re: Converting a number to tens and ones comparison

Thank you for your response Spanish_Dude. The method you posted is probably the simplest and easiest to use. It can also be put into a normal Flowcode calculation box for simulation within Flowcode. It's a great default method. However, a speed test shows it is dead last at 260us. Ouch!
by Kenrix2
Mon Dec 30, 2013 3:41 am
Forum: General Programming
Topic: Converting a number to tens and ones comparison
Replies: 3
Views: 2034

Converting a number to tens and ones comparison

This is a comparison of three different digit conversion methods to get the tens and ones digit which I use for two digit seven segment displays (both led and lcd glass). I needed to determine the best method to use depending on my application. Here are the results of my comparison tests which I tho...
by Kenrix2
Thu Dec 26, 2013 11:12 pm
Forum: General Programming
Topic: PIC floating point questions
Replies: 14
Views: 7552

Re: PIC floating point questions

Glad you tried that in hardware, I was curious if it would really work. Maybe Benj's suggestion is worth trying. Does anyone know the V5 equivalent to V6's pow(x,y)? Although pow is a reserved word in V5 I can't get the syntax right. Maybe I just have to use x*x if y is 2 and x*x*x if y = 3?
by Kenrix2
Wed Dec 25, 2013 11:48 pm
Forum: Flowcode 4 Bugs
Topic: 16F877A not compiling
Replies: 2
Views: 5310

Re: 16F877A not compiling

Seems like the settings of linker/assembler in compiler options are not correct. Have you tried "Restore Defaults"?
by Kenrix2
Mon Dec 23, 2013 1:26 am
Forum: General Programming
Topic: Macro call directly from a variable
Replies: 4
Views: 4226

Re: Macro call directly from a variable

I needed to revisit this problem for another project but needed a faster way to do it (vs using switch) and also I needed the length of time to determine the value of the variable to be more consistent. When using switch the length of time to determine the value increases as the value increases. I t...
by Kenrix2
Sat Dec 21, 2013 11:56 pm
Forum: Flowcode V5
Topic: Simple thermometer - not work without external clock ?
Replies: 3
Views: 1709

Re: Simple thermometer - not work without external clock ?

Does your project work if you use a 4mHz quartz crystal? I do not know of any reason why it would not work using the internal 4mHz oscillator.
by Kenrix2
Wed Dec 18, 2013 7:05 pm
Forum: Flowcode V5
Topic: 16F1825 UART
Replies: 2
Views: 1695

Re: 16F1825 UART

I have not tested this in hardware but, it might work. Add this to the top box in supplementary code:
#undef TXEN
#define TXEN CSRC