Digi NS9215 manual M w a k e u p o n c h a r a c t e r r e c o g n i t i o n

Models: NS9215

1 517
Download 517 pages 25.29 Kb
Page 389
Image 389

Force character transmission procedure

Collecting feedback

S E R I A L C O N T RO L M O D U L E : U A RT

. .

 

ARM wakeup on character recognition..

 

.

character completes, regardless of any flow control mechanism that might stall normal data transmission.

Use the Force Transmit Character Control register to program this operation.

These steps outline a single force character transmission operation:

1Read the Force Transmit Character Control register and verify that the ENABLE field is 0. The Force Transmit Character Control register must not be written while the ENABLE field is 1.

2Write a 1 to the ENABLE field and the required character to the CHAR field. This operation can be a single step.

Force character transmission completion status is available. It is up to you as to whether you want to collect feedback. If you do want to collect feedback, these are your options:

Poll the ENABLE field in the Force Transmit Character Control register until it reads 0.

Poll the FORCE field in the Interrupt Status register until it reads 1.

Enable the FORCE interrupt by writing a 1 to the FORCE field in the Interrupt Enable register and servicing the interrupt when it occurs.

A R M w a k e u p o n c h a r a c t e r r e c o g n i t i o n

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Example configuration

The UART module provides a signal to the SCM module that can wake up the ARM processor. This signal is asserted when a specified character is received. Use the Receive Character Match Control registers and the ARM Wakeup Control register to implement the logic.

This table shows a sample configuration where the wakeup signal is asserted on reception of any character:

Control register

Field

Value

Comment

 

 

 

 

Receive Character Match Control

ENABLE

1

Enable character match

Register 0

 

 

 

MASK

0xff

Mask all bits

 

 

 

 

 

 

DATA

0x00

Don’t care

 

 

 

 

ARM Wakeup Control register

ENABLE

1

Enable the function

 

 

 

 

www.digiembedded.com

389

Page 389
Image 389
Digi NS9215 manual M w a k e u p o n c h a r a c t e r r e c o g n i t i o n