Serial Communications Assessment
- Country :
United States America
- Create a Calculator service that runs on UART6 (D0-Tx, D1-Rx) that:
- Supports +, -, *, / operators
- Accepts 2 operands
- Returns a result
- Recognizes signed integers, and floating-point operands, returns the expected data type
- (int if both operands are integer, float if one, or both are floats)
- Create a user program that runs on UART2 (D53-Tx, D52-Rx) that can tests operands such as :
- Int (operator) Int (e.g., 456 + 10456)
- Int (operator) Float (e.g., 4567 - -12357898)
- Float (operator) Int (e.g., -123.4567 / -357898)
- Float (operator) Float (e.g., 4556546 * -234324.45345345)
- Critical points to think about:
- How will you pass the operands from UART2 to UART6 and back? (String? Binary?)
- How will you indicate data type?
How will you indicate operator?