Search found 25 matches

by Rosenbaum
Thu Sep 29, 2011 12:18 pm
Forum: Flowcode V4
Topic: Error in the ADC definition
Replies: 10
Views: 10294

Re: Error in the ADC definition

The file for pic16F1827 is "PIC_ADC_23.c" in the "Component" Folder.
I attached my file, which is changed to work.
by Rosenbaum
Thu Sep 29, 2011 10:27 am
Forum: Flowcode V4
Topic: pic16f1827 ad conversion problem
Replies: 1
Views: 2542

Re: pic16f1827 ad conversion problem

You can solve this problem with this workaround:
http://www.matrixmultimedia.com/mmforum ... =29&t=8746
by Rosenbaum
Thu Sep 29, 2011 8:53 am
Forum: Flowcode V4
Topic: 16LF1827 & 16F1827
Replies: 18
Views: 10909

Re: 16LF1827 & 16F1827

@2: I cant' help.

@1: You have to set the clockspeed in a "C-Code"-block manually. In the Datesheet on Page 67 you will see the correct dataword(s).
by Rosenbaum
Wed Sep 28, 2011 2:50 pm
Forum: General Programming
Topic: SSOP package programing
Replies: 2
Views: 3500

Re: SSOP package programing

There are diffrent ways:
ssop:
http://de.farnell.com/wells-cti/656c1202215-001/sockel-smd-ssop-nullsteckkraft/dp/9897623
sop:
http://de.farnell.com/wells-cti/652d0202215/sockel-ic-sop-20pole/dp/9897658
http://de.farnell.com/3m/923665-28/stecker-soic-ic-test-clip/dp/1654361
http://de.farnell.com/3m ...
by Rosenbaum
Mon Aug 22, 2011 2:04 pm
Forum: Flowcode V4
Topic: Error in the ADC definition
Replies: 10
Views: 10294

Re: Error in the ADC definition

Jes, I think the problem start at
#define ADRES 0x009B
#define ADRESL 0x009B
#define ADRESH 0x009C
in ..\boostc\include\pic16F1xxx.h
It seems that ADRES should used as an integer for AdresL+AdresH, but Flowcode use only AdresL.
by Rosenbaum
Mon Aug 22, 2011 9:57 am
Forum: Flowcode V4
Topic: Error in the ADC definition
Replies: 10
Views: 10294

Re: Error in the ADC definition

I found a short and nice solution.
I looked at the "UserCode" from ReadAsInt ans ReadAsByte and changed the code from the 1827/1936-Code
short iRetVal;
SampleADC();
#ifdef _BOOSTC
#ifdef ADRES
iRetVal = (adres << 2);
#else
iRetVal = (adresh << 2);
iRetVal = iRetVal | (adresl >> 6);
#endif ...
by Rosenbaum
Mon Aug 22, 2011 8:41 am
Forum: Flowcode V4
Topic: Error in the ADC definition
Replies: 10
Views: 10294

Re: Error in the ADC definition

The results of measuring was wild numbers.
When the numbers jump from 64 - 128 - 192 in "ReadAsByte" and 256 - 512 - 768 in "ReadAsInt", I have the same problem with PIC16F1827 and PIC16F1936.Maybe the problem is the left-right justify or the new Bit's in ADCON0 and ADCON1.
by Rosenbaum
Thu Jul 28, 2011 8:57 am
Forum: C and ASM Programming
Topic: Loading C or ASM into PIC
Replies: 19
Views: 21733

Re: Loading C or ASM into PIC

Hi Jan.
When your posted asm-file is ok, taht will be the reasen getting no problem.
That you have to use a project is corrcet. Without a project and a workingspace you are not able to compile a file.

I remeber another problem I had in the past after changing the ASM-Code.
BoostC create ASM-Code ...
by Rosenbaum
Thu Jul 28, 2011 8:16 am
Forum: C and ASM Programming
Topic: compile Flowcode C-File in MPLab with BoostC
Replies: 2
Views: 21441

compile Flowcode C-File in MPLab with BoostC

Is it possible to compile a Flowcode-C-file in MPLab using the BoostC compiler? I wont use the "Flocode-BoostC". When my intention will work, I am goining to buy my own BoostC licence.
The reasen is to learn C with the advantage of Flowcode. The C-Code-Block is not as nice as a real C-Code ...
by Rosenbaum
Thu Jul 28, 2011 7:59 am
Forum: Flowcode V4
Topic: Flowcode 4.5, PIC16F1936 and EEPROM wont work at the scrath
Replies: 3
Views: 3262

Flowcode 4.5, PIC16F1936 and EEPROM wont work at the scrath

I make a Flowchart with PIC16F1936 and read and write a value out of and into eeprom, but there is a problem:
...
eeprom.c
Starting preprocessor: c:\PROGRA~1\MATRIX~1\FLOWCO~2\boostc\pp.exe eeprom.c -i c:\PROGRA~1\MATRIX~1\FLOWCO~2\boostc\include -d _PIC16F1936 -la -c2 -o eeprom.pp -v -d _BOOSTC -d ...
by Rosenbaum
Wed Jul 27, 2011 12:14 pm
Forum: C and ASM Programming
Topic: Loading C or ASM into PIC
Replies: 19
Views: 21733

Re: Loading C or ASM into PIC

Hi Jan.
The Error shown in the screenshot say's that there is no "END" at the and of the file (ERORR[129]). At the moment I don't know why because there is an "END". I compiled your asm in MPLab 8.60 and 8.73a and it worked without any problem.
Maybe there is a problem in your projekt, please ...
by Rosenbaum
Wed Jul 27, 2011 6:32 am
Forum: C and ASM Programming
Topic: Loading C or ASM into PIC
Replies: 19
Views: 21733

Re: Loading C or ASM into PIC

If you post a screenshot of the error maybe it is possible to say what is wrong.
Which version of MPlab you have installed?
In 8.x there is a new option for absolut or relcoatible Code. Here you have to use the "Absolut"-Code with a flowcode asm-file. When you are not sure which option you use look ...
by Rosenbaum
Tue Jul 26, 2011 9:32 am
Forum: Flowcode V4
Topic: WDT wake up from sleep
Replies: 6
Views: 5505

Re: WDT wake up from sleep

When I read youre posted c-code I read this:
main{
configuration,
watchdog reset,
puls,
sleep
Loop without watchdog reset (mainendloop: goto mainendloop;)
}
Your Program runs one time, the PIC begins to sleep, the watchdog let the PIC wakeup after ~2.3s but now there is now jump and the PIC runs ~2 ...
by Rosenbaum
Mon Jul 04, 2011 10:55 am
Forum: Flowcode V4
Topic: New Devices from Microchip
Replies: 28
Views: 17840

Re: New Devices from Microchip

[...one month later...]
Are you now poosible to say something about the release date?
I want to use the new PIC16F1Xxx but the HiTechC-Workaround is not the right solution for my projekts.
by Rosenbaum
Wed Mar 11, 2009 9:52 am
Forum: General / Misc
Topic: PIC16F506 not available in Flowcode 3.6.11.53
Replies: 5
Views: 19075

PIC16F506 not available in Flowcode 3.6.11.53

I have a problem using the PIC16F506 in Flowcode 3.6.11.53.

It is not available . But I think it was in previous versions.

If I choose a PIC16F505 alternatively , I get an error-message, that the FCD is missing or has an error.
by Rosenbaum
Thu Oct 18, 2007 9:25 am
Forum: Flowcode V2 & V3
Topic: Watchdog problem using LCD in version 3.2.2
Replies: 3
Views: 4213

But anyway, it seems to work with the c-code
by Rosenbaum
Thu Oct 18, 2007 9:19 am
Forum: Flowcode V2 & V3
Topic: Watchdog problem using LCD in version 3.2.2
Replies: 3
Views: 4213

IΒ΄m using a PIC16F818 and I reset the watchdog every few steps with a c-code "clear_wdt();" . I realize delays with loop and a 1ms delay and in the loop also the c-code for the watchdog reset. but I will try to bring in your idea in my initialization
by Rosenbaum
Thu Oct 18, 2007 8:21 am
Forum: Flowcode V2 & V3
Topic: Watchdog problem using LCD in version 3.2.2
Replies: 3
Views: 4213

Watchdog problem using LCD in version 3.2.2

A few versions ago there was a Problem concerning the frequency and the LCDΒ΄s:

http://matrixmultimedia.com/mmforums/viewtopic.php?t=1548&view=next

This Problem is solved in Version 3.2.2. But now the watchdog stops the program. I just compiled an old ( working) program again with the new version ...
by Rosenbaum
Tue Aug 28, 2007 11:07 am
Forum: Flowcode V2 & V3
Topic: Unrecognised chip on command line PIC16F631
Replies: 3
Views: 4190

Thanks for the answere. Is there another way to configure this chip ? I program the "source code" with Flowcode, then I compile it and put it via Mplab into the chip
by Rosenbaum
Mon Aug 27, 2007 10:17 am
Forum: Flowcode V2 & V3
Topic: Unrecognised chip on command line PIC16F631
Replies: 3
Views: 4190

Unrecognised chip on command line PIC16F631

I have a problem with a PIC16F631. It is not possible for me to configure this chip in PPP. If I try it, I get the remark "Unrecognised chip on command line: <PIC16F631>" and there is also no possibility to chose this chip in PPP.

IΒ΄m using:

Flowcode: 3.2.1
PPP: 3.9.12.26
by Rosenbaum
Fri Apr 13, 2007 11:30 am
Forum: Flowcode V2 & V3
Topic: Watchdogreset in Flowcode
Replies: 7
Views: 8796

Hello,
I tried your solution. but it is not working for me.

I got an error-message:

error: unknown identifier 'clr_wdt'
error: failed to generate expression


Can you help me to reset the watchdog.
by Rosenbaum
Thu Apr 05, 2007 12:38 pm
Forum: Flowcode V2 & V3
Topic: Watchdogreset in Flowcode
Replies: 7
Views: 8796

Watchdogreset in Flowcode

Wow I can reset the watchdog in flowcode, or how I can bring in the clrwdt-command into flowcode ?
by Rosenbaum
Wed Mar 14, 2007 1:26 pm
Forum: Flowcode V2 & V3
Topic: Problem with frequency and LCD display
Replies: 39
Views: 34641

Same problems with the LCD

Hi,
I have exactly the same problem, using a PIC16F716 with an AV1624 LCD in combination with a 4MHz or 2MHz quartz. If I adjust the frequency on the same value as the quartz has, no matter if it is a 4 MHz or a 2MHz, the LCD is not working. If I adjust it on a different value it works with both ...
by Rosenbaum
Thu Feb 22, 2007 3:44 pm
Forum: Flowcode V2 & V3
Topic: Analogue Input for PIC16F716
Replies: 1
Views: 3727

Analogue Input for PIC16F716

How can I realise an analogue input in Flowcode 3.1.0.31 for the PIC16F716. I tried it with an ADC and two component macros ( 1. Sample ADC 2. ReadAsByte) and the simulation was running very well, but when I tried to compile it I got the error message:


D:\Eigene Dateien\Flow\An In\An In.c(77:9 ...