Search found 25 matches

Return

by victorhantelmann
Wed Jan 30, 2013 9:39 pm
Jump to forum
Jump to topic

Re: PICkit3 18F45K22 LCD problem

I had a similar problem with a LCD, you should be carefull with your PIC settings, consult the datasheet carefully. Mostly your OSC settings, as an advice try to use the internal clock as Microchip does a preety good job of tunning the internal OSC. Also, in my case there were erratic signs when the...
by victorhantelmann
Sat Feb 02, 2013 12:07 am
Jump to forum
Jump to topic

Re: PICkit3 18F45K22 LCD problem

I have previously posted something related to PIC18FxxK80, sorry for that. If with your LCD and PIC18F45K22 you have problems and with the same LCD and PIC16F877 or 887 you don't have problems then there is a high probability that you either have a hardware problem in your schematic or you have cloc...
by medelec35
Sun Mar 03, 2013 2:54 pm
Jump to forum
Jump to topic

Re: PICkit3 18F45K22 LCD problem

It looks like this post would apply:
viewtopic.php?f=26&t=11934&p=45260
Plus also Bens suggestion is also required.
So it maybe worth altering altering FCD for the K series to allow for this on the higher speeds?
by Enamul
Sat Nov 17, 2012 9:06 am
Jump to forum
Jump to topic

Re: DS1307 RTC

Hello I have written a code which will take care British summer time (BST) or day-light saving (DLS) issue automatically. I thought it would be good to post that program here so that everyone looking for RTC can get the idea and use that in their code if they want. Specially John presented this thre...
by JohnCrow
Sun Jul 10, 2011 6:10 pm
Jump to forum
Jump to topic

Re: DS1307 RTC

Part 3 Reading Date From The RTC This is performed in the same way as reading the time Start Tx_Byte RTC_W Tx_Byte 0 Restart The read cycle then continues as below. Tx_Byte RTC_R Rx_Byte Last(Byte) 3 Sets pointer to register 3 (DAY) Return Value DAY Rx_Byte Last (Byte) 0 Return Value Reg_Date Rx_By...
by kersing
Fri Sep 26, 2014 12:46 pm
Jump to forum
Jump to topic

Re: Look up table out of bounds

Howard, LUT allows you to store large datatypes as well. The GetInt macro returns an unsigned long value. Regarding the C versus Flowcode issue, as C code is ignored in simulation your array will not be filled with values as far as simulation is concerned when it is declared and filled in C code. To...
by medelec35
Thu Sep 25, 2014 6:15 pm
Jump to forum
Jump to topic

Re: Look up table out of bounds

Hi Howard, Life is made easier with FC6 since it has a dedicated LUT component built-in, so no C code required. Just click search and enter lut. What you need to do is select properties of LUT, copy and paste your comma separated numbers in the integers section. when you want to retrieve LUT data, j...
by kersing
Wed Oct 15, 2014 11:24 pm
Jump to forum
Jump to topic

Re: Look up table out of bounds

Hi Howard, After a bit of investigation it turns out the Lookup Table component does support 16 and 32 bit integer types as well. To switch the data type you need to incorporate a call to the SetIntBits macro of the component. This can be done at the start of your main program for simulation purpose...
by medelec35
Thu Jul 14, 2016 1:14 pm
Jump to forum
Jump to topic

Re: Pickit 3 FC7

Howard, I have successfully programmed using PICkit3 via FC7: Launching the compiler... C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe --chip=16F1937 "pickit3_test.c" --MSGDISABLE=359,1273,1388 ...... Memory Summary: Program space used 87h ( 135) of 2000h words ( 1.6%) Data sp...
by Kenrix2
Thu Jul 14, 2016 10:41 pm
Jump to forum
Jump to topic

Re: Pickit 3 FC7

Right now the wiki link posted above has outdated information. I followed the instructions from the following link and have had no issues using newer devices.
viewtopic.php?f=54&t=12970&p=62409&hilit=pickit3+parameters#p74807
by PaulNe
Fri Jul 15, 2016 9:33 am
Jump to forum
Jump to topic

Re: Pickit 3 FC7

Hi all, The PICKIT info has been updated on the Wiki, but at a different link; http://www.matrixtsl.com/wikiv7/index.php?title=Supporting_Third_Party_Programming_Tools#PICkit3_using_MPLABX_IPE_.28NEW.29 We will be updating the compiler options for each chip family ASAP. As Steve said in another post...
by LeighM
Tue Jan 17, 2017 4:47 pm
Jump to forum
Jump to topic

