STMicroelectronics AN3259 RS232 Communications Application Note

This application note describes how to control the STM8S-DISCOVERY from a terminal window running on a PC which is connected to the STM8S105C6T6 microcontroller UART through an RS232 cable.


STMicroelectronics AN3259 RS232 Communications Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
25
File format
PDF
File size
304 KB
Published
06 August, 2012
Updated
01 October, 2023
MD5 checksum
AD2EAA9CBF7FAF5B8EEE0A280333980A

About this manual

This document details how to control the STM8S-DISCOVERY evaluation board from a terminal window running on a PC. The setup involves connecting the board to a PC via an RS232 null-modem cable and using a terminal emulator like HyperTerminal or TeraTerm Pro.

The application allows users to manage STM8S GPIOs, configure the TIM3 timer, and control the beeper output. It explains the required hardware components, including the ST232B RS232 driver, and provides instructions on configuring the microcontroller's alternate function remap option to enable the beeper.

What's inside

  • Prerequisites
  • Configuring the STM8S-DISCOVERY
  • Hardware required
  • Application schematics
  • Application principle
  • Running the application
  • Communication sequence
  • Software description
  • Configuring your terminal window
  • Revision history

Frequently asked questions

What components are required to run the STM8S-DISCOVERY terminal demonstration application?

You need a terminal window running on a PC, such as Windows HyperTerminal or TeraTerm Pro, and an RS232 null-modem cable with transmit and receive lines crosslinked.

What specific hardware components does the application use on the STM8S-DISCOVERY board?

The application uses the on-board LED (LD1) with its associated resistor (R1) and a 5 V powered ST232B RS232 driver/receiver.

What actions can be performed using the menu displayed in the terminal window?

The menu allows you to switch the LED on or off, configure the LED blinking speed, and enable or disable the beeper with a selectable frequency.

Download PDF (304 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →