Serial RAM from Database


Speed Key Names: smem2, sramdb

The Serial RAM from Database symbol is used in conjunction with a previously defined Serial RAM symbol to access the same shared area of NVRAM. The Serial RAM symbol must be defined before the Serial RAM from Database symbol. The signal names do not need to be the same.

Signal name and type

Description

Serial input: <in$/out$>

X-Series and 2-Series

This input must be connected to the <in$/out$> input of a previously defined Serial RAM symbol.

In typical usage this input is used to route the permanent string generated by a Telephone Dialing Keypad or ASCII Keypad to an indirect text field on a touchpanel, to implement an application such as a phone directory.

2-Series only

In 2-Series processors, this string can also be used to store and recall serial data coming from non-keypad sources, such as a Serial Send symbol.

When tying a transient string to a Serial RAM symbol (such as from the Serial Send) a Make String Permanent symbol must also be tied to <in$/out$>. It is suggested that the [Permanent String Size] be set the same as the <#chars> parameter.

Digital input: <store>

Saves the contents of <in$/out$> to NVRAM on the rising edge of a <select> input, for as long as <store> is high.

If both <store> and <recall> are high when a <select> input goes high, the symbol will first store the data into the select preset that went high, and then it will recall the data it just stored from that select preset.

High/1 (level sensitive) = Save contents of <in$/out$>; Low/0 = Exit save mode

Digital input: <recall>

Recalls the contents of NVRAM to <in$/out$> on the rising edge of a <select> input, for as long as <recall> is high.

In typical usage this input should be assigned the signal name 1. This allows the data to be pushed to the touchpanel when the select goes high.

If both <store> and <recall> are high when a <select> input goes high, the symbol will first store the data into the select preset that went high, and then it will recall the data it just stored from that select preset.

High/1 (level sensitive) = Recall contents of NVRAM; Low/0 = Exit recall mode

Digital inputs: <select1> through <select999>

When in save mode (<store> = high/1), saves the contents of <in$/out$> to the corresponding NVRAM preset on the rising edge of the input.

When in recall mode (<recall> = high/1), recalls the contents of the corresponding NVRAM preset to <in$/out$> on the rising edge of the input.

Typically a discrete Serial RAM from Database symbol is defined for each select input that is defined in the associated Serial RAM symbol. For example, if 10 select inputs are defined in the Serial RAM symbol, this would require 10 different Serial RAM from Database symbols to be defined.

High/1 (rising edge) = Store/recall; Low/0 = No effect

Digital output: <dial>

Indicates that the stored number is being dialed.

Alternatively, <dial> can be assigned a dummy name if it is not used.

High/1 = Dialing; Low/0 = Not dialing

Single-precision parameter: <#digits> (see Numeric Formats)

X-Series and 2-Series

Sets the maximum number of characters that can be accumulated into the <in$/out$> string.

If more digits are entered than what is specified in <#digits>, the extra digits are ignored.

This parameter value should match the <#chars> parameter in the Serial RAM symbol.

2-Series only

If a transient string is tied to <in$/out$> (such as from the Serial Send) a Make String Permanent symbol must also be tied to <in$/out$>.

This parameter value should match the Permanent String Size specified in the Make String Permanent symbol.