Re: undeclared error

for V7 ...

Code: Select all

OSCCON=0b0001000110100000;
by Jan Lichtenbelt
Wed Jan 18, 2017 10:08 pm
Jump to forum
Jump to topic

Real time clock DS1307 using I2C

(Earlier publications using ds1307 are available in this Forum. Thus, this is not new!) Learning I2C I found the sample Flowcode I2C_DS1307_Eaxample.fcfx http://www.matrixtsl.com/wikiv7/images/3/3f/DS1307InjectorTest.fcfx in the Flowcode help. It took a while, but find out that it is only a simulati...
by LeighM
Thu Feb 09, 2017 9:19 am
Jump to forum
Jump to topic

Re: LUT only works in simulation

Updated project attached ...
by Benj
Wed Feb 15, 2017 11:29 am
Jump to forum
Jump to topic

Re: LUT only works in simulation

Here is an updated LUT component with a user configurable data type, this should allow you to select exactly which data type you want to use. If you have a go with it then please let me know how you get on. Simply copy the attached file to your "Flowcode 7/Components" directory and restart...
by Benj
Mon Mar 06, 2017 11:26 am
Jump to forum
Jump to topic

Re: Does not compile with I2C component

Hi Howard,

Many thanks for letting us know. This problem has now been found and resolved.

Simply copy the attached file into your "Flowcode 7/CAL/PIC16BIT" folder and then compilation should work correctly.

PIC16BIT_CAL_I2C.c


Let us know how you get on.
by Benj
Tue Mar 28, 2017 1:01 pm
Jump to forum
Jump to topic

Re: 7.2.0.5 problem

Hi Howard, Aha ok I see and think I know what is happening. It looks like one of the macros from inside the component is appearing as Flowcode is showing you the icon it cannot work with on the new chip. The icon is disabled and so you can probably just close the macro and ignore the error. I will p...
by Bachman
Mon May 01, 2017 3:09 pm
Jump to forum
Jump to topic

Re: delay function problem

The flowchart command sends the charaters to a buffer (SW, HW, both?) then waits 4 ms, the main process does not wait for the UART module to finish the job. This is why you see more pause at higher UART baudrate. I think.

Delay time.jpg
by Benj
Wed May 03, 2017 11:02 am
Jump to forum
Jump to topic

Re: delay function problem

Hi Howard,

If you wanted to wait until the UART byte has finished being sent before starting your delay then you could use this following C code in a C icon.

UART Channel 1

Code: Select all

while (TXSTA1bits.TRMT);


UART Channel 2

Code: Select all

while (TXSTA2bits.TRMT);
by medelec35
Mon Aug 14, 2017 12:16 pm
Jump to forum
Jump to topic

Re: Port B not working

Hi Howard,
Working for me as well.

Have you downloaded, copied and paste all files within zip file from this post?

Martin
by Benj
Mon Sep 04, 2017 3:55 pm
Jump to forum
Jump to topic

Re: I2C causes processor to hang

Hi Howard,

For your last receive byte before the stop you should set the "Last" parameter to 1 to generate the NAK.

Let us know how you get on.
by Kenrix2
Thu Oct 26, 2017 8:37 pm
Jump to forum
Jump to topic

Re: PLL not working

Does this work?

Code: Select all

OSCCON=0b11110000;
OSCTUNE=0b01000000;

If you look at Figure 2-1, find the Clock Switch MUX. You can see that SCS<1:0> needs to be 00 for the 4xPLL to work.
by kersing
Fri Nov 17, 2017 1:15 pm
Jump to forum
Jump to topic

Re: UART receive problem

As you haven't posted your flowcard there is not much to go on. We can't look at controller settings, component settings etc. We can't see what component you are using (RS232 or UART CAL) We just see a few icons...
by Benj
Fri Jan 12, 2018 2:31 pm
Jump to forum
Jump to topic

Re: Timer not working

Hi Howard, Thanks for that. I'm having another look for you now. I have looked at the Microchip errata document for the device and it does mention the timers 1, 3, 5 several times so it could be it's a silicone bug. I'll have another look through the code just to be sure. Maybe try FOSC/4 instead of...
by Kenrix2
Sat Jan 20, 2018 3:01 am
Jump to forum
Jump to topic

Re: Erratic timer operation

There is nothing wrong with the chip's timers. This is a Flowcode bug.