background image

5136-DNP-PCI

Hardware Reference

© 1999 SST/Woodhead Canada Limited

16

4.6.5  Configure Interrupts

1.

 

Set IrqPending in BCR0 to clear the interrupt latch.

2.

 

If physical interrupts are required, write the interrupt level to IrqLevel in BCR2. See section 4.3.3.

3.

 

If a physical interrupt test is required, perform the necessary initialization to receive the test interrupt and
set IrqPending in BCR0 to enable physical interrupt generation.

4.6.6  Start the application module

1.

 

Set WDInh in BCR2 to disable the watchdog timer.

2.

 

The card self-diagnostic will fail if the watchdog is enabled during startup.

3.

 

Toggle (clear, set) CardRun in BCR2 twice to start the card processor.

4.

 

Start a timeout timer (typically 1-2 seconds).

5.

 

Wait until ModuleType in the Application Module Header is set to either ‘DN’ or ‘ER’, or the timeout
timer expires.

4.6.7 Check module startup results

1.

 

If ModuleType in the Application Module Header does not contain ‘DN’ or ‘ER’ the application module
failed to start.

2.

 

Refer to section 4.6.10 for further instructions.

3.

 

If ModuleType contains ‘ER’, the card diagnostic has detected an error.

4.

 

The error string in the Message area of the Application Module Header provides details. Refer to section
4.6.10 for further instructions.

5.

 

If ModuleType contains ‘DN’, the card processor is operating correctly.

4.6.8  Test Interrupt Generation

The module startup process generates a test interrupt.

1.

 

Read BCR0 and verify that IrqPending is set.

2.

 

If an interrupt handler was installed, verify that the test interrupt was received.

3.

 

Set IrqPending in BCR0 to clear the interrupt latch.

4.6.9 Successful completion

1.

 

Clear WDInhibit in BCR2 to enable the watchdog timer.

2.

 

Set HealthGrn in BCR2 to change the Health LED from red to green.

3.

 

If interrupts are required, set IrqPending in BCR0 to enable physical interrupt generation.

4.6.10  If something goes wrong

1.

 

Write 0x00 to each of the configuration registers (BCR0, BCR1 and BCR2).

2.

 

Report the nature of the error to the user.

StockCheck.com

Содержание 5136-DNP-PCI

Страница 1: ...DNP PCI Hardware Reference Version 1 0 50 Northland Road Waterloo Ontario N2V 1N3 519 725 5136 fax 519 725 1515 1999 SST a division of Woodhead Canada Limited Printed in Canada S t o c k C h e c k c...

Страница 2: ...Canada Limited i Publication Name Publication Revision Date Printed DNP PCI doc 1 0 7 21 99 1999 SST Woodhead Canada Limited SST is a trademark of Woodhead industries Inc This Document Applies To 5136...

Страница 3: ...Termination Resistor 4 3 4 Connecting to a CAN Network 5 3 4 1 Termination Resistor 5 3 4 2 Power 5 3 5 Grounding 5 4 Hardware Technical Information 6 4 1 Introduction 6 4 2 DeviceNet Pro Mode Registe...

Страница 4: ...ions 13 4 5 2 Byte Ordering 13 4 5 3 Application Module Header 14 4 6 Loading an Application Module in Compatible Mode 15 4 6 1 Test for 5136 DNP PCI at I O port address specified 15 4 6 2 Check for c...

Страница 5: ...terface card for communication with DeviceNet and other CAN based networks The main features of the 5136 DNP PCI are 33 MHz 32 bit PCI interface fully compliant with PCI 2 1 Spec 40 MHz AM186EM microp...

Страница 6: ...plug in to any 5V PCI motherboard connector The 5136 DNP PCI does not require that the motherboard connector supply 3 3V power The 5136 DNP PCI will not plug in to 3 3V only PCI connectors 2 2 2 CAN...

Страница 7: ...PCI card Color Status Off No Power Green Application module loaded and running Red Application module not loaded an error occurred during the load or a runtime fatal error occurred 2 3 2 Health Indica...

Страница 8: ...touching only the edges of the card Do not touch the header pins or the surface of the board 6 Firmly press the 5136 DNP PCI card into the PCI connector 7 Secure the card to the case using the screws...

Страница 9: ...adjacent terminal 3 4 1 Termination Resistor The 5136 DNP PCI does not have a built in termination resistor You must add termination in accordance with the requirements of the target CAN network 3 4 2...

Страница 10: ...qPending CardInt Bit Name Description Card Int CINT This bit is used to send interrupts to the card processor Writing 1 generates an interrupt to the card Writing 0 has no effect Reading 1 indicates i...

Страница 11: ...tes whether or not the card will boot from the on board Flash memory When this bit is 1 the card is set to boot from Flash RAM When this bit is 0 the card is set to boot from Static RAM WDT This bit i...

Страница 12: ...e linearly accessed in the 256K window Bank 0 being mapped to the lowest 16K through to Bank 15 mapped to the highest 16K See section 4 2 5 Reserved These bits are reserved for future expansion Always...

Страница 13: ...1 0 Read Write R R R R R R R R Reset 0 Name Reserved Bit Name Description Reserved These bits are reserved for 32 bit and 24 bit address selection 4 2 8 Memory Configuration Register 3 MCR3 Memory Add...

Страница 14: ...his bit is a semaphore between the card processor and the host It determines who has control of the EEPROM Writing 1 indicates that the host would like control Writing 0 indicates that the host no lon...

Страница 15: ...ther or not the card s shared memory will respond to host memory accesses This may be used to multiplex several 5136 DNP cards at the same base address by enabling the memory on one card at a time Wri...

Страница 16: ...dentification Register IDR Base Address 7 IDR at Base Address 7 is identical to that of ProMode Refer to section 4 2 10 4 4 PCI Configuration Upon power up the PCI Configuration is as follows PCI CFG...

Страница 17: ...irst 128 bytes of the host interface block for loader interface and run time status information common to all 5136 DNP PCI applications This area is called the Application Module Header 4 5 1 Data Typ...

Страница 18: ...r Incremented when messages are submitted to the CAN controller 0034h CanAck UINT2 CAN ack error counter Incremented when a transmit message is aborted due to lack of acknowledgment from other station...

Страница 19: ...ents of the target address and abort the load procedure 5 Refer to section 4 6 10 for further instructions 6 Repeat steps 1 3 for the entire target memory block 4 6 3 Enable and test the card RAM 1 Wr...

Страница 20: ...dule Header does not contain DN or ER the application module failed to start 2 Refer to section 4 6 10 for further instructions 3 If ModuleType contains ER the card diagnostic has detected an error 4...

Страница 21: ...densing Network Cable Shielded twisted pair compatible with target network External Power 11 24 VDC 50mA Isolation 500V Protocol CAN 2 0 A B Data Rate Up to 1 Mbaud PCI Bus Spec PCI Spec 2 1 compliant...

Страница 22: ...uld be returned for repair Error 6 CAN reset flag failed to clear An error occurred testing the CAN controller The card should be returned for repair Error 7 CAN data test failed An error occurred tes...

Страница 23: ...used this error Error 24 Invalid CAN interrupt This error should be reported to the vendor of the application module Make note of the circumstances that caused this error Error 25 Nested system timer...

Страница 24: ...led Operating system type and version Details of the problem you are experiencing application module type and version target network circumstances that caused the problem Getting Help Technical suppor...

Страница 25: ...rned to it freight prepaid which prove upon examination to be within the Warranty definitions and time period The Warranty does not cover costs of installation removal or damage to user s property or...

Отзывы: