/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Sending Accelerometer values to the extension connector

Username:     
Password:     
             

Forum

# 1   2011-12-06 14:39:07 Sending Accelerometer values to the extension connector

drienkop
New member
Registered: 2011-11-30
Posts: 2

Sending Accelerometer values to the extension connector

Hi,

I'm trying to access the extension connector pin 16 (Tx) on my Primer2.
I'd like to get the values from the Primer's accelerometer and send the values through this pin.
Could someone please provide me with a function to access this pin as I couldn't find any API documentation regarding this issue.

Thanks

Offline

 

# 2   2011-12-09 07:05:26 Sending Accelerometer values to the extension connector

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: Sending Accelerometer values to the extension connector

The extension connector is not managed by the CircleOS.
Pin affectation are depending on the Primer version, and the Target Board CPU model.
Normally, Tx is connected to the Tx output of a CPU's USART.
Take a look at the schematics of your Primer to determine the peripheral to use, and then you will be able to implement the ST STM32 Peripheral Library functions to control it.

Offline

 

# 3   2011-12-09 19:11:12 Sending Accelerometer values to the extension connector

drienkop
New member
Registered: 2011-11-30
Posts: 2

Re: Sending Accelerometer values to the extension connector

I found the example Simple USART and got it working.
Thanks.

Offline

 

Board footer