Search found 17 matches

by Andreas
Wed May 27, 2020 6:34 pm
Forum: Electronics products
Topic: How to handle/avoid voltage drop on current load (ADC trouble)
Replies: 7
Views: 832

Re: How to handle/avoid voltage drop on current load (ADC trouble)

Thanks again In response to your question: I dont know the exact length at the moment but I'm pretty sure that the supply wouldn't have to go further than 3m (6m roundtrip) at most. And that distance will only apply to some parts of the circuit/amount of LEDs, as I would have several cables powering...
by Andreas
Sun May 24, 2020 9:56 pm
Forum: Electronics products
Topic: How to handle/avoid voltage drop on current load (ADC trouble)
Replies: 7
Views: 832

Re: How to handle/avoid voltage drop on current load (ADC trouble)

Thanks to both of you on the elaborations. I've now now made two parallel connections from the PSU, one for the LEDs, and one for the remaining (voltage sensitive) part of the circuit, and everthing seems to work perfectly now. Its great that I now only need one PSU, even though I would have liked t...
by Andreas
Wed May 20, 2020 11:27 pm
Forum: Electronics products
Topic: How to handle/avoid voltage drop on current load (ADC trouble)
Replies: 7
Views: 832

Re: How to handle/avoid voltage drop on current load (ADC trouble)

Thanks for the quick reply, and your simple advice I quickly found that a large problem turned out to be the power-switch I had integrated into the circuit, which was greatly underated for the currents in the circuit. It seems that there were a voltage drop of around 300mA over that switch. Unfortun...
by Andreas
Mon May 11, 2020 12:06 am
Forum: Electronics products
Topic: How to handle/avoid voltage drop on current load (ADC trouble)
Replies: 7
Views: 832

How to handle/avoid voltage drop on current load (ADC trouble)

Hi I've been trying to control a bunch of LED's through a PIC microcontroller and some microphones, such that the LED's light up whenever the microphones sense sound. The microphones are two small electret mics together with a amplifier circuit such that the output is centered around VDD/2 Volts whe...
by Andreas
Thu Jan 10, 2019 12:15 am
Forum: Flowcode V8
Topic: XC8 compiler with not reacting on --ASMLIST flag
Replies: 1
Views: 868

XC8 compiler with not reacting on --ASMLIST flag

Hi Just upgraded from FC7 to FC8, and during my coding I got an Fixup error (1357). Microchip guides to look in the listing file, however, I cannot make FC8 give the --ASMLIST flag correctly to the cmd Here's what i wrote in the compile options diaglog Location: $(compilerpic)batch\pic_xc8_comp.bat ...
by Andreas
Fri Aug 04, 2017 3:39 pm
Forum: C and ASM Programming
Topic: Is C-code costomization of variable-declaration possible?
Replies: 3
Views: 2998

Re: Is C-code costomization of variable-declaration possible

Hej Benj Thank you so much for your answer, it just worked right away. Only a few changes had to be made to make it work for all three variables. You have saved my day. Events is a bit new to me, and until now I didn't really think it could be used to much else than simulation purposes, which I stil...
by Andreas
Fri Aug 04, 2017 11:42 am
Forum: C and ASM Programming
Topic: Is C-code costomization of variable-declaration possible?
Replies: 3
Views: 2998

Is C-code costomization of variable-declaration possible?

Hey Is it possible to costomize the C-code in connection to variable declaration in FlowCode 7? I have found out that it is possible with most of the blocks in the Flow-diagram, but i can't find the functionality in connection to variable declarations. I'm working on a project with 3 arrays which is...
by Andreas
Wed Jul 26, 2017 5:04 pm
Forum: 8-Bit PIC
Topic: I2C-communication between PIC16F88 MCUs (how to?)
Replies: 2
Views: 1740

Re: I2C-communication between PIC16F88 MCUs (how to?)

Hey Benj Thank you for sorting it out for me. I might not be good enough at FlowCode (yet) to fully understand when to use the low-level-version, but as I just want to make the communication work, I will stick to your adwice and use the Comms version. I have already been looking at the page you reco...
by Andreas
Wed Jul 26, 2017 3:05 pm
Forum: 8-Bit PIC
Topic: I2C-communication between PIC16F88 MCUs (how to?)
Replies: 2
Views: 1740

