Search found 116 matches

by DirkB
Mon Dec 22, 2014 6:56 pm
Forum: Deutsch Support-Forum
Topic: 16F1938 3 x PWM
Replies: 5
Views: 12371

16F1938 3 x PWM

Hallo,

ich verwende den PIC16F1938 und verwende FlowCode V5. Ich will 3 PWM verwenden,
einen an RC1, einen an RC2 und einen an RA4. Alle CCP's sind Hardware. Wie kann ich das tun?
Define Channel 1, 2 und 5? Channel 1 und 2 gibt es mehrmals??!!

Danke

Dirk
by DirkB
Tue Dec 17, 2013 6:51 pm
Forum: Flowcode V5
Topic: 16F1825 UART
Replies: 2
Views: 2798

16F1825 UART

Hello,

i am using hardware uart on 16F1825. Is it possible to use tx-pin as normal output?
I only need rx-input and need tx-pin as LED-output. Any ideas?

Thanks

Dirk
by DirkB
Thu Dec 20, 2012 6:49 am
Forum: Flowcode V5
Topic: No capactive sensing (CPS) module in FC 5
Replies: 75
Views: 52875

Re: No capactive sensing (CPS) module in FC 5

Hmm, it's not a one wire sensor. A sensor with timer2 OSC and normal ADC i have running.

Dirk
by DirkB
Wed Dec 19, 2012 7:02 pm
Forum: Flowcode V5
Topic: No capactive sensing (CPS) module in FC 5
Replies: 75
Views: 52875

Re: No capactive sensing (CPS) module in FC 5

cooool, thanks!

Dirk
by DirkB
Wed Dec 19, 2012 6:57 am
Forum: Flowcode V5
Topic: No capactive sensing (CPS) module in FC 5
Replies: 75
Views: 52875

Re: No capactive sensing (CPS) module in FC 5

Hello Benj,

is it possible to realize one wire sensor like this with PIC and FC5 like this:

http://elm-chan.org/works/capsens/report_e.html

Dirk
by DirkB
Mon Dec 17, 2012 7:29 pm
Forum: Flowcode V5
Topic: No capactive sensing (CPS) module in FC 5
Replies: 75
Views: 52875

Re: No capactive sensing (CPS) module in FC 5

Hello Benj,

do you have a complete example or a modified A/D Component only for PIC16F825?

Dirk
by DirkB
Mon Dec 17, 2012 12:40 pm
Forum: Flowcode V5
Topic: No capactive sensing (CPS) module in FC 5
Replies: 75
Views: 52875

No capactive sensing (CPS) module in FC 5

Hello,

is there any Chance to activate the "CAPACITIVE SENSING (CPS) MODULE"
in Flowcode 5? I am using PIC12F1840 and PIC 16F1825.

thanks

Dirk
by DirkB
Mon Nov 19, 2012 9:25 pm
Forum: Deutsch Support-Forum
Topic: Midi component ohne Funktion
Replies: 21
Views: 28858

Re: Midi component ohne Funktion

The RXINT interrupt will only work with hardware UARTs and will be more reliable as the hardware can buffer up to 3 bytes of data rather then the software which will just error if you happen to miss any of the data start bits. Hello Benj, is it possible to increase Software UART up to 3 Bytes or mo...
by DirkB
Sun Oct 28, 2012 1:38 pm
Forum: Flowcode V5
Topic: 12F1840 0sccon
Replies: 13
Views: 7034

Re: 12F1840 0sccon

Hello Enamul,

i have solved the problem. At 16 Mhz or 32 Mhz the time out of midi component must be 2 bytes or more.

Dirk
by DirkB
Sun Oct 28, 2012 1:31 pm
Forum: Deutsch Support-Forum
Topic: Midi component ohne Funktion
Replies: 21
Views: 28858

Re: Midi component ohne Funktion

Hello,

is it possible to increase buffer of Software Uart up to 3 bytes or 6 bytes maybe?

thanks

DirkB
by DirkB
Fri Sep 28, 2012 6:23 pm
Forum: Flowcode V5
Topic: 12F1840 0sccon
Replies: 13
Views: 7034

Re: 12F1840 0sccon

Hi Enamul,

sorry, the new optocoupler was damaged. Now all works fine.
But only at 8 Mhz. At 32 Mhz it dosen' t work! Why?

Dirk
by DirkB
Fri Sep 28, 2012 3:16 pm
Forum: Flowcode V5
Topic: 12F1840 0sccon
Replies: 13
Views: 7034

Re: 12F1840 0sccon

Hi Enamul,

yes that is what i mean. Using Hardware UART with RXINT. No Funktion :shock:

OSCCON: 0x70; PLL is anabled, build with 32 Mhz, PLL not enabled, build with 8 Mhz ans so on.

What is going wrong :?:

Dirk
by DirkB
Fri Sep 28, 2012 2:15 pm
Forum: Flowcode V5
Topic: 12F1840 0sccon
Replies: 13
Views: 7034

Re: 12F1840 0sccon

Hello,

the 12F1840 works fine, but no Midi, no RXINT. I think it is wrong timing. Please someone have a example for osccon?
Using Flowcode 5.4 with new 12F1840.fcd, No RXINT no Midi!!
Here the codes from Datasheet.
OSCCON_12F1840.png
(108.21 KiB) Downloaded 1398 times
thanks

