background image

 

 

TIP670 User Manual Issue 1.3 

Page 14 of 19 

6.2 Initialization of the Watchdog Function 

On the TIP670 port C and counter timer 3 of the Z8536 are wired in way, that a watchdog function can 
be programmed into the TIP670. This watchdog is retriggered with every access to the TIP670. If 
there is no access within a previously programmed time frame, the watchdog will automatically disable 
the output lines. 

If the TIP670 is accessed after the watchdog timer has expired, the output lines will return to its 
original state. 

For initialization of the watchdog function proceed as follow: 

  Write 0x1E to CIOCSR 

This selects the Counter/Timer 3 Mode Specification Register (CT3MO) for the next operation 

 Write 

0x55

 

to CIOCSR 

Writing 0x55 into CT3MO will configure counter/timer 3 to single cycle, retrigger enable, external 
output, one shot 

  Write 0x1A to CIOCSR 

This selects the Counter/Timer3 Preload MSB Register (CT3PM) for the next operation 

  Write 0xF0 to CIOCSR 

Writing 0xF0 into CT3PM will load the first half of the watchdog time out time of ‘0xF000’ which is 

just an example for approx. 30ms 

  Write 0x1B to CIOCSR 

This selects the Counter/Timer3 Preload LSB Register (CT3PL) for the next operation 

  Write 0x00 to CIOCSR 

Writing 0x00 into CT3PL will load the second half of the watchdog time out time of ‘0xF000’ which 
is just an example for approx. 30ms 

  Write 0x06 to CIOCSR 

This selects the Port C Data Direction Register (PCDD) for the next operation 

  Write 0x04 to CIOCSR 

Writing 0x04 into PCDD configures bit 2 as an input for retrigger 

  Write 0x01 to CIOCSR 

This selects the Master Configuration Control Register (MCCR) for the next operation 

  Write 0x84 to CIOCSR 

Writing 0x84 into MCCR will enable port A and B 

  Write 0x0F to CIOCSR 

This selects the Port C Data Register (PCDR) for the next operation 

  Write 0x70 to CIOCSR 

Writing 0x70 into PCDR configures bit 3 as an writable output 

Содержание TIP670

Страница 1: ...D75670800 TEWS TECHNOLOGIES GmbH Am Bahnhof 7 25469 Halstenbek Germany Phone 49 0 4101 4058 0 Fax 49 0 4101 4058 19 e mail info tews com www tews com TEWS TECHNOLOGIES LLC 1 E Liberty Street Sixth Flo...

Страница 2: ...is document at any time without notice TEWS TECHNOLOGIES GmbH is not liable for any damage arising out of the application or use of the device described herein Style Conventions Hexadecimal characters...

Страница 3: ...Isolation 11 5 1 2 Digital Filtering 11 5 1 3 Input and Interrupt Logic 11 5 2 Digital Outputs 11 5 2 1 Optical Isolation 11 5 2 2 Output Polarity 11 5 2 3 Overload Protection 11 5 2 4 Output Watchdog...

Страница 4: ...ID PROM CONTENTS 7 FIGURE 4 1 REGISTER SET 8 FIGURE 4 2 Z8536 CIO INDIRECT ADDRESSABLE REGISTERS 9 FIGURE 4 3 CIO STATE MACHINE 10 FIGURE 7 1 INPUT WIRING OPTIONS 16 FIGURE 7 2 OUTPUT WIRING AS HIGH...

Страница 5: ...ebounce circuit with fixed debounce time All inputs can generate an interrupt The signal edge handling is programmable For systems with particularly fast reaction each input can be assigned its own in...

Страница 6: ...TIP670 10 8 TIP670 20 4 Output Isolation All channels each two channels shares the same power supply and ground External Supply Voltage for Outputs 24V DC typical 6V DC minimum 48V DC maximum Output C...

Страница 7: ...0x05 ASCII A 0x41 0x07 ASCII C 0x43 0x09 Manufacturer ID 0xB3 0x0B Model Number 0x02 for TIP670 10 0x03 for TIP670 20 0x0D Revision 0x10 0x0F Reserved 0x00 0x11 Driver ID low byte 0x00 0x13 Driver ID...

Страница 8: ...peration of the TIP670 For a more detailed description of the function of these registers see the Z8536 data sheet which is part of the Engineering Documentation TIP670 ED Address Symbol Description S...

Страница 9: ...T3MO Counter Timer 3 Mode Specification 8 0x1F CTCV Counter Timer Current Vector 8 0x20 PAMO Port A Mode Specification 8 0x21 PAHS Port A Handshake Specification 8 0x22 PADP Port A Data Path Polarity...

Страница 10: ...This will put also the state machine into state 1 A read or write access in state 1 will transfer data from or to the internal register which was selected by the pointer register Any access to the int...

Страница 11: ...mmed for each channel and input transition For more detailed information see the Z8536 data manual which is part of the TIP670 ED Engineering Documentation A software initialization of the Z8536 is re...

Страница 12: ...puts Any software access to the Z8536 will retrigger Timer 3 in the Z8536 If the programmed time expires without a software access all outputs go into the off state the maximum programmable time is ap...

Страница 13: ...IOSR Write 0x01 to CIOSR Write 0x00 to CIOSR This sequence puts the CIO Z8536 into a known reset state Write 0x2B to CIOCSR This selects the Port B Data Direction Register PBDD for the next operation...

Страница 14: ...1A to CIOCSR This selects the Counter Timer3 Preload MSB Register CT3PM for the next operation Write 0xF0 to CIOCSR Writing 0xF0 into CT3PM will load the first half of the watchdog time out time of 0x...

Страница 15: ...to CIOCSR This selects the Counter Timer 3 Command and Status Register C3CSR for the next operation Write 0x06 to CIOCSR Writing 0x06 into C3CSR triggers and runs counter timer 3 Write 0x00 to PORTC W...

Страница 16: ...he logic circuit Each input is independent of the other inputs and can be wired different Each input has two connections at the IP I O connector Input x and Input x However the TIP670 has AC optocoupl...

Страница 17: ...wo Output channels 1 and 2 3 and 4 5 and 6 7 and 8 share the same output potential but are completely isolated against the other output pairs Each output can be individually configured as a high side...

Страница 18: ...ut 1 02 Input 1 03 Input 2 04 Input 2 05 Input 3 06 Input 3 07 Input 4 08 Input 4 09 Input 5 TIP670 10 only 10 Input 5 TIP670 10 only 11 Input 6 TIP670 10 only 12 Input 6 TIP670 10 only 13 Input 7 TIP...

Страница 19: ...36 Low Side Output 4 37 High Side Output 4 38 Low Side Output 5 TIP670 10 only 39 High Side Output 5 TIP670 10 only 40 Low Side Output 6 TIP670 10 only 41 High Side Output 6 TIP670 10 only 42 Low Side...

Отзывы: