Search found 211 matches

by Kenrix2
Wed Dec 18, 2013 1:20 am
Forum: Flowcode V5
Topic: Using alternate pins for PWM on Pic16F1825
Replies: 9
Views: 7378

Re: Using alternate pins for PWM on Pic16F1825

Not sure if this is what your looking for but, sometimes any response will give you an idea on how to solve your problem. Connect the single PWM output to both led's so you can adjust the brightness on each but, one led's polarity is reversed. Then connect the other end of the leds to your current l...
by Kenrix2
Sun Dec 15, 2013 2:59 am
Forum: Flowcode V5
Topic: viewing registers
Replies: 9
Views: 6464

Re: viewing registers

That would certainly be my dream simulator but, I don't see how it could be done. Have you looked into a hardware version like the FlowKit in-circuit debug system? Some tools are a must have like, Digital Multimeter, Digital Recording Oscilloscope and or Logic Analyzer. The FlowKit in-circuit debug ...
by Kenrix2
Fri Dec 13, 2013 11:17 pm
Forum: Flowcode V5
Topic: Using alternate pins for PWM on Pic16F1825
Replies: 9
Views: 7378

Re: Using alternate pins for PWM on Pic16F1825

I am having trouble understanding your post and attached program. However, I can assure you that setting the PWM properties to CCP4 will indeed output a 512us period with a 20% on duty(102us) on pin 9(ccp4) exactly as in simulation. Attached is a program so that you can verify it in hardware.
by Kenrix2
Fri Dec 13, 2013 2:45 am
Forum: General Programming
Topic: FCD file for 18FxxK50
Replies: 28
Views: 29103

Re: FCD file for 18FxxK50

Nice to here your looking into XC8 compilers Benj. I have done limited testing with XC8 and Flowcode V5. It is a bit of work to setup and I can't figure out how to add the configuration bits in my program so I have to manually enter the configuration bits using the PICkit programmer. If anyone wants...
by Kenrix2
Thu Dec 12, 2013 8:55 pm
Forum: Electronics products
Topic: Wattage Rating of ESD diodes on a PIC[Solved]
Replies: 8
Views: 13332

Re: Wattage Rating of ESD diodes on a PIC[Solved]

Thanks for that very informative link Steve001. I never considered the situation where the over voltage might not have a path to go to. I'll be adding the recommended zener diode (in my case a 3.6v Zener) across the micro's supply rail.
by Kenrix2
Wed Dec 11, 2013 9:03 pm
Forum: General Programming
Topic: Counter 1-999 with 3 7 segments how to make it work help!
Replies: 2
Views: 3258

Re: Counter 1-999 with 3 7 segments how to make it work help

Not sure if this will work, since I don't have any 7 segment led displays to test it on but, it might get you started. It does simulate just fine. You probably will have to add delays for refresh rate and add some code if you do not want to display any leading zero's. The method shown to convert a n...
by Kenrix2
Sun Dec 08, 2013 2:21 am
Forum: Flowcode V5
Topic: UART bug or not in 18F67J60 ?
Replies: 4
Views: 3914

Re: UART bug or not in 18F67J60 ?

I have another idea to solve this. The problem is the name of the register bit TXIF. The Ethernet uses that bit name on this chip and the UART uses TX1IF. The file PIC_CAL_UART.c uses the bit name TXIF for the UART which works for all the micros except for this one it seems. So instead of using the ...
by Kenrix2
Sun Dec 08, 2013 12:37 am
Forum: Flowcode V5
Topic: UART bug or not in 18F67J60 ?
Replies: 4
Views: 3914

Re: UART bug or not in 18F67J60 ?

This might cause more problems than it fixes because of the Ethernet but, here is a possible band aid. Add the following to the top box in the supplementary code window: #define TXIF TX1IF The real solution will probably have to be done by Matrix Multimedia unless someone else has any ideas on how t...
by Kenrix2
Sat Dec 07, 2013 3:30 am
Forum: Programming Tips & Tricks
Topic: Assigning Flowcode variables to registers
Replies: 0
Views: 3737

Assigning Flowcode variables to registers

You can assign Flowcode variables to the PIC Micro registers or to the individual bits in these registers and perform calculations on them using the Flowcode icons in your program. These "register variables" can be added to the "Variable Watch" window when simulating your program. In addition, the "...
by Kenrix2
Mon Nov 04, 2013 5:46 am
Forum: General Programming
Topic: Using Embedded EEPROM on an AVR chip
Replies: 8
Views: 7219

Re: Using Embedded EEPROM on an AVR chip

Program mode is just a way to manually enter your "target value" and write it to EEPROM. The "target value" has to entered somehow. Maybe I just don't understand what your concept is. The EEPROM component is one of the easiest components in Flowcode to use. It's either a "read from" or a "write to" ...
by Kenrix2
Mon Nov 04, 2013 3:15 am
Forum: General Programming
Topic: CCP VS Regular I/O pin?
Replies: 12
Views: 8926

Re: CCP VS Regular I/O pin?

Instructions for that are in Microchip's Compiled Tips ‘N Tricks Guide page 3-4. You can also use Flowcode's INT interrupt and achieve similar results. If you use Flowcode's interrupt you still will have to use some C code to enable a timer, to read the timer values and to reset the timer.
by Kenrix2
Sun Nov 03, 2013 9:27 pm
Forum: General Programming
Topic: Using Embedded EEPROM on an AVR chip
Replies: 8
Views: 7219

Re: Using Embedded EEPROM on an AVR chip

Using the EEPROM read/write component requires V5 Pro. If you don't have the Pro version you will have to create you own EEPROM read/write macro. I am not sure if you can still upgrade to the V5 Pro version, you will have to ask Matrix Multimedia about that. To do your project, first you need a way ...
by Kenrix2
Sun Oct 27, 2013 8:53 pm
Forum: Electronics products
Topic: Wattage Rating of ESD diodes on a PIC[Solved]
Replies: 8
Views: 13332

Re: Wattage Rating of ESD diodes on a PIC

Thank you for your response medelec35. I finally did locate the rating after changing my search to "clamping diodes" instead of "ESD diodes". The last sentence on page 2 of AN521. It is +-500ua. So your value of 100ua is well under the max rating. Good call.
by Kenrix2
Sun Oct 27, 2013 9:05 am
Forum: Electronics products
Topic: Wattage Rating of ESD diodes on a PIC[Solved]
Replies: 8
Views: 13332

Wattage Rating of ESD diodes on a PIC[Solved]

I need to calculate the value of the current limiting resistor for an I/O pin on a PIC16LF1936 but, I can't seem to find the rating for the internal ESD diodes in any document. My working voltage is 18vdc (measured) and i need to connect that directly to a pin configured as digital input thru a curr...
by Kenrix2
Thu Oct 24, 2013 10:18 am
Forum: General Programming
Topic: Resonator setting on 16F886
Replies: 6
Views: 5952

Re: Resonator setting on 16F886

My error, sorry. The correct document is AN849. The last sentence on page five does recommend the R value you have chosen.
by Kenrix2
Thu Oct 24, 2013 9:04 am
Forum: General Programming
Topic: Resonator setting on 16F886
Replies: 6
Views: 5952

Re: Resonator setting on 16F886

20Mhz is definitely High Speed (HS) setting. Microchip's AN869 might help you in your design. You may need RFext to help it start oscillating. I have used a number of 12mhz resonators with built-in caps but, they were through hole package and they started oscillating extremely fast without the resis...
by Kenrix2
Mon Oct 21, 2013 9:41 pm
Forum: Flowcode V5
Topic: Bug with 18F67J60 ( no configuration words in hex file )
Replies: 5
Views: 5031

Re: Bug with 18F67J60 ( no configuration words in hex file )

Could you please try the following to see if it works.
In the file 18F67J60.fcd located in the FCD folder,
Change ConfigAddress=0x300000 to ConfigAddress=0x1fff8
by Kenrix2
Mon Oct 21, 2013 7:30 pm
Forum: Flowcode V5
Topic: Bug with 18F67J60 ( no configuration words in hex file )
Replies: 5
Views: 5031

Re: Bug with 18F67J60 ( no configuration words in hex file )

You will always get that warning if you do not open "Configure chip..." and click "OK". It doesn't matter what micro you are using. It's nice that it works that way.

Edit: Your right, I just tried it on the PICkit2 with that chip selected and the configuration is always FFFF FFFF FFFF FFFF.
by Kenrix2
Sun Oct 20, 2013 9:22 pm
Forum: General Programming
Topic: Still issues with 10F compiling
Replies: 12
Views: 10740

Re: Still issues with 10F compiling

100% configuration bits is normal. There is no issue there. Your ram usage is fine also. Your have ram to spare, only 13 of 16 are used. You might have a problem with stack overflow though. The compiler warning could be serious. Estimated is 3, you only have 2. Try it in hardware to see how it perfo...
by Kenrix2
Sat Oct 19, 2013 11:31 pm
Forum: General Programming
Topic: Still issues with 10F compiling
Replies: 12
Views: 10740

Re: Still issues with 10F compiling

Kersing is correct. There have been a few posts regarding how much ram Flowcode uses without anything at all in your program. For most chips this is not an issue, however, the PIC10F220 is particularly affected. This is not a bug, the ram is needed to implement features of Flowcode. There is a worka...
by Kenrix2
Tue Oct 15, 2013 2:07 am
Forum: Flowcode V4
Topic: Serious Warning: Possible sw stack corruption.
Replies: 5
Views: 5522

Re: Serious Warning: Possible sw stack corruption.

I tried to compile your program using the -sw 6 2 switch and it compiled just fine. here is my linker/assembler parameters which you can copy and paste it : -ld "C:\Program Files\Flowcode\v5\Tools\BoostC\lib" libc.pic16.lib rand.pic16.lib float.pic16.lib "%f.obj" -t PIC%p -d "%d" -p "%f -sw 6 2" May...
by Kenrix2
Mon Oct 14, 2013 11:44 pm
Forum: General Programming
Topic: Macro call directly from a variable
Replies: 4
Views: 6981

Re: Macro call directly from a variable

If anyone has any ideas on how to do this I would be very appreciative. I don't care if you idea is in c or asm or uses boostc or HITECH C. I have done a bit of internet searching and have not found a thing. Using the switch function is just taking too many instruction cycles and bloating the size o...
by Kenrix2
Mon Oct 14, 2013 9:56 pm
Forum: Flowcode V5 Issues
Topic: P16F1937 port RA.6 config. as general I/O issue
Replies: 2
Views: 6726

Re: P16F1937 port RA.6 config. as general I/O issue

Or just disable the "Clock Out Enable bit:" It is the eighth drop down box when using the PIC16F1937. If your version of PPP does not have this then you need to update it.
by Kenrix2
Mon Oct 14, 2013 9:28 pm
Forum: Flowcode V4
Topic: Serious Warning: Possible sw stack corruption.
Replies: 5
Views: 5522

Re: Serious Warning: Possible sw stack corruption.

If you could just change your target micro to one with two hardware UARTs your project would be a lot easier. Another option might be a hardware switching scheme to direct the serial signal between the two devices and just use the hardware UART.
by Kenrix2
Sun Oct 13, 2013 8:36 am
Forum: Programming Tips & Tricks
Topic: Automatic ICSP Disconnection
Replies: 12
Views: 9163

Re: Automatic ICSP Disconnection

1. They are the serial port pins on a PC.
2. To provide the high voltage required for programming.
If you already have a PICkit3 I am not clear why you would want to build this unit? What software does it use? It is a very simple design though, quite clever.