Search found 196 matches

Return

by Benj
Wed Nov 23, 2011 6:17 pm
Jump to forum
Jump to topic

Re: Alarm - getting started

Hello Chris,

Flowcode v4 has a string manipulation function available for doing this.

Using a string manipulation icon.

string = NumberToHex$(int)

Then simply pass the string variable to the LCD and job done.
by Benj
Mon Nov 14, 2011 12:26 pm
Jump to forum
Jump to topic

Re: Alarm - getting started

Hello Chris,

To get the receive simulation working you need to click the plus icon on the RS232 component while the simulation is running. You can then add characters to the incoming queue and then when you perform a RS232 read a byte will be moved from the queue to the received window.
by Benj
Tue Nov 15, 2011 3:35 pm
Jump to forum
Jump to topic

Re: Alarm - getting started

Hello Chris, The input accepts numbers in decimal so for hexadecimal you will probably have to input the numbers like this. 0x10,0x31,0x4C,0xE6,0x86 The receive signal will just be assumed and no delay will be present in the simulation. On the hardware the UART will buffer incoming bytes so the RS23...
by Benj
Fri Nov 25, 2011 10:45 am
Jump to forum
Jump to topic

Re: Alarm - getting started

Hello Chris, Driving me mad is how to increment EEPROM locations with each hex byte over 60 locations as a pseoudo UART replication in slow motion? Would something like this help. component macro -> incoming = Receive RS232 Byte decision -> incoming < 255 yes: Calculation -> eeaddr= (eeaddr + 1) MOD...
by Benj
Mon Nov 28, 2011 10:55 am
Jump to forum
Jump to topic

Re: Alarm - getting started

Hi Chris,

Yes I'm afraid you cannot place text any old place on the graphed background area. Maybe turning on annotations in the global options would help.
by JonnyW
Wed Dec 14, 2011 4:38 pm
Jump to forum
Jump to topic

Re: Not seeing hardware UART receipt - anyone help?

Hi Christoph. Am I right in understanding? You have a board sending data via RS232, and Flowcode running in simulation mode on the PC at the other end. Though Flowcode will simulate send and receive of data, it does not receive and display data via the physical RS232. For this you need a terminal su...
by Jan Lichtenbelt
Wed Dec 14, 2011 4:29 pm
Jump to forum
Jump to topic

Re: Not seeing hardware UART receipt - anyone help?

Dear Christoph,

Be aware that using LPV not all pins can be used as output pins. Can that be the reason of not working correctly? Look in the datasheet of the microcontroller used.

Kind regard

Jan Lichtenbelt
by Benj
Thu Dec 15, 2011 10:50 am
Jump to forum
Jump to topic

Re: Not seeing hardware UART receipt - anyone help?

Hello Chris, Why not use a 40 pin chip on your HP488 board say a 16F877A. This would move the UART to portc allowing you to use serial and the LCD. You do not get the real world data showing on the simulation window. The simulation is stand alone and data can only be added to this by adding data to ...
by JonnyW
Thu Dec 15, 2011 2:23 pm
Jump to forum
Jump to topic

Re: Not seeing hardware UART receipt - anyone help?

If its any help, here is a link to TeraTerm, one of the better terminals. Use this to receive the incoming data or to send output data from it. You will need to set this up to the right port/baud, etc first.

http://hp.vector.co.jp/authors/VA002416/ttermp23.zip

Jonny
by Benj
Thu Dec 15, 2011 5:46 pm
Jump to forum
Jump to topic

Re: Not seeing hardware UART receipt - anyone help?

Personally I use RealTerm but I think this and TeraTerm are very similar. For anyone out there who fancies making their own terminal program this is a great tutorial for use with the free version of VB 2010 Express Edition. http://tiktakx.wordpress.com/2010/11/21/serial-port-interfacing-with-vb-net-...
by Benj
Thu Jan 12, 2012 12:56 pm
Jump to forum
Jump to topic

Re: Received UART characters to strings

Hello Chris, Simply create 2 string variables with 3 bytes or more in length. string1[10] string2[10] Then receive your RS232 characters and populate the string as follows idx = 0 bVar = RS232 Receive Byte (100) while bVar < 255 { string[idx] = bVar idx = idx + 1 bVar = RS232 Receive Byte (100) } st...
by Benj
Wed Jan 18, 2012 6:15 pm
Jump to forum
Jump to topic

Re: Received UART characters to strings

Hi Chris, Data is generally type casted in certain ways. eg. dvar = 235 puts the decimal value of 253 into variable var avar = '2' puts the ascii value of 2 into variable var which is 50 in decimal. When creating a string you need to build up the string using ascii characters. eg string[0] = '1' str...
by Benj
Thu Jan 19, 2012 4:03 pm
Jump to forum
Jump to topic

Re: Received UART characters to strings

Hi Chris,

Variables are your main source of RAM consumption although the stack and other things also use a little bit.

Do you have any large arrays in your program? Otherwise post up your program and I will have a look at whats using up the resources.
by Benj
Fri Jan 20, 2012 12:10 pm
Jump to forum
Jump to topic

Re: Received UART characters to strings

Hello, A single RS232 transaction is normally a byte representing an ascii character, but it doesn't have to be. Each byte has 8 bits which we can tap into to store say 8 digital switch values. Setting a bit in a byte. byte = byte | (1 << 0) - Sets bit 0 byte = byte | (1 << 1) - Sets bit 1 byte = by...
by Benj
Fri Jan 20, 2012 1:39 pm
Jump to forum
Jump to topic

Re: Received UART characters to strings

Hi Chris,

Here are two examples using an input icon in single pin mode and a switch component.

ss1.JPG

ss2.JPG


And then recombining at the receiver

ss3.JPG
by Benj
Fri Jan 20, 2012 4:25 pm
Jump to forum
Jump to topic

Re: Received UART characters to strings

Hello Christoph, You would do 8 of the transmit functions (as shown above) to the same out variable using 0 through to 7 for the shift positions (1 << x). This would fill up a byte with 8 bits. Once you have done this you pass the out byte to the RS232 send byte function. To receive the byte you wou...
by medelec35
Sat Jan 21, 2012 1:08 pm
Jump to forum
Jump to topic

Re: Received UART characters to strings

Hi Chris, ~ means Bytewise NOT so its used with Numbers ! means Bitwise NOT so it can only be used with 1 bit Normally when compiling and you get an error, then error with line number causing the error is displayed e.g 7segx3 count pulse 16F877a V1 test.c(1028): error: unexpected identifier 7segx3 c...
by medelec35
Sat Jan 21, 2012 5:02 pm
Jump to forum
Jump to topic

Re: Received UART characters to strings

I understand some of what you are saying but didn't get ALL of: "If you cant find the source of problem, then it is always best to post Flowchart with C code and 2. Simple Echo Flowchart_Name.msg.txt.". Just a point: The 'pipe' character was definitely a '|' and not a '!' . See attachment...
by medelec35
Sat Jan 21, 2012 10:47 pm
Jump to forum
Jump to topic

Re: Received UART characters to strings

No probs so long as your getting further that's the main thing. Thanks also for clarifying the symbol characters. Are these ASCII? I have a print out which includes 'extended ascii' but it doesn't give the information regarding what |, !, ¦, ~ etc. mean. Is it to do with 'C' code? These are C operat...
by medelec35
Wed Jan 25, 2012 9:51 pm
Jump to forum
Jump to topic

Re: PIC16Fxxx for 2.8volt supply (or less) with RS232 Tx

Hi all, Does anyone know of a PIC16Fxxx that I could use for 2.8volt supply (or preferably less) with RS232 Tx function? I thought the F83 or F84 would be good (at 2volts min.) but they have no Tx capability (don't need Rx as well). Take a look at this microchip product selector: http://www.microch...
by medelec35
Fri Jan 27, 2012 8:49 am
Jump to forum
Jump to topic

Re: PIC16Fxxx for 2.8volt supply (or less) with RS232 Tx

My Adobe reader has a problem so currently can't download the large file data sheets and the scrappy info I already had, didn't show the PIC16LF88 but the LF version is not mentioned in Matrix M's device list so I will check with them to see if feasible. If un-installing and reinstalling acrobat re...
by medelec35
Thu Jan 26, 2012 8:31 am
Jump to forum
Jump to topic

Re: PIC16Fxxx for 2.8volt supply (or less) with RS232 Tx

Your welcome. I have realised whilst looking at more chips, however, that MANY of them run down to 1.8 to 2 volts anyway - including the PIC16F88 which comes with the Development Board I have and which I am already running with and thought was 5v! Until now, I thought the MAJORITY were around the 5 ...
by Steve
Fri Jan 27, 2012 4:18 pm
Jump to forum
Jump to topic

Re: PIC16Fxxx for 2.8volt supply (or less) with RS232 Tx

christoph wrote:Presumably and from what you mentioned earlier, I CAN use the 16LF1933 with my FC V4.5 version though!

Although Flowcode does not explicitly list the "LF" chips, a program generated for the "F" version should work fine on the equivalent "LF" version.
by Steve
Wed Feb 01, 2012 10:38 am
Jump to forum
Jump to topic

Re: Unable to use ANY of the 16LF devices listed!

The version of PPP that is with Flowcode v4.5 does not support these LF devices. Flowcode V5 does have full support for these. One way around this is to 'pretend' that the chip you are using is the "F" variety - i.e. select the 16F1933 device in Flowcode and PPP. The configuration options ...
by Steve
Wed Feb 01, 2012 1:11 pm
Jump to forum
Jump to topic

Re: Using a 20-pin PIC on Matrix. M's HP488-00-3 Development

You should be able to program these chips via the U8/U14 socket. The lower 6 pins of the chip will not be in the socket and will therefore not work. But all of the power and programming pins should be connected ok.