Dirk
by DirkB
Sun Sep 09, 2012 9:24 pm
Forum: Flowcode V5
Topic: 12F1840 0sccon
Replies: 13
Views: 7034

Re: 12F1840 0sccon

Hi Martin,

now it ist a bit more clear for me.

thanks a lot.
by DirkB
Sun Sep 09, 2012 9:06 am
Forum: Flowcode V5
Topic: 12F1840 0sccon
Replies: 13
Views: 7034

Re: 12F1840 0sccon

Thanks Martin, thanks Brandon,

How to set PLL enable bit?
by DirkB
Sat Sep 08, 2012 4:05 pm
Forum: Flowcode V5
Topic: 12F1840 0sccon
Replies: 13
Views: 7034

12F1840 0sccon

Hello,

the osccon values are:

0x70 : 8MHz
0x60 : 4MHz
0x50 : 2Mhz
0x40 : 1Mhz
0x30 : 500kHz
0x20 : 250kHz
0x10 : 125kHz
0x00 : 31.25kHz

for PIC 12F1840 the values are the same, and what osccon code is to set the frequencies 8 Mhz up to 32Mhz?

thanks

Dirk
by DirkB
Mon Apr 02, 2012 7:38 pm
Forum: Deutsch Support-Forum
Topic: PIC16F883 / Internal Clock RA6 & RA7
Replies: 8
Views: 8039

Re: PIC16F883 / Internal Clock RA6 & RA7

Die Option nennt sich "internal OSC I/O", wie DavidA schon vorher erklärt hat, also "with I/O", was bedeutet,
dass die Pins RA6 und RA7 weiterhin als Input und Output verwendet werden können.

Gruß

Dirk
by DirkB
Sun Mar 25, 2012 5:52 pm
Forum: Flowcode V5
Topic: Bit from a Byte?
Replies: 3
Views: 3255

Re: Bit from a Byte?

Hi Matin,

cool, this works well!

Ok, how to: Combine a Byte 8 bit and a Byte 4 bit to a Byte with 12 bit word lenght.
8 bit word is lsb, 4 bit word is msb, and - later split them back to original word lenght.
Hope you understand my bad english :roll:

Thank you very much

Dirk
by DirkB
Sun Mar 25, 2012 9:27 am
Forum: Flowcode V5
Topic: Bit from a Byte?
Replies: 3
Views: 3255

Bit from a Byte?

How to? Just read a bit from a byte.

Thanks

Dirk
by DirkB
Sun Mar 18, 2012 10:59 am
Forum: Flowcode V5
Topic: Does Flowcode support LAT?
Replies: 2
Views: 2820

Re: Does Flowcode support LAT?

Hello Ben

it should be a Input Icon or you can select these Function in Input Icon.
You can read Output State of a Pin without switching Pin to Input.
These is a great Funktion and makes code more simply and faster.
Is it possible to to integrate these Function in future Update?

Regards

Dirk
by DirkB
Fri Mar 09, 2012 6:38 pm
Forum: Deutsch Support-Forum
Topic: Midi component ohne Funktion
Replies: 21
Views: 28858

Re: Midi component ohne Funktion

Hello, someone an idea??? (Edit) I found it. The V4 examples are wrong! It must be: - Receive Midi into variable "MidiIn" - Read Data 0 into variable "status" (very important to get status byte) - Read Data 1 into variable data1 - Read Data 2 into variable data2 This works very well. Regards Dirk
by DirkB
Wed Mar 07, 2012 3:18 pm
Forum: Deutsch Support-Forum
Topic: Midi component ohne Funktion
Replies: 21
Views: 28858

Re: Midi component ohne Funktion

Hello Ben, i stored a Status Byte manually in EEprom. In this case it is 0xC0, C for Programm Change, 0 for Midi Channel 1. In Flowchart reading this into variable Midi_Chan. After incoming Midi Massage the Status is stored with Midi Component "MidiReceive" into the variable "Status". Then i use the...
by DirkB
Wed Mar 07, 2012 12:32 pm
Forum: Deutsch Support-Forum
Topic: Midi component ohne Funktion
Replies: 21
Views: 28858

Re: Midi component ohne Funktion

Hi Ben, It sure is... lowernib = status & 0x0f highernib = (status & 0xf0) >> 4 thank you. These code must be used in a calculation Icon? When using Hardware UART it is reading LSB first. Does the Midi Component reading Status Byte (data 0) LSB first too? There is a tiny problem with status byte wit...
by DirkB
Tue Mar 06, 2012 5:45 pm
Forum: Deutsch Support-Forum
Topic: Midi component ohne Funktion
Replies: 21
Views: 28858

Re: Midi component ohne Funktion

Hi Ben,

ok, i understand. I don't have tested other Chips. Is it possible to separate upper nybble and lower nybble from Status Byte in two Variables?

Thanks

Dirk
by DirkB
Tue Mar 06, 2012 3:37 pm
Forum: Deutsch Support-Forum
Topic: Midi component ohne Funktion
Replies: 21
Views: 28858

Re: Midi component ohne Funktion

Hi Ben,

16F688 with Hardware UART works well. Thank you so much. Now i can finish my Projects.
Are Updates for other Chips (16F917 and so on) available? Is it possible to fix Timing Problem
of Software UART?

Regards

Dirk