Search found 225 matches
- Fri Apr 29, 2011 3:35 pm
- Forum: Components (Comms)
- Topic: RS232 Component and RX Value 255
- Replies: 15
- Views: 18068
RS232 Component and RX Value 255
Hi, Is there a way to change the RS232 component so that 255 is available? Perhaps add another variable (whose value can be tested) that is dedicated to "RX Buffer Empty". RX Buffer Empty = 1, RX Buffer Not Empty = 2? I want to try to setup an RS485 network and I will be receiving a VAR that could b...
- Thu Apr 28, 2011 5:54 pm
- Forum: General Programming
- Topic: Calculating a Checksum
- Replies: 19
- Views: 13123
Re: Calculating a Checksum
Hello Ben,
Thank you, I appreciate it.
Ron
Thank you, I appreciate it.
Ron
- Thu Apr 28, 2011 4:19 pm
- Forum: General Programming
- Topic: Calculating a Checksum
- Replies: 19
- Views: 13123
Re: Calculating a Checksum
Hi, This checksum routine is going to be used to communicate between multiple PICs on an RS485 network. I believe Ben's example used an INT and did what you describe. What I am trying to do is not use an INT variable as I believe all others VARS in Ben's example are BYTEs. If I can use a BYTE as I o...
- Wed Apr 27, 2011 8:38 pm
- Forum: General Programming
- Topic: Calculating a Checksum
- Replies: 19
- Views: 13123
Re: Calculating a Checksum
Hi,
It has been a while and I never got around to trying this.
I noticed that the VAR used to sum all the bytes was a TYPE INT.
Could this SUM VAR be a TYPE BYTE and then the carry nibble would automatically be dropped as the data bytes were added together?
Thanks,
Ron
It has been a while and I never got around to trying this.
I noticed that the VAR used to sum all the bytes was a TYPE INT.
Could this SUM VAR be a TYPE BYTE and then the carry nibble would automatically be dropped as the data bytes were added together?
Thanks,
Ron
- Thu Apr 21, 2011 5:10 pm
- Forum: Flowcode V2 & V3
- Topic: V3 - Creating BYTE Array
- Replies: 4
- Views: 5166
Re: V3 - Creating BYTE Array
Hello Ben,
Thank you.....![Smile :)](./images/smilies/icon_smile.gif)
Ron
Thank you.....
![Smile :)](./images/smilies/icon_smile.gif)
Ron
- Thu Apr 21, 2011 5:08 pm
- Forum: Flowcode V2 & V3
- Topic: Flowcode V3 RS232 Component -> RS485 UPDATED
- Replies: 15
- Views: 31136
Re: Flowcode V3 RS232 Component -> RS485 UPDATED
Hello Sean,
Thank you, that helps a great deal
.
Ron
Thank you, that helps a great deal
![Smile :)](./images/smilies/icon_smile.gif)
Ron
- Thu Apr 21, 2011 1:02 am
- Forum: Flowcode V2 & V3
- Topic: Flowcode V3 RS232 Component -> RS485 UPDATED
- Replies: 15
- Views: 31136
Re: Flowcode V3 RS232 Component -> RS485 UPDATED
Hi, I am very confused regarding RS485 circuits connecting to PIC 16F/18F. I find 2 basic circuits regarding BIAS resistors typically found at the Master. Many online: Pin 6 is tied to +5V Pin 7 is tied to GND Matrix MM Board: Pin 6 is tied to GND Pin 7 is tied to +5V I want to experiment with SN751...
- Tue Apr 19, 2011 4:34 pm
- Forum: Flowcode V2 & V3
- Topic: V3 - Creating BYTE Array
- Replies: 4
- Views: 5166
Re: V3 - Creating BYTE Array
Hi,
I am using 18F.....
How would I define an array 1 - 256?
Thank you,
Ron
I am using 18F.....
How would I define an array 1 - 256?
Thank you,
Ron
- Tue Apr 19, 2011 3:30 am
- Forum: Flowcode V2 & V3
- Topic: V3 - Creating BYTE Array
- Replies: 4
- Views: 5166
V3 - Creating BYTE Array
Hi,
How can I create a byte array that is capable of going 1 - 3096?
Thanks
Ron
How can I create a byte array that is capable of going 1 - 3096?
Thanks
Ron
- Mon Mar 14, 2011 4:06 pm
- Forum: Flowcode V2 & V3
- Topic: Flowcode V3 RS232 Component -> RS485 UPDATED
- Replies: 15
- Views: 31136
Re: Flowcode V3 RS232 Component -> RS485 UPDATED
Hi Ben, Thanks again for the help. 1) Due to my very limited ability with "C" I am just going to turn on/off the output like normal to change modes. 2) Can I put this line of code in a V3 "C" block to wait before disabling the TX? while (ts_bit(txsta, TRMT) == 0); //While TSR Full Please confirm the...
- Sat Mar 12, 2011 4:15 am
- Forum: Flowcode V2 & V3
- Topic: Flowcode V3 RS232 Component -> RS485 UPDATED
- Replies: 15
- Views: 31136
Re: Flowcode V3 RS232 Component -> RS485 UPDATED
Hi Ben, Thanks for your help. Regarding your answers (I am using V3 of Flowcode). 1) Do you mean hard code my control of the enable/disable RS485 driver output within the "RS232 Send Function"? How is this done? 2) Is this code customization available in V3? If it is, where do I find it and how woul...
- Sat Mar 12, 2011 3:45 am
- Forum: Article Discussion
- Topic: MX026 - RS485 using the EB062 E-Block
- Replies: 27
- Views: 48319
Re: RS485 using the EB062 E-Block
Hello, This is great! I just started working with RS485. I have downloaded the samples but they do not load into my Flowcode. The error messages said something to the effect that my Flowcode is to old. Can you provide these examples for those of us that are using V3. Also, I am using MAX3085 and MAX...
- Wed Mar 09, 2011 4:54 pm
- Forum: Flowcode V2 & V3
- Topic: Flowcode V3 RS232 Component -> RS485 UPDATED
- Replies: 15
- Views: 31136
Re: Flowcode V3 RS232 Component -> RS485 UPDATED
Hello Ben, Another question regarding the RS232 component. I have been speaking with people about the hardware method of dropping the enable bit on the RS485 driver via 555 timer and they do not like it. They say that more often than not the issue is not that the slave begins transmitting/responding...
- Wed Mar 09, 2011 12:45 am
- Forum: Flowcode V2 & V3
- Topic: Flowcode V3 RS232 Component -> RS485 UPDATED
- Replies: 15
- Views: 31136
Re: Flowcode V3 RS232 Component -> RS485 UPDATED
Hi Ben, Thank you for your help. Can you tell me if Flowcode generates a "start" bit. I have found a hardware solution to driving the RS485 drivers RE/DE pin. It is actually very neat. The driver is enabled on the leading edge of the "start" bit and is disabled a few micro seconds after it sees the ...
- Sun Mar 06, 2011 5:00 pm
- Forum: Flowcode V2 & V3
- Topic: Flowcode V3 RS232 Component -> RS485 UPDATED
- Replies: 15
- Views: 31136
Flowcode V3 RS232 Component -> RS485 UPDATED
Hello, EDIT NOTE: Much of the original post is gone since I have figured out some of my questions myself. I want to communicate between multiple PIC's via RS485. I am hoping I can do this by using the RS232 component in Flowcode V3. I have attached a schematic that makes sense to me. I have a situat...
- Sun Aug 29, 2010 3:35 pm
- Forum: Flowcode V2 & V3
- Topic: Serious Warning
- Replies: 1
- Views: 3066
Serious Warning
Hello, How do I determine where this warning is coming from. I searched the "C" file using VS2008 and only found 4 lines in the code that call out FCM_TMR0. How do I locate which is causing this and where it is located in my project? Building CASM file Serious Warning: Possible sw stack corruption, ...
- Mon May 17, 2010 5:55 pm
- Forum: General Programming
- Topic: HW Design Question MAX232 w/USB to Serial
- Replies: 4
- Views: 5000
Re: HW Design Question MAX232 w/USB to Serial
Hello Ben,
I have attached a schematic supplied by the company. Does this help you determine if it is eliminates the need for the MAX232?
Thank you,
Ron
I have attached a schematic supplied by the company. Does this help you determine if it is eliminates the need for the MAX232?
Thank you,
Ron
- Mon May 17, 2010 3:45 pm
- Forum: General Programming
- Topic: HW Design Question MAX232 w/USB to Serial
- Replies: 4
- Views: 5000
HW Design Question MAX232 w/USB to Serial
Hello, I am hoping someone might be able to answer this. I usually place a MAX232 chip in my designs for RS232 communication to a PC. Since Serial ports are not often found on new computers I have been using a USB to serial converter cable to communicate with a PC. If I am using a USB to Serial conv...
- Mon Nov 16, 2009 12:38 am
- Forum: Flowcode V2 & V3
- Topic: TMR0 (T0CKI) PIC Pin
- Replies: 3
- Views: 4527
Re: TMR0 (T0CKI) PIC Pin
Hi,
Here is the line from the data sheet you are talking about Ben.
The RA4/T0CKI/C1OUT pin is a Schmitt Trigger input. All other PORTA pins have TTL input levels. All PORTA pins have full CMOS output drivers.
This means it can sink or source as normal, correct??
Thanks
Ron
Here is the line from the data sheet you are talking about Ben.
The RA4/T0CKI/C1OUT pin is a Schmitt Trigger input. All other PORTA pins have TTL input levels. All PORTA pins have full CMOS output drivers.
This means it can sink or source as normal, correct??
Thanks
Ron
- Thu Nov 12, 2009 4:59 pm
- Forum: Flowcode V2 & V3
- Topic: 32 bit unsigned VAR
- Replies: 7
- Views: 5412
Re: 32 bit unsigned VAR
Hi Ben, I think I have TMR0 working the way I need it to. I stayed up all night working on it. Putting the { } did solve the compiler return 1 problem. I went into the C file and looked at similar code and the { } were always there, so I added it. I also fixed a few other problems I had with the "C"...
- Thu Nov 12, 2009 7:23 am
- Forum: Flowcode V2 & V3
- Topic: 32 bit unsigned VAR
- Replies: 7
- Views: 5412
Re: 32 bit unsigned VAR
Hi, My code is not solving as expected. I think the issue is a calculation I am doing. S1_TMR0_END_COUNT = S1_TMR0_START_COUNT + ((FCV_S1_PARAM_2 * 100) + FCV_S1_PARAM_3); S1_TMR0_END_COUNT is unsigned long S1_TMR0_START_COUNT is unsigned long FCV_S1_PARAM_2 = BYTE FCV_S1_PARAM_3 = BYTE Can I do the...
- Thu Nov 12, 2009 4:34 am
- Forum: Flowcode V2 & V3
- Topic: 32 bit unsigned VAR
- Replies: 7
- Views: 5412
Re: 32 bit unsigned VAR
Hi, After looking at the "C" file I have entered the following code when compiles to 0. if (TMR0_CURRENT_CAPTURE >= S1_TMR0_END_COUNT) FCV_S1_PARAM_1 = 0; FCV_S1_PARAM_2 = 0; FCV_S1_PARAM_3 = 0; FCV_S1_PAUSE_1_SHOT = 0; S1_TMR0_START_COUNT = 0; S1_TMR0_END_COUNT = 0; Why don't I need FCV_ in front o...
- Thu Nov 12, 2009 4:10 am
- Forum: Flowcode V2 & V3
- Topic: 32 bit unsigned VAR
- Replies: 7
- Views: 5412
Re: 32 bit unsigned VAR
Hi Guys, OK, I have entered my new 32 bit VARs in define supp code. How do I do the following in "C"? I looked at Boost manual but everything I try comes up 1 on compile. If 32bit_var1 >= 32bit_var2 Yes 8bit_var1 = 0 8bit_var2 = 0 8bit_var3 = 0 32bit_var2 = 0 No fall through to next section of code ...
- Wed Nov 11, 2009 8:59 pm
- Forum: Flowcode V2 & V3
- Topic: TMR0 (T0CKI) PIC Pin
- Replies: 3
- Views: 4527
TMR0 (T0CKI) PIC Pin
Hi,
In the TMR0 macro we select internal clock or pin on pic.
We then select low to high or high to low.
If I am using the internal CLK0 option (timer mode, not counter mode) can I still use the T0CKI pin on the PIC as a DI/DO without affecting the timer function?
Thank you,
Ron
In the TMR0 macro we select internal clock or pin on pic.
We then select low to high or high to low.
If I am using the internal CLK0 option (timer mode, not counter mode) can I still use the T0CKI pin on the PIC as a DI/DO without affecting the timer function?
Thank you,
Ron
- Wed Nov 11, 2009 5:48 pm
- Forum: Flowcode V2 & V3
- Topic: 32 bit unsigned VAR
- Replies: 7
- Views: 5412
Re: 32 bit unsigned VAR
Hi Ben, I want to be able to count in 10ms ticks as a pause value is allowed to be entered in the format XXX.YY (0 - 200.99). Since there are 2 decimal places this is based on 10ms Ticks. 1/75 = .01333333 which is a 13ms tick (I think). I have worked out a 20MHz, prescale is 32 and then a tmr0l += 1...