I'm just evaluating flowcode as a method of programing for a small PIC project for use in disability sector.
I'm trying to work out how to send specific ASCII chahracters from the TX port of the pic.
Example in simplist form
Keypad button 1 is pressed and characters cd\ followed by ,cd B1 followed by, vpr b1.mp3
Any ideas please
Rgds
Ian
Sending Ascii characaters
-
- Valued Contributor
- Posts: 548
- Joined: Tue Jun 26, 2007 11:23 am
- Has thanked: 6 times
- Been thanked: 44 times
Re: Sending Ascii characaters
Hello Ian,
You can send characters from the TX pin by using the macros provided by the Flowcode RS232 component. Clicking on the RS232 component icon causes the component to be added to the flowchart and allows access to the SendRS232Char and ReceiveRS232Char macros via the Component Macro flowchart icon
The character to be sent can be represented in a number of ways as a Parameter :
Flowcode variables can be used to send characters that are calculated during program execution.
Constant numeric values can be used - these are particularly useful for transmitting nonpprintable control codes (e.g. Carriage Return = 13)
Single constant characters can be defined in single quotes (e.g. 'A').
String constants can be defined in double quotes (e.g. "Hello")
String variables can be transmitted - allowing the text to be changed during program execution - by extracting and transmitting each character individually in a program loop.
Combinations of fixed and variable data can be transmitted by connecting multiple send commands in series.
Baud rate and other properties can be configured using the component.
You can send characters from the TX pin by using the macros provided by the Flowcode RS232 component. Clicking on the RS232 component icon causes the component to be added to the flowchart and allows access to the SendRS232Char and ReceiveRS232Char macros via the Component Macro flowchart icon
The character to be sent can be represented in a number of ways as a Parameter :
Flowcode variables can be used to send characters that are calculated during program execution.
Constant numeric values can be used - these are particularly useful for transmitting nonpprintable control codes (e.g. Carriage Return = 13)
Single constant characters can be defined in single quotes (e.g. 'A').
String constants can be defined in double quotes (e.g. "Hello")
String variables can be transmitted - allowing the text to be changed during program execution - by extracting and transmitting each character individually in a program loop.
Combinations of fixed and variable data can be transmitted by connecting multiple send commands in series.
Baud rate and other properties can be configured using the component.