mo2_star
Newbie level 5
- Joined
- Feb 1, 2013
- Messages
- 9
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Finland, Porvoo
- Activity points
- 1,340
hello My friends,
I have A problem in my Project
I have A String
I have to receive it From Serial Port And Use It
First Problem is How Receive it? When it is between 0 to 9 it has 9 Characters,And from 10 to 99 it has 10 Characters,And from 100 to 255 it has 11 Characters
This Strring Starts With * And Ends With #
Example:
*11|11|1#
*11|11|9#
*11|11|54#
*11|11|87#
*11|11|110#
*11|11|180#
*11|11|254#
This Project Is With C Language and I use AVR Codevison.
Problem # 2
How Use The numeric variable From the String After Receiving?
sample : 1,9,54,87,110,180,254
I want To use It for OCR1A Register For PWM.
I have A problem in my Project
I have A String
I have to receive it From Serial Port And Use It
First Problem is How Receive it? When it is between 0 to 9 it has 9 Characters,And from 10 to 99 it has 10 Characters,And from 100 to 255 it has 11 Characters
This Strring Starts With * And Ends With #
Example:
*11|11|1#
*11|11|9#
*11|11|54#
*11|11|87#
*11|11|110#
*11|11|180#
*11|11|254#
This Project Is With C Language and I use AVR Codevison.
Problem # 2
How Use The numeric variable From the String After Receiving?
sample : 1,9,54,87,110,180,254
I want To use It for OCR1A Register For PWM.