SCI Communication Error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SCI Communication Error

1,238 Views
Vicky
Contributor I

Hi,

We have a situation in our software, need to detect SCI port is grounded i.e. "RX pin is pulled low from external environment".

 

How would I know, whether received data is 0 or RX pin is grounded?

 

Rgds

Vignesh A

Labels (1)
0 Kudos
2 Replies

400 Views
VietHung
Contributor I

Hi Vicky,

 

I think you can use the Bit Error Detection functions to check the state of RX pin. (if you have SCI V5)

 

Please look at two bit BERRV in the SCIASR1 register. It might help u solve your problem.

 

Regards, 

 

VHung

0 Kudos

400 Views
Vicky
Contributor I

Hi, 

Controller used is HCS12X. Is there any way to identify SCI error - "Short to GND" and/or "Short to VBATT" conditions?

 

Rgds

Vignesh A

 

 

0 Kudos