Search found 88 matches

by George_B
Fri Feb 15, 2019 2:52 pm
Forum: Flowcode V7
Topic: Interrupt on INT0 pin - How fast an interrupt can capture external pulses
Replies: 9
Views: 1210

Re: Interrupt on INT0 pin - How fast an interrupt can capture external pulses

Hi George, I was a bit confused by your flowchart. The INT0 interrupt for encoder detection is RB0. So if you look at the input within RB0 call macro you will see there is an input for E0. The input should be for RB0 instead. I'm therefore surprised the encoder works at all? Hi Martin , The encoder...
by George_B
Fri Feb 15, 2019 2:47 pm
Forum: Flowcode V7
Topic: Interrupt on INT0 pin - How fast an interrupt can capture external pulses
Replies: 9
Views: 1210

Re: Interrupt on INT0 pin - How fast an interrupt can capture external pulses

Hi It seems you are runing an motor with an encoder attched. What is the max speed of the motor ? and at what speed do you start to loose to detect encoder pulses? The encoder at the moment is not attached on the motor. The encoder movement is done by hand and the rotation speed is approximately le...
by George_B
Fri Feb 15, 2019 1:20 pm
Forum: Flowcode V7
Topic: Interrupt on INT0 pin - How fast an interrupt can capture external pulses
Replies: 9
Views: 1210

Re: Interrupt on INT0 pin - How fast an interrupt can capture external pulses

Hello all, thank you for your replies.

here is the flowchart so you can see the actual code.

Just note that the crystal speed is 19.6608 Mhz and not 20Mhz as i said in my previous post.


Waiting your comments.


Best Regards
George
by George_B
Thu Feb 14, 2019 1:40 pm
Forum: Flowcode V7
Topic: Interrupt on INT0 pin - How fast an interrupt can capture external pulses
Replies: 9
Views: 1210

Interrupt on INT0 pin - How fast an interrupt can capture external pulses

Hello all! I am using an encoder with A and B signal outputs. I also use an interrupt macro for INT0 (RB0) pin of a 18F4523 microcontroller with 20Mhz external crystal. The encoder has 250 ppr. I am wondering if there is any way of capturing the encoder's pulses faster? At the moment i rotate the en...
by George_B
Fri Dec 14, 2018 10:25 am
Forum: Flowcode V7
Topic: Modbus RTU RS485 - Receiving Issue
Replies: 6
Views: 1616

Re: Modbus RTU RS485 - Receiving Issue

Hello Benj, thank you for your reply. I am still trying to communicate with the Power Meter with no luck. The simulation in Proteus gives me correct results but in real hardware there is a problem in the reception of the Power Meter data. The attached File "Modbus_RTU" (Flowcode 7 Version)...
by George_B
Tue Dec 11, 2018 11:02 am
Forum: Flowcode V7
Topic: Modbus RTU RS485 - Receiving Issue
Replies: 6
Views: 1616

Re: Modbus RTU RS485 - Receiving Issue

Hello, i manage to request the data correctly from Power Meter.

Now the issue that i am facing is regarding the receiving data using 2 stop bits.

Is there any idea how to achieve this? I am using Rx interrupt to receive the incomming data.


Thank in advance!

George
by George_B
Thu Nov 01, 2018 9:18 am
Forum: Flowcode V7
Topic: Modbus RTU RS485 - Receiving Issue
Replies: 6
Views: 1616

Re: Modbus RTU RS485 - Receiving Issue

Hello Benj, thank you for your reply. I am still confused and wondering how to receive and handle the incoming data from modbus slave. Using Modbus Poll software i managed to communicate with the slave device and get the expected data.(see pictures) The only options in flowcode for getting data thro...
by George_B
Tue Oct 30, 2018 8:02 pm
Forum: Flowcode V7
Topic: Modbus RTU RS485 - Receiving Issue
Replies: 6
Views: 1616

Modbus RTU RS485 - Receiving Issue

Hello, i hope you are all good! I have to read a power meter (Voltage - Amperes - Watts etc.) using Modbus RTU. In order to get some level of experience and understand things better, i first installed a modbus terminal software to observe the communication structure. I understand a few things and i ...
by George_B
Mon Oct 08, 2018 9:50 pm
Forum: Electronics products
Topic: RS485 Battery Stack and Common Ground
Replies: 13
Views: 3955

Re: RS485 Battery Stack and Common Ground

:D I made a mistake when i was drawing the schematic.. I already replaced the pdf file with the correct version.


Is there any opinion about this circuit? Will this be working properly? Any idea? :roll:
by George_B
Mon Oct 08, 2018 11:24 am
Forum: Electronics products
Topic: RS485 Battery Stack and Common Ground
Replies: 13
Views: 3955

Re: RS485 Battery Stack and Common Ground

Hi all, Leigh thank you for your drawing. I am working this project in my mind and to be honest i can't see the reason for not connecting each microcontroller across each battery without any isolation circuitry. The ADC of the Micro will go at the positive of each battery and the ground pin of the M...
by George_B
Sun Oct 07, 2018 6:54 pm
Forum: Electronics products
Topic: RS485 Battery Stack and Common Ground
Replies: 13
Views: 3955

Re: RS485 Battery Stack and Common Ground

Hello all. Leigh, thank you very much for your help. I would be very thankful if you will draw a circuit with your suggestion. When you are saying that the new circuit inputs need to cope with higher voltage what do you mean? What i want is to measure the voltage of each cell and collect it onto my ...
by George_B
Sat Oct 06, 2018 7:29 pm
Forum: Electronics products
Topic: RS485 Battery Stack and Common Ground
Replies: 13
Views: 3955

Re: RS485 Battery Stack and Common Ground

Hello again! I did a really quick test with some draft boards that i had from a previous project. I used 1.5V batteries for my test and connected all in series. I connected the MCU boards as the attached picture shows and i powered all the boards from a single power supply 12V. Note that each board ...
by George_B
Thu Oct 04, 2018 12:07 pm
Forum: Electronics products
Topic: RS485 Battery Stack and Common Ground
Replies: 13
Views: 3955

Re: RS485 Battery Stack and Common Ground

Hi all, thank you for your time and help. What i am trying to do is a battery monitoring system. I want to monitor a few batteries which are not close each other. All batteries will be connected in series and each of them must have it's own microcontroller for the purpose of this project. I really w...
by George_B
Wed Oct 03, 2018 12:17 pm
Forum: Electronics products
Topic: RS485 Battery Stack and Common Ground
Replies: 13
Views: 3955

RS485 Battery Stack and Common Ground

Hello everyone, I an working on a project that requires several 3.7V batteries to be connected in series. I would like to use a microcontroller for each battery to monitor and to make some other adjustments as well. Each microcontroller board will be powered from it's battery which will be connected...
by George_B
Sat Jun 02, 2018 9:02 pm
Forum: Programming Tips & Tricks
Topic: spi 12bit digital to analog chip
Replies: 14
Views: 9011

Re: spi 12bit digital to analog chip

Hi QMESAR, Thank you for your reply. I understand what you mean and i will use it in case that i am going to make a parallel use of devices sharing the I2C lines. The issue that i have is that the chip that i want to use, is the MSP3421 which has not got a CS pin and therefor this is not possible at...
by George_B
Wed May 30, 2018 7:45 pm
Forum: Programming Tips & Tricks
Topic: spi 12bit digital to analog chip
Replies: 14
Views: 9011

Re: spi 12bit digital to analog chip

Hi all, I finally managed to read in full scale mode the MCP4821. I would like to use 4 devices connected to the same micro controller. Would it be possible to connect each device to separate pins ? I tried to do a program with four DAC devices connected in separate pins and the result is not the ex...
by George_B
Mon May 28, 2018 3:52 pm
Forum: Programming Tips & Tricks
Topic: spi 12bit digital to analog chip
Replies: 14
Views: 9011

Re: spi 12bit digital to analog chip

Hi, i am making some experiments with the MCP4821 DAC DEVICE. At the moment i can only read 2.05 V at the output of the device(pin8). Probably i am running the device using a gain of 1 I would like to use a full scale and a gain of 2 but i can't figure out how to send a command to the MCP4821. Any i...
by George_B
Fri May 25, 2018 9:23 am
Forum: Bug reports
Topic: PIC18F26K80 I2C read problem
Replies: 4
Views: 1267

Re: PIC18F26K80 I2C read problem

Hello, i want to use the MCP3421 Analog to Digital converter chip. Could you please let me know if you have any flowcode example for this specific chip?

Thank in advance
George
by George_B
Thu May 04, 2017 7:10 pm
Forum: Bug reports
Topic: Corrupted Fast Interrupt Shadow Registers
Replies: 10
Views: 5044

Re: Corrupted Fast Interrupt Shadow Registers

Hi George, v6 used the BoostC compiler which had a library for dealing with floats. They were kind of an after thought and it took a third party to write the float library to support floats at all. v7 uses the XC8 compiler which supports floats natively and much more efficiently. Are you performing...
by George_B
Tue Apr 25, 2017 8:28 pm
Forum: Bug reports
Topic: Corrupted Fast Interrupt Shadow Registers
Replies: 10
Views: 5044

Re: Corrupted Fast Interrupt Shadow Registers

Thanks for your time Benj, I probably left this setting (rising edge on INT0) while trying different settings to figure out what might be the problem. My hardware is developed so as to use "falling edge" setting like my FC6 program. I changed this setting to falling edge(as it should be) i...
by George_B
Mon Apr 24, 2017 10:36 pm
Forum: Bug reports
Topic: Corrupted Fast Interrupt Shadow Registers
Replies: 10
Views: 5044

Re: Corrupted Fast Interrupt Shadow Registers

Benj, if you don't mind.. you can comment my program issues in this topic so everyone can learn something..

Thanks in advance for your support

George
by George_B
Sun Apr 23, 2017 7:42 pm
Forum: Bug reports
Topic: Corrupted Fast Interrupt Shadow Registers
Replies: 10
Views: 5044

Re: Corrupted Fast Interrupt Shadow Registers

Hello, i observed something strange on hardware during testing the same program from both FC6 and FC7 which are completely the same without any modifications at all. I am using the INT0 which is receiving some ( low frequency < 5Hz) pulses from a proximity sensor. In the interrupt macro i only have ...
by George_B
Tue Apr 18, 2017 12:49 pm
Forum: Bug reports
Topic: Corrupted Fast Interrupt Shadow Registers
Replies: 10
Views: 5044

Re: Corrupted Fast Interrupt Shadow Registers

Hi George, What is the reason this is happening? The same program compiled with FC6 gives no warning or errors during compilation. The Flowcode v7 compiler is simply letting you know more about what it is doing. The new compiler is made by Microchip and so is more able to provide helpful and up to ...
by George_B
Thu Apr 13, 2017 11:59 am
Forum: Bug reports
Topic: Corrupted Fast Interrupt Shadow Registers
Replies: 10
Views: 5044

Corrupted Fast Interrupt Shadow Registers

Hello, I recently upgraded my FC6 to FC7 version :D I opened an old program which i created using FC6 I tried to compile the program without making any modifications. I got the following message during compilation.. Target folder: Title: Description: Device: PIC.18F.18F4680 Generated by: Flowcode v7...