Search found 45 matches

by henker
Mon Aug 21, 2023 7:20 pm
Forum: Flowcode V5
Topic: Analog value too high
Replies: 4
Views: 6223

Re: Analog value too high

Yes it is consistent.
With 0V the raw value is 6. With exactly 2.5V is it 519 / 520.
It never goes over 1023

Henk
by henker
Mon Aug 07, 2023 7:42 pm
Forum: Flowcode V5
Topic: Analog value too high
Replies: 4
Views: 6223

Analog value too high

For years I have been using the PIC 18F4685 for our equipment. Never had any issues however recently I had to use a PIC 18F4682 as the 5 was not available. Everything seemed to be working normal until I realized that all the Analog values are a bit too high. When applying a clean 2.5V on the an anal...
by henker
Tue Apr 25, 2023 11:56 am
Forum: Flowcode V5
Topic: String compare function
Replies: 2
Views: 2604

Re: String compare function

Thanks CF
Weird enough, in simulation mode you can use the local and it actually works. Tonight I will change the local to a global and see if that makes the difference

Henk
by henker
Tue Apr 25, 2023 2:23 am
Forum: Flowcode V5
Topic: String compare function
Replies: 2
Views: 2604

String compare function

Hello Trying to figure out why the "string Compare" function doesn't work for me. I have to strings that are identical however, the return value of the compare function still returns 255. Same applies if the 2 strings are not the same... still 255 Flag_identifier = Compare$ (.Identifier,Word_receive...
by henker
Tue Sep 06, 2022 10:48 pm
Forum: General Programming
Topic: I2C no longer decoding
Replies: 2
Views: 3571

Re: I2C no longer decoding

Thanks for the information. Not sure which setting did the trick but it seems to be working!
by henker
Tue Sep 06, 2022 1:33 am
Forum: General Programming
Topic: I2C no longer decoding
Replies: 2
Views: 3571

I2C no longer decoding

I'd like to get some help with the decoding of an I2C sensor. The MPRLS sensor is connected to an 18F4685 and with my (rigol) scope I can see the signals just fine and the scope is decoding the correct values. Attached is the code which used to work, however for some reason after a compile, the "rda...
by henker
Thu Feb 26, 2015 2:46 am
Forum: Flowcode V5
Topic: Interrupt on B0 too slow?
Replies: 4
Views: 5467

Re: Interrupt on B0 too slow?

Thanks for your quick reply Ben,

The signal is a square wave, not a SIN.
Let me play around with some resistors. Both PIC and incoming 40Khz signal are 5V.!

Henk
by henker
Wed Feb 25, 2015 3:50 pm
Forum: Flowcode V5
Topic: Interrupt on B0 too slow?
Replies: 4
Views: 5467

Re: Interrupt on B0 too slow?

Hi Ben, Thanks for your reply. In the meantime have changed the code in order to make it work. Let me try to describe the problem. (I'm using the 18F4685) On the B0 channel I'm receiving a 40Khz signal (pulse train) (Signal is 0-5V pk-pk). The hardware interrupt should be reacting on the first falli...
by henker
Sun Feb 08, 2015 9:42 pm
Forum: Flowcode V5
Topic: Interrupt on B0 too slow?
Replies: 4
Views: 5467

Interrupt on B0 too slow?

Hello All,
I'm trying to enable an interrupt on the falling edge of B0.
The signal is a 40khz pulse. As soon as this signal is present, the interrupt routine should be enabled. Unfortunately it doesn't.
Could this because the Interrupt frequency on B0 / INT0 is only 15Hz?

Thanks
Henk
by henker
Wed Jul 30, 2014 11:19 pm
Forum: Flowcode V5
Topic: MCP3008 / SPI
Replies: 3
Views: 4611

Re: MCP3008 / SPI ->>> Please read IMPORTANT

All, The MCP3008 - PIC interfacing is solved. Attached is the code. All straight forward. The actual problem why I had inconstant readings was caused by the grounding of my breadboard. In the passed I had experienced this before and again I had this issue. Because the backplate of the breadboard is ...
by henker
Wed Jul 30, 2014 3:13 am
Forum: Flowcode V5
Topic: MCP3008 / SPI
Replies: 3
Views: 4611

Re: MCP3008 / SPI

Ben, Attached is the FC5 code. When connecting the Analog 0 pin to Ground the SPI gives 0, with that pin to +5V, the SPI provides 1023. So far so good. When giving 1V, the SPI should give about 200, however this is not the case; The value is all over the place... I'm afraid it has something to do wi...
by henker
Tue Jul 29, 2014 1:31 am
Forum: Flowcode V5
Topic: MCP3008 / SPI
Replies: 3
Views: 4611

MCP3008 / SPI

Hello, Has anyone used the analog to SPI converter MCP3008. I'm trying to make this work with an 18F4685 but no luck. I'm using the SPI component sending byte 0x01 and then a byte containing 0x08. This is the start byte and the byte requesting data from channel 0 The problem is that the data I'm get...
by henker
Thu Jul 10, 2014 6:18 pm
Forum: Flowcode V5
Topic: Different SPI settings; Is that possible
Replies: 2
Views: 3383

Re: Different SPI settings; Is that possible

Thanks for the quick reply Ben,

I'll give this a try
Henk
by henker
Thu Jul 10, 2014 1:10 pm
Forum: Flowcode V5
Topic: Different SPI settings; Is that possible
Replies: 2
Views: 3383

Different SPI settings; Is that possible

Hello, I have a project where I'm using different components (real time clock, light sensor and temperature sensor) that are using the SPI protocol. From my PIC I have made a SPI bus connecting these sensors to collect their data. The problem I have now is that of the three components, one requires ...
by henker
Thu Mar 27, 2014 6:39 pm
Forum: Feature requests
Topic: Can module extension
Replies: 7
Views: 5090

Re: Can module extension

Do you guys have this example in FC5???
by henker
Sun Mar 16, 2014 3:22 pm
Forum: General Programming
Topic: jitter on interupt; What would you do
Replies: 5
Views: 5493

Re: jitter on interupt; What would you do

Personally I don't think that this is a flowcode issue. I think it is a hardware related problem.
I think I should put a scope on the signal and see how clean the pulse is.
After I checked this, I'll let you know.
by henker
Sun Mar 16, 2014 1:47 am
Forum: General Programming
Topic: jitter on interupt; What would you do
Replies: 5
Views: 5493

Re: jitter on interupt; What would you do

Martin,

Both interrupts are on the falling edge..
Attached are two snap shots.

Could it be a problem that I only enable the interrupt and leave it enabled?

Thanks
Henk
by henker
Sat Mar 15, 2014 6:55 pm
Forum: General Programming
Topic: jitter on interupt; What would you do
Replies: 5
Views: 5493

jitter on interupt; What would you do

Good day, on a project I'm working on, I'm using two interrupts. One receives a pulse at a frequency between 1 and 30Hz (an RPM Hall sensor), the other one only once every 10 to 15 minutes (output from another micro processor) I have noticed in the data that I'm collecting that sometime the data of ...
by henker
Mon Feb 17, 2014 2:50 am
Forum: Flowcode V5
Topic: CAN Bus for a beginner
Replies: 3
Views: 4130

Re: CAN Bus for a beginner

When googeling, found this....
http://www.matrixmultimedia.com/mmforum ... =26&t=7375

kind of answer my question so I should be able to get started with this.
by henker
Sat Feb 15, 2014 2:32 am
Forum: Flowcode V5
Topic: CAN Bus for a beginner
Replies: 3
Views: 4130

CAN Bus for a beginner

Hello All, I have a sensor that provide datas through CAN-BUS (NMEA 2000 to be precise). I'd like to start reading the data on the bus but as I have never really done anything with CAN BUS is new to me. I understand the CAN-bus principle, however, I'd like to get some feedback on how to physically c...
by henker
Sat Nov 23, 2013 3:47 am
Forum: Flowcode V5
Topic: I2C stops program
Replies: 5
Views: 4969

Re: I2C stops program

Thanks Grant.
Yes, I issue an "I2C INIT" at the start of my main program.
I will try the 0x46 / 0x47. I didn't realize you have to add that bit to the byte you clock out.

Thanks
henk
by henker
Fri Nov 22, 2013 3:07 am
Forum: Flowcode V5
Topic: I2C stops program
Replies: 5
Views: 4969

Re: I2C stops program

Dazz, I have attached the Macro I have created for this. I just noticed that it is not only the stop byte that stops the program. Again, I have very little to no I2C experience... http://www.dfrobot.com/image/data/SEN0097/BH1750FVI.pdf Page 17 on the pdf shows the sequence of the measurement... Than...
by henker
Fri Nov 22, 2013 2:40 am
Forum: Flowcode V5
Topic: I2C stops program
Replies: 5
Views: 4969

I2C stops program

I have never used I2C before, but I just purchased a sensor using the I2C protocol. According to the Datasheet I need to send the following I2C data: - Start - 0x23 -> this is the Slave address - 0 - 0x10 -> Slave will start measuring - stop wait 100 msec - Start - 0x23 - 1 +Read High Byte +Read Low...
by henker
Fri Nov 30, 2012 7:29 pm
Forum: Flowcode V5
Topic: Still Compare issue in FC5
Replies: 4
Views: 3382

Re: Still Compare issue in FC5

Johnny,

Thanks for your reply. I will make a new program (small) only doing the section with the compare function.
Having said this, what seems odd that the same code works when compiled with FC3, but not with V5.4.

Henk
by henker
Thu Nov 29, 2012 7:23 pm
Forum: Flowcode V5
Topic: Still Compare issue in FC5
Replies: 4
Views: 3382

Re: Still Compare issue in FC5

Ben,

the FCV file is too large.
Can I send it to an email?