beautypg.com

Reset, Table 3: tim config feature: sw1 settings – Sundance SMT351 User Manual

Page 13

background image

Version 1.6

Page 13 of 25

SMT351 User Manual

Reset

The SMT351 is reset by the TIM global reset.

There is also a TIM CONFIG signal provided on the TIM connector J4 pin 74. This
provides a means of reprogramming the FPGA without having to drive the TIM Global
Reset signal. CONFIG falling will reset the SMT351 in the same way that a TIM
global Reset pulse will. Other modules in the system that are sensitive to the TIM
global Reset signal will not be affected by CONFIG.

CONFIG is driven from another TIM site on the carrier board, for instance, from a
DSP module running an application. (See

General Firmware Description

for

information on the DSP TIM CONFIG signal).
After a Global Reset pulse, a DSP module drives CONFIG low and keeps it low by
default.

Setting SW1 switch number 2 will enable or disable TIM CONFIG:

Table 3: TIM CONFIG feature: SW1 settings

TIM CONFIG

Switch
number 4

Enabled ON

Disabled OFF

Once a DSP application has been loaded, CONFIG can be driven the following way:

#include “SMT3xx.h”
#define CONFIG_BIT (1<<6)

int main()
{

*CONFIG &= (UINT32)~CONFIG_BIT;

timer_delay

(100);

*CONFIG |= CONFIG_BIT;

timer_delay

(100);

}