I2C-communication between PIC16F88 MCUs (how to?)

Hey I'm working on a project where I would like to make two (maybe more as things evolve) microcontrollers communicate, and I found I2C, which is supported by FlowCode v7, as an obvious choice. Unfortunately I have not been working with it before, and I can't seem to make anything work at all. I hav...
by Andreas
Sat Jan 28, 2017 2:58 pm
Forum: C and ASM Programming
Topic: Fixup overflow at function-call
Replies: 0
Views: 3594

Fixup overflow at function-call

Hi I am working on a project in FlowCode 7, in which, one of the functions is driven only by assembly. My program have worked fine, but somewhere I had to do some changes, and I had to change an if-statement from working with ">" to work with ">=", and now I get three fixup-overflow errors, when com...
by Andreas
Fri Jan 27, 2017 5:01 pm
Forum: Flowcode V7
Topic: Arrays takes up all memory
Replies: 4
Views: 2087

Re: Arrays takes up all memory

Hi Thanks Now I understand why those assembly-blocks were highlighted each time the error occurred By looking at the auto-generated assembly-code FlowCode creates when reading from one of the arrays (via the regular calculation-block in FlowCode) I have found out how to access the arrays in the corr...
by Andreas
Fri Jan 27, 2017 12:59 pm
Forum: Flowcode V7
Topic: Arrays takes up all memory
Replies: 4
Views: 2087

Re: Arrays takes up all memory

Thank you for the answer I have attached the program here. I did some cleanup in the program for your convenience, and it made it possible for me to make room for 14 bytes per array, but no more, and the memory-summary does not seem to have changed much. The arrays are globals and are called redArra...
by Andreas
Thu Jan 26, 2017 4:16 pm
Forum: Flowcode V7
Topic: Arrays takes up all memory
Replies: 4
Views: 2087

Arrays takes up all memory

Hi I am working on a program with 3 arrays. Right now all three arrays contain 13 bytes, but i would like to expand all of those. Unfortunately the compiler makes som kind of memory-error, when I try to expand to 14 bytes per array. I have attacched the .msg.txt file with the error message. I have t...
by Andreas
Thu Jan 26, 2017 3:45 pm
Forum: Flowcode V7
Topic: Programsize problems in FlowCode 7?
Replies: 2
Views: 2026

Re: Programsize problems in FlowCode 7?

Hi

Thanks for the answer

The error was on my shoulders. I had forgotten that i had in-commented some code wich was not used, and because it was driving a LCD-display, this of course took a lot af program space.

But everything works fine now.
by Andreas
Thu Jan 26, 2017 3:41 pm
Forum: Flowcode V7
Topic: Inline assembly in FC7
Replies: 2
Views: 1822

Re: Inline assembly in FC7

Hi

Thanks for the answer.

I read the manual for mplab XC8 compiler and found out that using #asm and #endasm was solving my problem. Unfortunately this lead to other syntax-errors, but i found a workaround and now everything works fine.
by Andreas
Tue Jan 17, 2017 11:39 pm
Forum: Flowcode V7
Topic: Programsize problems in FlowCode 7?
Replies: 2
Views: 2026

Programsize problems in FlowCode 7?

Hi Recently i have started using FlowCode 7, instead of FlowCode5, and in connection to this i have some programs in FlowCode 5, which i would like to continue to work with in FlowCode 7. But this isn't all without problems: I have a file which was perfectly compiled, and worked fine on my PIC-micro...
by Andreas
Tue Jan 17, 2017 7:23 pm
Forum: Flowcode V7
Topic: Inline assembly in FC7
Replies: 2
Views: 1822

Inline assembly in FC7

Hi I have until now been using FC5, and therefore have a lot of old programs programs, which is programmed in FC5. Unfortunately i do no longer have access to my former FC5 licens, and i am now started to use FC7, starting with the 30 days trial. In some of my programs i have inline assembly code, b...