cancel
Showing results for 
Search instead for 
Did you mean: 

ST 62xx and RS232

c239955_stm1
Associate II
Posted on August 28, 2003 at 06:37

ST 62xx and RS232

3 REPLIES 3
c239955_stm1
Associate II
Posted on August 27, 2003 at 12:12

Hi All,

I want to read a voltage and send a string that contains the value read via RS232, using an ST62xx

I read that the best thing is to use the 6230 which has an UART port.

I'm not an expert on Assembler.

Can somebody help me sending information on how to write a routine that allow to write strings through the UART port?

Thank you in advance
henrik239955
Associate II
Posted on August 28, 2003 at 06:07

Hi!

To send strings thru the UART just load the data into the UART DATA REGISTER. Look in the attached code. Its a simple routine that receive 10 bytes and just sends it back.

/Bood

________________

Attachments :

rs_11b.asm : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0Dy&d=%2Fa%2F0X0000000bX2%2FPg8bU5Q6PGaYStTI1ALIMnDjLgbvRJwCA6DwLDcoQHw&asPdf=false

st6230.ini : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzvf&d=%2Fa%2F0X0000000bX0%2Fq8lYa78z_Lgd8e2OH6rxp7Y0qVYK2Ln989Ygv0IRPeM&asPdf=false
thierry239955
Associate II
Posted on August 28, 2003 at 06:37

Hello,

It is easier to setup an RS232 link using either ST623X or ST6218/28 products as they embed an UART cell. However, it is possible to use any ST6 products with a software UART.

The ST622X and ST623X starter kit presents a demo which is doing exactly what you want. I recommend you to have a look to the user manual and to download the Starter Kit software package (http://www.stmcu.com/mcdfiles/ST6_SK.exe). This package provides the source code of the firmware.

Attached, you will also find the DOS program to be used with ST622X starter kit. You can also use the Windows Hyperterminal.

Good luck,

Thierry,

________________

Attachments :

pc232_25.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0HG&d=%2Fa%2F0X0000000bWy%2FIPS0T3dBbHiIf0D6ZRDDr8EgiArEcvcctnJcNRJfqBw&asPdf=false