Home
G9004 User`s Manual 040323
Contents
1. LRD E LA 5 0 LCS LWRQ LWR LD 7 0 Write cycle LRD E LA 5 0 LCS LWRQ LWR LD 7 0 lt P Item Symbol Condition Min Max Unit Address setup time for LRD E t Tae 1 1 ns LWT1 L Address hold time for LRD E LWTO L Note 2Tick 1 2Tiax 1 ns R W setup time for LRD E 7 Trwe Tick 1 Tia 1 ns R W hold time for LRD E 4 Terw Tiak 1 1 ns LCS setup time for LRD E f Tiak 1 1 ns LCS hold time for LRD E 4 Tecs Tia 1 1 ns LWRQ ON set time for LRD E 7 Tewr CL 40pF 2 12 ns LWRQ signal LOW time for LWRQ 7 Twre CL 40pF 2 2 ns Data setup time for LRD E 4 23 ns Data hold time for LRD E TeLRD 0 ns LRD E signal width Tpwe 2Ticik ns LRD E cycle time Toye 5Ticik ns Data setup time for LRD E 3 1 ns Data hold time for LRD E 4 Tia 1 ns Note 1 When LOW CKSL HIGH the data output delay time will be 12 11 64 11 6 4 16 bit I F 1 IF1 L IFO Read cycle LA 5 1 TARW LCS TcsRw LWRQ TwrRW LRD Write cycle LA 5 1 LCS LWRQ LWR LD 15 0 TRDHD Item Symbol
2. Interrupt occurs 5 The central device reads the status V Data communication complete Bit 021 V Input change interrupt Bit 3 1 gt 6 Reset the input change interrupt 7 Read the data from the data reception FIFO 8 Write b 0400h to the data transmission FIFO Data transmission FIFO Reset the receive process Address Upper Lower 00h 04h 00h complete interrupt 9 Write a data communication command Interrupt occurs 10 The central device reads the status V Data communication complete Bit 021 End of emulation communication 28 After writing 1234h to address 0 read addresses 4 and 6 Without a communication wait time Center device 9001 Local device 9004 Start 1 Place a command 0100h in the data transmission Data transmission FIFO FIFO Address Upper Lower 2 Place data 00h 01h 00h 1234h in the 01h 12h 34h data transmission 02h 12h 84h FIFO 3 Place a command 1284h in the data transmission FIFO 4 Write a data communication command 4008h Kk k k k k k k k k k Data communication 1 st time k k k Interrupt occurs Write 1234h to address 0 i Place a command 5 The central device reads the status 1284h in the data Data transmission FIFO V Data communication complete Bit 0212 transmission FIFO Ad
3. Local device bus 8 1 Terminals on the G9004 Terminal name Description LIFO Local bus interface mode 0 LIF1 Local bus interface mode 1 LWTO Positive Local bus interval time setting 0 LWT1 Positive Local bus interval time setting 1 LRST Negative Local bus reset LAO to LA5 Positive Local bus address LCS Negative Local bus chip select LWR Negative Local bus write signal LRD Negative Local bus read signal LWRQ Negative Local bus wait request LIRQ Negative Local bus interrupt request B LDO to LD7 Positive Local bus data 0 to 7 LD8 to LD15 B Positive Local bus data 8 to 15 Shown below are representative CPUs and the corresponding terminals on the G9004 Typical CPU G9004 CPU name Terminal name G9004 terminal name G9004 mode Z80 RD LRD 8 bit interface 1 WR LWR 8086 RD LRD 16 bit interface 1 WR LWR Upper enable None Lower enable None 68000 R W LWR 16 bit interface 2 Upper strobe LRD No distinction between upper lower Lower strobe LRD No distinction between upper lower H8 RD LRD 16 bit interface 1 Upper WR LWR No distinction between upper lower Lower WR LWR No distinction between upper lower 6809 R W LWR 8 bit interface 2 E LRD 20 8 2 Control method for using a central device G9001 When you want to perfor
4. 3 Read the status 1 Place a command Data transmission FIFO V Data communication complete Bit 0 1 gt 32D0h in the data Address Upper Lower transmission FIFO 00h 3Ah boh 2 Read address 16 Oth FFh EEh FFEEh and write it __92h DDh CCh to the data 03h BBh AAh transmission FIFO 04h 99h 88h 3 Read address14 DDCCh and write it to the data transmission FIFO 4 Read address12 BBAAh and write it to the data transmission FIFO 5 Read address10 9988h and write it to the data transmission FIFO 6 Set port 0 interrupt information Y Receive process complete interrupt lt Bit 1 1 Y Interrupt request lt Bit 0 1 gt Interrupt occurs 4 The central device reads the status V Input change interrupt lt bit 3 1 gt 5 Reset the input change interrupt 6 Place a command Data transmission FIFO 0300h in the data Address Upper Lower transmission FIFO 00h 03h DOh Data sending process 7 Write a data communication command 4008h Send the contents of the data transmission FIFO ito the central device Interrupt occurs 8 The central device reads the status V Data communication complete bit 021 9 Read data from the data reception FIFO 10 v en Data transmission FIFO AE Address Upper Lower data transmission 00h 04h 00h FIFO Reset the rseceive process complete interrupt 11 Write a da
5. LCS LS LRD R W LWR ACK LWRQ LD 15 0 Write cycle LA 1 LCS TDAKLR LS LRD R W LWR ACK LWRQ LD 15 0 Item Symbol Condition Min Max Unit Address setup time for LS J Tas 17 ns Address hold time for LS 7 Tas 0 ns LCS setup time for LS 4 Toss 8 ns LCS hold time for LS 7 Tscs 0 ns R W setup time for LS 4 3 ns R W hold time for LS 7 Tsrw 4 ns _ TsLakR 40 Note 1 2Tok 6 9 ns ACK ON delay time for LS J Taaw C 40pF Note 9 ae _ Tsuan CL 40pF 16 d ACK ON delay time for LS 7 40pF 16 m Data float delay time for ACK 4 Tess C 40pF Note2 2Ta ns Data float delay time for LS Tsup C 40pF 30 ns Data setup time for LS f Tost 22 ns Data hold time for 0 ns Note 1 When CKSL LOW CKSL HIGH MIN 4 and MAX 12 9 Note 2 When CKSL LOW CKSL HIGH MIN 4 61 11 6 Timing when CPU emulation is selected 11 6 1 LCLK timing The LCLK uses the following timing even when the device is not in the emulation mode LCLK A A gt TLCLK When L 400 MHZ 25 ns Item Symbol Condition Cycle Unit LCK1 L LCK0 L 2 MHz 20Tc k Clock cycle Tak LCK1 L LCK0 H 4 MHz 10Tc k e LCK1
6. 7 4 Information command for the center device G9001 To send a message the first word in the transmission FIFO of the center device is used for the information command The remaining 127 words can be used freely as message data any format is allowed Center device transmission FIFO Address Upper 00h Information command 01h to 7Fh Message data any format Information command Command code Description 0001h Message transmission Use this command to send a message or data from the center device to a local CPU You can attach a message or data at the end of this command There is also an Information command without any message 0002h When the G9004 receives this command the data transmission process complete interrupt lt local status register bit 1 1 gt and the device resets the transmission processing flag local status register bit 6 gt You can attach a message or data at the end of this command 0003h Resend request command When the G9004 receives this command it sends the same data as it last sent Use this command when the center device cannot receive data from the local device due a data communication error or other reason SE WAS 7 5 Message communication procedure The device model numbers are shown in parenthesis Numbers marked with mean that the operations are carried out by a CPU Assume that the local device address for the G9004 is 08h
7. Read cycle 1 without a wait cycle axe iJ EJ hy dX X uy RD E n i LA5 0 LCS LWR LWRQ LD7 0 Read cycle 2 wait 2 cycles RD E _ LA5 0 LCS LWR LWRQ LD7 0 Write cycle 1 without a wait cycle joue Ail RD E LA5 0 LCS LWR Write cycle 2 wait 2 cycles oo oo ee ee ee eS ee ee RD E LA5 0 LCS LWR LWRQ LD7 0 8 4 5 Example of a burst cycle 8 bit CPU I F 1 Z80 etc 8 4 5 1 Burst read cycle 1 Fixed address 8 4 5 2 8 4 5 3 8 4 5 4 cns Oar LCS eT EE cS c rr I em Burst read cycle 2 add an address iene a X XU y Xu XJ b A eX Ng x x LA5 0 n n 4 LCS Bilis Sie eee eae Burst read cycle 3 subtract an address C LAS TE LCS AES WRO O a O O a a R a aa a Burst write cycle add an address gue d A xu A AAAA LP SA A vu U Pe M E E LCS nnn E E S AN n MEcuzceectocccgeceuecf once 34 9 Connection examples and recommended environment 9 1 Example of a connection to a CPU using the CPU message communication mode MOD L 9 1 1 8 bit I F 1 IF1 HIGH IFO HIGH Z80 type CPU G9004 VDD M1
8. 8 3 1 1 Read cycle 1 without a wait cycle LA vf LA v v Vf NV LA5 1 m 4 1 8 3 1 2 Read cycle 2 wait 2 cycles A Vf Vf A AA Ar aAA a LA5 1 LCS LRD 8 3 1 3 Write cycle 1 without a wait cycle i4 Ly LI X3 Lf Ll ey el Ww LA5 1 8 3 1 4 Write cycle 2 wait 2 cycles dou Xa C X LP o xar Wear Ae LA5 1 LCS LRD 8 3 2 16 bit CPU I F 2 68000 etc 8 3 2 1 8 3 2 2 8 3 2 3 8 3 2 4 Read cycle 1 without a wait cycle ee LY Xy Xy by hg a Aa a LA5 1 LCS LWR LDR STB LWRQ ACK LD15 0 Read cycle 2 wait 2 cycles i4 CF a uu A LA5 1 LDR STB LWRQ ACK MEN Write cycle 1 without a wait cycle ea LA5 1 LCS LWR LDR STB LWRQ ACK LD15 0 Write cycle 2 wait 2 cycles CENE LA5 1 LCS LWR LDR STB LWRQ ACK 31 8 3 3 8 bit CPU I F 1 780 etc 8 3 3 1 Read cycle 1 without a wait cycle 8 3 3 2 8 3 3 3 8 3 3 4 LA5 0 Read cycle 2 wait 2 cycles LA5 0 LCS LRD LWRQ Write cycle 1 without a wait cycle LA5 0 Write cycle 2 wait 2 cycles LA5 0 LCS LRD LWRQ 8 3 4 8 bit CPU I F 2 6809 etc 8 3 4 1 8 3 4 2 8 3 4 3 8 3 4 4
9. After a local CPU writes a command 04h the TOUT output returns HIGH Then if the device does not receive data within the specified interval this bit becomes 1 again When the PCL device does any of the following on a command from a CPU this bit becomes 1 and the device outputs an interrupt signal LIRQ L After this status register is read this bit returns to 0 Try to write data to the transmission FIFO during transmission CPU access error processing status register bit 6 1 or writing a transmission FIFO reset command 02h Try to read the reception FIFO even though it has received no data status register bit 5 0 or writing a data reception FIFO reset command 03h This bit is used to see if the communication line is connected When the Communication link device detects a change on the communication line this bit becomes 1 valid If the communication line does not change within a specified time this bit becomes 0 Received data When there is message data in the data reception FIFO this bit exists becomes 1 After writing the data transmission command 10h this bit becomes 1 Data transmission When data communication with the center device is complete when a in progress receiving information command 0002h issued by the central device this bit becomes 0 Transmission data If there is message data in the data transmission FIFO this bit becomes exists 1
10. Local bus control block 95 No Signal name I O Logic Description 5V Interface When a communication error is 48 MRER O Negative received this signal becomes L level for Available a rated interval When sending data to this chip this 49 MSEL Negative signal becomes L level for a rated Available interval 50 VDD 3 3 V power input 51 SOEH Positive Enable serial output 52 SOEL O Negative Enable serial output 53 SO Positive Serial output 54 TOUT O Negative Watchdog timer output Available 55 DNSO O Negative es output of device number for next Available 56 GND GND 57 BRK Positive Break frame send request Available 58 SPDO Communication speed 0 Available 59 SPD1 Communication speed 1 Available 60 CKSL rate selection L 40 MHz 80 Available 61 DNSM Device number selection mode Available 62 DNO Negative siad Available 63 DN1 Negative Device number bit 1 Available 64 DN2 Negative Device number bit 2 Available 65 DNS Negative Device number bit 3 Available 66 DN4 Negative Device number bit 4 Available 67 DN5 Negative Device number bit 5 Available 68 VDD 3 3 V power input 69 SI Positive Serial input 70 SOEI Positive Enable serial output 71 GND GND 72 CL
11. H LCKO L 10MHz 4 LCK1 H LCKO H 20 MHz 2 When CKSL 80 MHZ 25 ns Item Symbol Condition Cycle Unit LCK1 2L LCK0 L 2 MHz 40 Clock cycle LCK1 L _LCKO H 4MHz 20Tcik s LCK1 H LCKO L 10MHz 8 LCK1 H LCKO H 20 MHz 4Taik 62 11 6 2 8 bit I F 1 IF1 H IFO H Read cycle LA 5 0 LCS LWRQ LRD TwR LD 7 0 TbRD Write cycle LA 5 0 Tarw LCS TcsRw LWRQ LRD LD 7 0 Item Symbol Condition Min Max Unit Address setup time for LRD LWR 4 TARW Tiak 1 Tick 1 ns LWT1 L Address hold time for LRD LWR 7 Trwa LWTO 2L Note 71 1 ns CS setup time for LRD LWR 4 Tosrw Tiauk 1 1 ns CS hold time for LRD LWR f Trwes 0 1 ns LWRQ ON set up time for LRD LWR 4 Tawwr Tiak 12 ns LRD LWR OFF signal LOW time for T 9 Twrw CL 40pF 2 2 3 ns Data setup time for LRD 7 23 ns Data hold time for LRD 7 0 ns LRD signal width Tro 2Ticik ns LWR signal width Twr 2Ticik ns Data output delay time for LWR 4 Twmp CL 40pF 5 15 ns Data hold time for LWR T Twrup 2 1 ns Note The addresses do not change until the next cycle so the hold time varies with value used for LWT 63 11 6 3 8 bit I F 2 IF1 IFO 1 Read cycle
12. Item Symbol Min Max Unit Frequency 40 MHz Cycle 25 ns HIGH duration 10 15 ns LOW duration 10 15 ns 2 When setting CKSL L and data transfer rate 10 Mbps Item Symbol Min Max Unit Frequency feik 40 MHz Cycle 25 ns HIGH duration ns LOW duration ns 3 When setting CKSL H Item Symbol Min Max Unit Frequency 80 2 Cycle 12 5 ns HIGH duration ns LOW duration ns 11 4 2 Reset timing RST P Mu Tprst Internal RST Item Symbol Min Max Unit Reset length Twasti 10 Clock cycles Delay time Torst 10 Clock cycles Note 1 The reset signal must last at least 10 cycles of the system clock While resetting make sure the clock signal is continuously available to the device If the clock is stopped while resetting the device cannot be reset normally 57 11 5 Timing of CPU message communication mode 11 5 1 8 bit I F 1 IF1 IFO Read cycle LA 1 0 LCS LWRQ LRD LD 7 0 Write cycle LA 1 0 LCS LWRQ LWR LD 7 0 Item Symbol Condition Min Max Unit Address setup time for LRD LWR 4 Tarw 17 ns Address hold time for LRD LWR 7 Trwa 0 ns LCS setup time for LRD LWR 4 Tosrw 5 ns LCS hold time for LRD LWR 7 Trwes 0 ns LWRQ ON delay time for LCS 4 Teswr CL 40pF 12 ns LWRQ sig
13. data stored in the FIFO Outp 0x0001h 0x40h Write in order of lower to upper bit This step checks the read status EDTE flag If a communication Dev Sts Inp 0x0000h error occurs the next process should not be started This action also can be performed using the interrupt procedure If there is no error the PCD4541 will begin operation In this step it is not clear if the PCD4541 is operating or not G9004 status bit 1 in this case equivalent to port 0 indicates whether reception by the local devices is complete This action also can be performed using the interrupt procedure triggered by the input change interrupt function When the G9004 completes all the processes specified this bit becomes 1 In other words this will mean that the PCD4541 has definitely started operation if there is no problem with the command data Sts 28h Inp 0x01A0h Put a reset instruction command for the local receive processing complete flag in the FIFO Outp 0x0006h 0x00h Outp 0x0007h 0x04h Outp 0x0000h 0x28h Write a data communication command send the Outp 0x0001h 0x40h command data stored in the FIFO Dev Sts Inp 0x0000h When CEND H the local device flag has been reset 55 11 Electrical Characteristics 11 1 Absolute maximum ratings Item Symbol Rating Unit Power supply
14. i2Tiak 1 ns LS LRD OFF delay time for ACK J Taxs CL 40pF Ticuk 2Tiak 1 ns Data setup time for LS 7 Tpsu 23 ns Data hold time for LS 7 TsHDR 0 ns Data output delay time for LS 4 Tap CL 40pF 2 17 ns Data hold time for LS 7 0 1 5 Note The hold time varies with the LWT set value as the address does not change until next cycle 66 12 External dimensions 80pin LQFP Unit mm dngHHuHHHmHHHHHBHHHHEHE dor ITA n n EHE TM 3 EcZEC 7 O T 1 0 25 TYP LLL T 1 1 Ct O T T 3 lt Ct 1 3 1 E ELI amp X 1 13 1 1 Ct 1 3 T 3 T O T E O T T Ct 80 T1 ae ucc 0 25 0 145 0052 0 45 min 00010 67 13 Handling precautions 13 1 Design precautions 1 Never exceed the absolute maximum ratings even for a very short time 2 Take precautions against the influence of heat in the environment and keep the temperature around the LSI as cool as possible 3 Please note that ignoring the following may result in latching up and may cause overheating and smoke Do not apply a voltage greater than 3 3V greater than 5V for 5V connectable terminals to the input output terminals and do not pull them below GND Please consider the voltage drop timing when turning the power ON OFF Consider power voltage drop timing
15. transmission FIFO Write 0001h Message transmission 8 Write a data communication command 4008h kkkkkkkkkkkkkkkkk Data communication 2nd time kkk kkkkkkkkkkkkkk When the Local device receives a message from the center device it sends the data in the FIFO to the center device Interrupt occurs 9 Read the status V Data communication complete lt bit 0 1 gt 10 Read the message in the data reception FIFO 11 Send an information command 0002h reset the data transmission processing flag to the data transmission FIFO This is how the center device informs the local device that the data was received normally Interrupt occurs Reset the data transmission FIFO 13 Read the center device status Interrupt occurs V Data communication complete lt bit 0 1 gt 5 Read the local device status V Transmission process complete interrupt lt bit 1 1 gt 18 2 When the local device G9004 is the first to send a message and the center device G9001 responds Center device G9001 Local device G9004 Start 1 Place a message in the data transmission FIFO 2 Write a data send command 10h Set the status for port O interrupt information Local device data send request interrupt bit 1212 Interrupt occurs V Local device interrupt request bit 0 1 gt 1 Read the central device status Input change interrupt bit 321 2 Reset the input change interrupt
16. Condition Min Max Unit Address setup time for LRD LWR 4 TARW 1 1 ns Address hold time for LRD LWR 7 Trwa E Note 1 Tick 1 ns CS setup time for LRD LWR 4 Tesgw 71 1 ns CS hold time for LRD LWR f Trwecs 0 1 ns LWRQ ON set time for LRD LWR 4 Trwwt 12 ns LRD LWR OFF delay time for LWRQ Twraw CL 40pF 2Ticik 2 3Ticik ns Data setup time for LRD 7 23 ns Data hold time for LRD 7 TroHD 0 ns LWR signal width Tro 2Ticik ns LWR cycle time Twr 2Ticik ns Data setup time for LWR 4 CL 40pF 5 15 ns Data hold time for LWR 7 Tiak 2 1 ns Note The hold time varies with the LWT set value as the address does not change until next cycle 65 11 6 5 16 bit I F 2 IF1 L IFO L Read cycle LA 5 1 LCS LS LRD TRws R W LWR 1 LWRQ Write cycle LA 1 LCS LS LRD R W LWR ACK LWRQ LD 15 0 Taks LD 15 0 Toss TSHDR Ve Ser Item Symbol Condition Min Unit Address setup time for LS 4 Tas Tick Tick 1 ns Address hold time for 7 TAKA ANT LS 2Ticik 1 3Ticik 1 ns LWTO L Note LCS setup time for LS 4 Toss Tiak 1 Trak 1 ns LCS hold time for ACK 7 1 i2Tiak 1 ns R W setup time for LS 4 Trws 1_ 1 ns R W hold time for ACK 7 Tike Tiak 1
17. Decoding CLK LIF1 A2 to A15 to A1 am yo System reset Note 1 When you use an interrupt controller the CPU will output IORQ as an interrupt acknowledge signal that is used to determine the interrupt vector At this time when this LSI s CS terminal goes LOW the LSI may output a WRQ signal and still not be able to capture the vector properly Therefore arrange the decoding circuit so that it only functions when the M1 signal is HIGH Note 2 Pull up terminals LD8 to LD15 to the power supply externally 5 to 10 k ohms Note 3 Pull the LA2 to LA5 input terminals down to GND using external resistors 5 to 10 K ohms 95 9 1 2 8 bit I F 2 IF1 HIGH IFO LOW 6809 type CPU G9004 Decoding circuit CLK LIF1 LCS LIRQA LRD LWR LWRQ LDO to LD7 RST Note 1 Pull the LA2 to LA5 terminals down to the GND 5 to 10 K ohms Note 2 Pull the LD8 to LD15 terminals up to the power supply using external resistors 5 to 10 K ohms 36 9 1 3 16 bit I F 1 IF1 LOW IFO HIGH 8086 type CPU G9004 M IO Decoding CLK circuit LCS a poe A16 to A19 ADO to AD15 GND DO to D15 LDO to LD15 Interrupt control circuit LIRQ LRD LWR LWRQ RST System reset System reset H8 type CPU Decoding circuit RESET RST System reset Note 1 Pull LAO and the LA2 to LA5 terminals down to GND 5 to 10 K ohms 37 9 1 4 16 bit I F 2 IF1 LOW IFO LOW 68000 type CPU
18. G9004 CLK LIF1 LCS LIFO MOD LA1 control circuit System reset Note 1 Pull the LAO LA2 to LA5 input terminals down to GND 5 to 10 K ohms 38 9 1 5 Connecting to a CPU without a wait function The central device can be connected to a CPU that does not have a wait function Let s look at an example with the CPU interface using 8 bit I F 1 while it is connected to an Intel 8031 8 bit CPU Since this CPU does not have a terminal for executing a wait function care is needed when programming CLK 8031 intel G9004 VDD A8 to A15 A2 to A15 P2 0 to P2 7 Decoding CLK LIF1 circuit LCS LIFO ALE to A1 LAO to LA1 P0 0 to 7 GND LDO to LD7 LRD LWR System reset Points 1 Set IF1 H and IFO H 8 bit I F 1 2 Since the 8031 does not have a wait terminal the WRQ terminal cannot be used However the G9004 needs a certain internal processing time to access write read a CPU And a wait function is therefore essential for continuous access operations In the example above the LIFB output terminal on the G9004 is connected to a port on the 8031 The LIFB bit is monitored using a routine in the 8031 so that the 8031 does not try to access the G9004 while it is processing a command Note 1 Pull the LA2 to LA5 terminals down to GND 5 10Kohms 39 9 2 Access timing when the CPU message communication mode is selected MOD L 9 2 1 Normal acce
19. If you are worried about moisture absorption dry the chip packages thoroughly before reflowing the solder Dry the packages for 20 to 36 hours at 125 5 C The packages should not be dried more than two times 3 To heat the entire package for soldering such as infrared or superheated air reflow make sure to observe the following conditions and do not reflow more than two times Temperature profile The temperature profile of an infrared reflow furnace must be within the range shown in the figure below The temperatures shown are the temperature at the surface of the plastic package Maximum temperature The maximum allowable temperature at the surface of the plastic package is 260 peak A profile The temperature must not exceed 250 A profile for more than 10 seconds In order to decrease the heat stress load on the packages keep the temperature as low as possible and as short as possible while maintaining the proper conditions for soldering Package body temperature Max peak temperature 260 C Sleek Teh Cees T ce E Less than 10 seconds at 250 C 1 Preliminary heating Main heating 1 1 144010200 C 220 C or higher 0 to 120 sec Less than 40 sec Time D 1 1 A profile applied to lead free soldering 4 Solder dipping causes rapid temperature changes in the packages and may damage the devices Therefore do not use this method 13 4 Other precautions 1 When
20. In addition the port status information for the I O cycle communication or data communication is sent to the port data area in the center device G9001 In order to generate an interrupt position 1 in the center device G9001 when an interrupt request bit O 1 on port 0 occurs in the local device G9004 you must enable the input change interrupt that corresponds to port O set it to 1 1 When the center device G9001 is the first to send a message and the local device G9004 responds Center device G9001 Local device G9004 Start 1 Write an information command 0001h Message transmission to the data transmission FIFO 2 Place a message in the data transmission FIFO 3 Write a data communication command 4008h Interrupt occurs Interrupt occurs 4 The center device reads the status 1 Read the status V Data transmission complete bit 021 V Data reception interrupt bit 0 1 gt 2 Read the message in the data reception FIFO 3 Place the message in the data transmission FIFO 4 Write a data transmission command 10h Set the status for port 0 interrupt information V Local device data transmission request interrupt Bit 1 1 Interrupt occurs lt Y Local device interrupt request Bit 0 1 5 The center device reads the status Input change interrupt bit 3 1 gt 6 Input change interrupt 7 Send an information command to the data
21. Receive process complete interrupt bit 121 Interrupt occurs Interrupt request Bit 021 5 The central device reads the status V Input change interrupt Bit 3 1 gt 6 Write 0400h to the data transmission Data transmission FIFO Address Upper Lower FRO 00h 04h 00h Reset reception process complete interrupt 7 Write a data communication command 4008h Data communication 2nd time JOO IO III e e Interrupt occurs 8 The central device reads the status V Data communication complete Bit 0 1 gt End emulation communication 24 8 2 2 2 Example of writing continuous data 16 bit CPU interface Write 1234h to address 4 2345h to address 6 and 3456h to address 8 Without a communication wait time Center device G9001 Local device G9004 Start 1 Place a Data transmission FIFO command Address Upper Lower 2184h in the 00h 21h 84h data 01h 12h 34h transmission 02h 23h 45h 03h 34h 56h 2 Place data 1234h in the data transmission FIFO 3 Place data 2345h in the data transmission FIFO 4 Place data 3456h in the data transmission FIFO 5 Write a data communication command Interrupt occurs 1 Write 1234h to address 4 6 The central device reads the status 2 Write 2345h to address 6 3 Write 3456h to address 8 V Data communication compl
22. d 8 o P 8 5 TdzSOEHSOBE A4 ananas tates 8 5 127 SOEL st ree ree eats 9 9 5 14 mi RL REDD NE LA D E Dn EnEn R 9 5 15 MSE LS aeu pE nanan 9 BRK R RED NDA N RR dai 9 rep T 9 5518 LOKOMO T m RR 9 EG d 9 F20 EI FOTO T 10 10 B22 EB evens 10 5 28 LAO tO VAD tees 10 DAA SECS RA EM PD Dum 10 S MB ULP 10 271 P bp A AE 10 TAARA BN RG aia ELI 11 5 28 EIBQ TE cara het earshot cacs Asters ee ie bere treo ter t a cedures 11 5 29 RBRUM 11 5 30 m 11 5 31 LWTO LW Rm 11 12 5 33 P 12 6 Status information and setting operation information for the 9004 13 7 Message communication mode MOD LOW ssssssssssseseeeeeenenee nnne nnne nennen nnns 15 7 1 Terminals for use by a local 15 7 2 map
23. e z a LIFO LIF1 Note Locate each pin number from the markings on the chip As shown in the figure above pin number 1 is at the lower left of the NPM logo mark LD15 LD14 LD13 LD12 GND LD11 LD10 LD9 LD8 VDD LD7 LD6 LD5 LD4 GND LD3 LD2 LD1 LDO VDD 4 3 Entire block diagram G9004 RST Reset control circuit SPD 1 0 jm Clock control Internal clock 20 MHz CKSL E iter Internal clock 40 MHz circuit CLK LCS ae gt LIQR LWR we a LWR 2 LIFB LIF 1 0 E Command LA 5 0 LD 15 0 8 control circuit BEEN LCK 1 0 BE CPU emulation control circuit LRST LWT 1 0 ON 00 number TOUT TMD Watchdog SSE i TUD timer Data receiving Data transfer FIFO Receipt data Transfer processing processing circuit circuit jal si e SO TEM Serial signal ios SOEI receiving circuit transfer circuit EM MSEL E MERR Functions of terminals 5 1 CLK 5 3 This is an input terminal of the reference clock By setting of the CKSL terminal either of the following clock rate signals can be connected CKSL L 40 MHz CKSL H 80 MHz By selecting either of these clock rates the serial communication transfer rate does not change This clock rate selection affects communication precision For a small scale serial communication and transfer rate below 10 Mbps use of the center device with 40 MHz does not give any restriction
24. ee Ge nete e 51 10 1 Program example of CPU emulation mode sse 52 11 Electrical chiaraeteristiCs rem eee eee e eee e bo i e eddies e ee ds 56 11 1 Absolute maximum ratings 56 11 2 Recommended operating conditions 56 11 3 DG characteristics odo tee ute ak 56 11 4 AC Characteristics s dee see EAR 57 11 5 Timing of CPU message communication mode ssssssssssseeeenmeeennenn nn 58 11 6 Timing when CPU emulation is selected ssssssssssssseeeeeeennn nemen 62 122 External dirmenslons c THE unte d cu te tu ed 67 13 Handling 68 13 1 Design precautions 22 croceo eee demeure ee nae sete reper ene eda 68 13 2 Precautions for transporting and storing LSls ssssssssseeenneennnnn 68 13 3 Precautions for mounting ssssssssssssssesesseeeeeeeeeneennn nennen nnn nnn 69 13 4 Other precautions sse nennen nennen nennen nennen nennen nennen 69 1 Outline This LSI is a CPU emulation device G9004 This LSI can be connected to our Motionnet and perform data communications with a center device G9001 Either of the following two operation modes can be selected fro
25. interrupt 101 Reset LIRQ input interrupt Communicating wait setting Number of process times setting Start address setting Set the top address for the read or write process If the CPU emulation device G9004 is using a 16 bit CPU interface the lower bit setting is ignored and always treated as 0 Commands other than writing and reading processes are invalid Address refresh setting When the number of processing times does not equal zero select an address refresh method When the number of processing times is 0 commands other than writing and reading processes are invalid Process detail setting Select the processing detail for the CPU emulation device G9004 Item Processing detail NOP Do nothing command The device does nothing The CPU emulation device G9004 reads the number of bytes specified in process the processing register starting from the start address The CPU emulation device G9004 writes the number of bytes specified in Wie process the processing register starting from the start address The device sends the data that was read by using the read process to the central device Data send process In addition if the reception process complete interrupt flag bit 1 on port 0 is 1 and this command is received the device will send the same data as it last sent the data resend process Reset the reception process complete Reset t
26. the G9001 will execute the next operation command When the number of bytes to read is odd the last byte of the data sent from the G9004 must be dummy data When the center device G9001 uses an 8 bit interface The operation command for the G9004 must be written to the same address in the central device G9001 data transmission FIFO by arranging the upper and lower bytes in order If the number of data bytes to write is odd write one dummy data byte to make the total even Then use the following operation commands for the G9004 at the same address Shown below is an example where 3 bytes of data are to be written Write a dummy data byte to the upper 8 bits of address 02h Central device G9001 data transmission FIFO data Address Upper 8 bytes Lower 8 bytes 00h Write command upper Write command lower Oth Write data 2 Write data 1 Write the 02h Write data 4 dummy data Write data 3 operation 03h Write command upper Write command lower 4 commands to the 04h Write data 5 Write data 4 same addresses 05h 06h 24 8 2 1 1514 13 12 11 109 8 7 6 543 2 10 E T FT dede E FT Start address setting Address refresh setting OX Fixed address 10 Add address 11 Subtract address Process detail setting 000 NOP 001 Write process 010 Read process 011 Data send process 100 Reset receive process complete
27. the LSI will be used in poor environments high humidity corrosive gases or excessive amounts of dust we recommend applying a moisture prevention coating 2 The package resin is made of fire retardant material however it can burn When baked or burned it may generate gases or fire Do not use it near ignition sources or flammable objects 3 This LSI is designed for use in commercial apparatus office machines communication equipment measuring equipment and household appliances If you use it in any device that may require high quality and reliability or where faults or malfunctions may directly affect human survival or injure humans such as in nuclear power control devices aviation devices or spacecraft traffic signals fire control or various types of safety devices we will not be liable for any problem that occurs even if it was directly caused by the LSI Customers must provide their own safety measures to ensure appropriate performance in all circumstances 69 Notes 70 NPM NIPPON PULSE MOTOR CO LTD Tokyo Office NIPPON PULSE AMERICA INC No 16 13 2 chome Hongo Bunkyo ku Tokyo 113 0033 Japan Phone 81 3 3813 8841 Fax 81 3 3813 7049 E mail device npm co jp http www pulsemotor com 1073 East Main Street Radford VA 24141 U S A Phone 1 540 633 1677 Fax 1 540 633 1674 E mail info nipponpulse com http www nipponpulse com MNAL No G9004 1A 5203 0 2 5203 ims Printed in Japan
28. voltage Vbp Vss 0 3 to 4 0 V Input voltage Vin Vss 0 3 to Vpp 0 5 V Input voltage 5V I F Vin Vss 0 3 to 7 0 V Output current Terminal lour 30 mA Storage temperature Tsto 65 to 150 C 11 2 Recommended operating conditions Item Symbol Rating Unit Power supply voltage 0 3 10 V Input voltage Vin Vss to Vpp V Input voltage 5V I F Vin Vss to 5 5 V Storage temperature Ta 40 to 85 C 11 3 DC characteristics Item Symbol Condition Min Max Unit Current consumption laa CLK 80 MHz 34 mA Input leakage current lu 1 1 Output leakage current loz 1 1 Input capacitance 10 pF DNO to 5 DNSM SPDO to 1 TUD TMD LCKO to 1 LIFO 0 to 1 165 LOW input current LWTO to 1 CKSL MOD Input terminals and input output 4 terminals other than the above H SOEI SI BRK 190 pA HIGH input current lui Input terminals and input output 1 1 terminals other than the above LOW input current Vi 0 8 V HIGH input current Vin 2 0 V LOW output voltage VoL lo 6 mA 0 4 V HIGH output voltage Vou lou 6 mA Vop 0 4 V LOW output current lon VoL 0 4 V 6 mA HIGH output current lou Vpp 0 4 V 6 mA Internal pull up pull down _ Reud 20 120 Deum 56 11 4 AC characteristics 11 4 1 System clock Terk 1 When setting CKSL L and data transfer rate 20 Mbps
29. 10 5 27 5 28 5 29 5 30 5 31 LWRQ This terminal is used for a wait request signal for a local bus It will be either an input or output terminal depending on the mode selected In the CPU emulation mode you supply a wait request signal from an external circuit In the message communication mode this terminal outputs a wait request signal when the device cannot be accessed LIRQ This terminal is used for an interrupt request signal for a local bus It will be either an input or output terminal depending on the mode selected In the CPU emulation mode you supply an interrupt request signal from an external circuit In the message communication mode this terminal outputs an interrupt request signal from internal operations LDO to LD7 These terminals are used for the low byte signals of a local data bus These are bi directional terminals LD8 to LD15 These terminals are used for the high byte signals of a local data bus These are bi directional terminals When using an 8 bit CPU interface pull up these terminals to VDD 5 to 10 K ohm resistors LWTO and LWT1 These terminals are used to set the time interval between writing and reading to a local bus Use these terminals only in the CPU emulation mode These are not used in the message communication mode LCLK clock cycle Time interval L L 3xTicik L H H L 5XTicik H H 9xTicik An example of the reading procedure when us
30. 2 Available 18 lO Positive Address for local bus 3 Available 19 LA4 lO Positive Address for local bus 4 Available 20 LA5 Positive Address for local bus 5 Available 21 VDD 3 3 V power input 22 LDO B Positive Data for local bus 0 Available 23 LD1 B Positive Data for local bus 1 Available 24 102 B Positive Data for local bus 2 Available 25 LD3 B Positive Data for local bus 3 Available 26 GND GND 27 LD4 B Positive Data for local bus 4 Available 28 LD5 B Positive Data for local bus 5 Available 29 LD6 B Positive Data for local bus 6 Available 30 LD7 B Positive Data for local bus 7 Available 31 VDD 3 3 V power input 32 LD8 B Positive Data for local bus 8 Available 33 LD9 B Positive Data for local bus 9 Available 34 LD10 B Positive Data for local bus 10 Available 35 LD11 B Positive Data for local bus 11 Available 36 GND GND 37 LD12 B Positive Data for local bus 12 Available 38 1013 B Positive Data for local bus 13 Available 39 LD14 B Positive Data for local bus 14 Available 40 LD15 B Positive Data for local bus 15 Available 41 VDD 3 3 V power input 42 LWRQ Negative Wait request for local bus Available 43 LIRQ Negative Interrupt request for local bus Available 44 LIFB O Negative Busy interface for local bus Available 45 LRST O Negative Reset for local bus Available 46 GND GND 47 LCLK
31. 3 Send an information command 0001h message transmission to the data transmission FIFO 4 Place a message in the data transmission FIFO 5 Write a data communication command kkkkkkkkkkkkkkkkk Data communication 1st time kkkkkkkkkkkkkkkkk After receiving a message from the central device the local device sends the data in the FIFO to the central device Interrupt occurs Interrupt occurs 6 The central device reads the status 3 The local device reads the status V Data communication compete lt bit 0 V Data received interrupt lt Bit 0 1 gt 1 gt 4 Read the message in the data reception 7 Read the message in the data reception FIFO FIFO 8 Send an information command 0002h Reset the data send processing flag to the data transmission FIFO This is how the center device informs the local device that the data was received normally 9 Write a data communication command 4008h Interrupt occurs Reset data transmission FIFO 10 Read the status Interrupt occurs V Data communication compete bit 0 5 Read the status of the local device 1 gt V Data transmission process complete interrupt lt bit 1 1 gt End of message communication 19 8 CPU emulation mode MOD Configuration block diagram ia Control bus Serial communication GPU iSi entral device support CPU G9001 N _ gt 99004 PCL series etc my support PCL series etc
32. 4 Teror CL 40pF 19 ns Data setup time for LRD E 4 22 ns Data hold time for LRD E TeLpw 0 ns Note 1 When CKSL LOW or CKSL HIGH the data output delay time will be 12 11 59 11 5 3 16 bit I F 1 IF1 L IFO Read cycle LA 1 Tarw TRWA LCS TcsRw TRwcs LWRQ Tesw TwAT LRD TRDHD LD 150 1 4 E 4 TRDLD Write cycle LA 1 5 4 LCS LWRQ LWR LA 15 0 Item Symbol Condition Min Max Unit Address setup time for LRD LWR 4 Tarw 17 ns Address hold time for LRD LWR 7 Trwa 0 ns LCS setup time for LRD LWR J Tosrw 5 ns LCS hold time for LRD LWR f Trwecs 0 ns LWRQ ON delay time for LCS Teswr CL 40pF 12 ns LWRQ signal LOW time Twat Note 1 6Tak 11 ns Data output delay time for LRD 4 C 40 29 ns Data output delay time for f CL 40pF 16 ns Data float delay time for LRD 7 Troup 40pF 30 ns LWR signal width Twr Note2 12 ns Data setup time for LWR 22 ns Data hold time for LWR 7 Twro 0 ns Note1 When CKSL LOW or CKSL HIGH the data output delay time will be 12 11 Note 2 The time that the WRQ signal is output will be the interval after WRQ goes HIGH until WR goes HIGH 60 11 5 4 16 bit I F 2 IF1 L IFO L Read cycle LA 1
33. 9 etc LIF1 LAO to LA1 Writing Reading Write command Read status Invalid Invalid Read reception data Write transmission data Invalid Invalid 15 7 3 Command and status information that be used by a local CPU 7 3 1 G9004 s commands that can be used by a local CPU Command code 00h Invalid 01h Software reset 02h Reset transmission FIFO O3h Reset reception FIFO 04h Wait for a sending break frame 10h Data send request Description No meaning Does not affect the operation Software reset Has the same result as applying a LOW to the RST terminal See the Note Resets only the data transmission FIFO If written during the data sending process status register bit 6 1 it may cause a CPU access error status register bit 3 1 Resets only the data reception FIFO Writing this command while no data is being received status register bit 5 0 may cause a CPU access error status register bit 3 1 The device enters a break frame waiting status This has the same results as applying a HIGH pulse to the BRK terminal Data send request Make the status register 0 bit 3 in the CPU emulation device equal 1 set the sending request interrupt so that the center device will be notified that transmission data exists Note When turning ON the power a reset signal must be supplied RST LOW 7 3 2 G9004 status information that can be seen from a lo
34. IC is in CPU emulation mode the speed of the emulation depends on the above setting However when the message communication mode is selected only the LCLK output frequency will change and the operation speed remains constant LCLK Outputs a clock for controlling a local bus If needed it can be used for an external circuit 5 20 5 21 5 22 5 23 5 24 5 25 5 26 LIFO to 1 Using these terminals select the CPU interface specifications for the local bus LIF1 LIF 0 CPU I F interface L L I F 16 bit 2 68000 etc L H I F 16 bit 1 8086 H8 etc H L I F 8 bit 2 6809 etc H H I F 8 bit 1 Z80 etc LRST Output a reset signal for the local bus In any of the following cases this signal goes LOW 1 When a LOW is applied to the RST terminal 2 When TUD is LOW the watchdog timer has timed out only effective during the first 32 cycles on LCLK The LRST terminal status can be changed by setting bit 1 of port 3 See section 6 Setting the status information and G9004 operation information When bit 1 0 LRST HIGH When bit 1 1 LRST LOW LIFB Outputs an interface busy signal for the local bus Use this signal in the message communication mode when connecting to a CPU that does not have a wait control input terminal This terminal goes LOW when a command or data is sent from a CPU or when the status is being read When this LSI completes its internal process
35. K Reference clock 79 VDD 3 3 V power input 74 RST Negative Reset 75 GND GND 76 GND GND 77 VDD 3 3 V power input 78 GND GND 79 GND GND 80 GND GND Note 1 In the I O column each pin can be set for input or output using the operation mode MOD In the I O column I refers to input refers to output and B refers to bi directional Note 2 As for the terminals with available in the 5V interface column note the following These terminals can be input 5 V level signal These are deleted diodes for overcurrent protection on 3 3 V lines If over voltage may possibly be charged due to reflection linking or inductive noise we recommend inserting a diode for overcurrent protection Without overcurrent protection diode Level shifter ANA 5 Outputs from 5V devices can be connected to the center device as far as these are TTL level Even when a signal is pulled up to 5V the output level will be less than 3 3 V However CMOS level signals cannot be connected s On the CPU bus interface pull up of 5 V level is possible for stabilizing bus lines prevent floating Use 10 k ohm or larger capacity pull up resistors 4 2 Terminal assignment drawings T Ed RST GND GND VDD GND GND GND ao n n o e gt a a 2 2 a x a a z o
36. Motionnet G9004 CPU emulation device User s Manual NPM nippon Pulse Motor Co Thank you for considering our super high speed serial communicator LSI the G9000 To learn how to use the G9000 series device read this manual and G9001 G9002 user s manual to become familiar with the product The handling precautions for installing this LSI are described at the end of this manual Make sure to read them before installing the LSI What the Motionnet is As a next generation communication system the Motionnet can construct faster more volume large scale wire saving systems than the conventional T NET systems conventional LSI product to construct serial communication system by NPM Further it has data communication function which the T NET does not have so that the Motionnet can control data control devices such as in the PCL series pulse train generation LSI made by NPM The Motionnet system consists of one center device connected to a CPU bus and maximum 64 local devices and they are connected by using cables of two or three conductive cores Cautions 1 Copying all or any part of this manual without written approval is prohibited 2 The specifications of this LSI may be changed to improve performance or quality without prior notice 3 Although this manual was produced with the utmost care if you find any points that are unclear wrong or have inadequate descriptions please
37. U emulation mode 1 Local LIRQ input interrupt CPU emulation mode 1 Local transmission request interrupt message communication model Status 1 Status information lt Port 1 gt 7 6 5 4 3 21 0 Local reception FIFO status 1 Data present 0 No data Local transmission FIFO status 1 Data present 0 No data Local emulation status 1 Processing 0 Stopped Local LIRQ input status 1 LOW 0 HIGH Port 3 bit O halt emulation status LRST terminal status 1 LOW 0 HIGH Local message communication status 1 Processing data transmission 0 Processing complete LWRQ terminal status 1 LOW 0 HIGH Status 2 setting information Port 2 7 6 5 4 3 2 10 Set local operation mode 0 Message communication 1 CPU emulation Local CPU interface mode 00 16 bit interface 2 68000 etc 01 16 bit I F 1 8086 8 etc 10 8 bit I F 2 6809 etc 11 8 bit I F 1 Z80 etc Local LCLK setting Local LWT setting Operation information Port 3 7 6 5 483 2 1 O0 L Halt emulation execute by changing from 0 to 1 Change the LRST terminal status 0 HIGH 1 LOW 13 Communication image Center device G9001 Port Port 0 data Data Port 1 data Area Port 2 data Port 3 data Data reception FIFO I O data communication communication CPU emulation device G9004 Data communica
38. With 20 Mbps transfer speed however longer communication lines or a large number of connected local devices may deteriorate communication precision due to collapse of signals on the circuit This deterioration of communication quality can be corrected inside the LSI if the deterioration level is not much In order to improve correction precision however evenness of the clock duty is required In other words if the duty is ideal 50 50 the capacity to correct collapse of the signals in the communication lines can be improved On the contrary if the duty is not ideal the center device cannot cope with collapses of the communication line As a result if the duty is close to ideal the center device can be used with 40 MHz When connecting more than one oscillator the duty will not be ideal In this case select 80 MHz The central device divides the frequency inside and creates 40 MHz frequency If you do not want to 80 MHz frequency you may prepare a separate 40 MHz oscillator for this LSI RST This is an input terminal for a reset signal By inputting an L level signal the central device is reset The RST line must be held LOW for at least 10 reference clock cycles After turning ON the power a reset signal must be input before starting communication DNO to 5 Input terminals for setting device address Since these terminals use negative logic setting all the terminals to zero calls up device address SFH There are two meth
39. al device above will be the address of the local device underneath it plus 1 Local device Line transceiver 3 3 V Note 3 Terminating Pulse transformer resistor Note 1 Make the wiring as straight and short as possible circuit on a circuit board d DNO to DN5 5 Device number Local device GND Note 1 When connecting the serial lines to line transceivers make the path as short and straight as possible Running these lines on a PC board could deteriorate the communication performance Note 2 Pull down resistors to GND should be 5 to 10 k ohms Note 3 The following ICs can be used as 3 3 V line transceivers Ex 1 ADM3491AN DIP or ADM3491AR SOIC made by ANALOG DEVICES Corporation 2 MAX3362EKA SOT made by MAXIM Corporation 45 9 5 A connection example of a level shifter When using a 5 V line transceiver a level shifter is needed Shown below is an example of the connections for a level shifter SN74LVC244A and a line transceiver TI SN75LBC180A SN75LBC180A Pulse transformer G9000 series SN74LVC244A 1 Communication 1 line 1 1 1 If the pulse transformer is at the end of the communication line insert a terminating resistor GND either before or after the pulse transformer 46 9 6 Complete configuration We recommend a configuration with the central device at one end of the line and the local devices at other end a
40. are results from ideal conditions in a laboratory In actual use the results may not be the same 9 7 1 Cable Commercially available LAN cables were used 5 Category 5 CAT6 Category 6 We used these LAN cables because they are high quality inexpensive and easy to obtain Lower quality cables such as cheap instrument cables may significantly reduce the effective total length of the line LAN cables normally consist of several pair of wires Make sure to use wires from the same pair for one set of communication lines Even when using cables with the same category and rating the performance of each cable manufacturer may be different Always use the highest quality cables in the same category 9 7 2 Terminating resistor Select resistors that match the impedance of the cable used Normally a 100 ohm resistor is recommended Therefore we used terminating resistors with this value Adjusting this resistor value may improve the transmission line quality 9 7 3 Pulse transformer We recommend using pulse transformers in order to isolate the GND of each local device By isolating the GNDs the system will have greater resistance to electrical noise If pulse transformers are not used the transmission distance may be less We used 1000 transformers in our experiments 9 7 4 I F chip We selected I C chips with specifications better than the RS485 standard In the experiment we used 5 V line transceivers When 5 V line
41. ation Transient transfer CPU interface 8 bit I F Z80 6809 etc 16 bit I F 8086 H8 68000 etc Others Package 80 pin mold size 12 x 12 x 1 4 mm Power supply 3 3 V 10 Storage temperature range 65 to 150 C Operating temperature range 40 to 85 C 4 Hardware description 4 1 A list of terminals QFP 80 No Signal name l O Logic Description 5V Interface Select operation mode L Message Tel eB Cpu TUD when outputting watchdog Available TMD Select watchdog timer Available LCKO os of local bus control clock Available LCK1 CK a of local bus control clock Available 6 LWTO Positive Interval time of local bus 0 Available 7 LWT1 Positive Interval time of local bus 1 Available A1 LIFO I F mode setting bit 0 Available 9 LIF1 I F mode setting bit 1 Available 10 VDD 3 3 V power input 11 LCS Negative Chip selection for local bus Available 12 LWR Negative Write signal for local bus Available 13 LRD Negative Read signal for local bus Available 14 LAO lO Positive Address for local bus 0 Available 15 GND GND 16 LA1 lO Positive Address for local bus 1 Available 17 LA2 lO Positive Address for local bus
42. cal CPU 7 65 4 3 2 1 0 Interrupt due to the data receipt Interrupt due to the data transmission process being complete Interrupt due to a communication link disconnection CPU access error o o While establishing a communication link Reception data exists Sending process active Transmission data exists o Bit Item Description When the G9004 receives message data from the central device this bit becomes 1 and an interrupt signal is output LIRQ L 0 After this status register is read this bit returns 0 When the device only receives an information command this bit stays 0 and the device does not output an interrupt After writing a data transmission command 10h when the G9004 receives 1 information command reset transmission processing flag 0002h this bit becomes inis lete 1 and the device outputs an interrupt signal LIRQ L MER After this status register is read this bit returns to 0 16 Bit Item Description Communication link disconnected interrupt When the interval between sending one data sentence and the next from the central device to the PCL exceeds a specified time time out this bit becomes 1 and the device outputs an interrupt signal LIRQ L After reading this status register the interrupt signal is reset This is used to monitor the watchdog timer output 1 TOUT L
43. ddress specified in the R1 register FL upper byte first then the middle and finally the lower byte Operation command to send to the to G9004 21C3h Data 001000h Write an R2 register FH select command to the command address Operation command to send to the G9004 0100h Data 82h FH select command Note1 Write the data at the address specified in the R2 register FH upper byte first then the middle and finally the lower byte Operation command to send to G9004 21C3h Data Note1 Write an R4 register multiplication rate setting select command to the command address Operation command to the G9004 0100h Data 84h multiplication rate select command Note1 Write the data at the address specified in the R4 register multiplication rate upper byte first then the middle and finally the lower byte Operation command to send to the G9004 21C3h Data 000258h Note1 Instruction of an FH constant speed start sent to the PCD4541 Operation command to send to the G9004 0100h Data 11h Note 1 Operation commands to the G9004 must be written to the data transmission FIFO in the center device G9001 Write the upper and lower bits to the same address If only 8 bits are needed you will still have to write dummy data to upper 8 bits and sent an operation command to the G9004 using the same address 54 Data communication command send the command Outp 0x0000h 0x28h
44. dress Upper Lower Read from address DOM 4 FFEEh and _ 1 Fen FER it to the data gen DBR Soh transmission FIFO Read from address 6 DDCCh and write it to the data transmission FIFO 5 Set the status on port 0 interrupt information Receive process complete interrupt lt Bit 1 1 gt Interrupt occurs lt V Interrupt request Bit 0 1 6 The central device reads the status Input change interrupt Bit 321 7 Reset the input Data transmission FIFO change interrupt Address Lower Write 0300h 00h 00h to the data transmission FIF Data sending process 8 Write a data communication command 4008h Send the contents of the data transmission FIFO ito the central device communication 2nd time Interrupt occurs 10 The central device reads the status Complete data communication bit 0212 11 Read the data from the data receipt FIFO 12 Placea Data transmission FIFO command Address Upper Lower 0400h 00h 04h 00h in the data transmission FIFO Reset the reception process complete interrupt 13 Write a data communication command Interrupt occurs 14 The central device reads the status V Compete data communication Bit 0 1 gt End emulation communication 29 8 3 Emulation timing 8 3 1 16 bit CPU I F 1 8086 H8 etc
45. e read processes are not allowed 283 8 2 2 Examples of CPU emulation control procedures The device model number is shown in parenthesis Numbers marked with mean that the operations are carried out by a central device G9001 emulating a CPU Assume that the local device address for the G9004 is 08h In addition the port status information of the I O cycle communication or data communication is sent to the port data area of the central device G9001 In order to generate an interrupt position 1 in the central device G9001 when an interrupt request bit 0 1 on port 0 occurs in the local device G9004 you must enable the input change interrupt that corresponds to port 0 set it to 1 8 2 2 1 Examples of writing single units of data 16 bit CPU interface Write the data 1234h to address 2 without using communication wait time Center device G9001 Local device G9004 Start 1 Place a command Data transmission FIFO 0102h in the data Address Upper Lower transmission FIFO 00h 01h 02h 2 Place the data 01h 12h 34h 1234h into the data transmission FIFO 3 Write a data communication command 4008h oaaao naana aa naana aana oo Data communication 1 st time FOI IK Interrupt occurs 4 The central device reads the status V Data communication complete bit 0 1 gt 1 Write 1234h to address 2 2 Set status port 0 interrupt information
46. e the communication quality 50 10 Center device G9001 We will use the following four commands to access the address map in the central device 1 Write command to the central device 16 bits Outpw Address Data Address Value corresponding to the address map in the central device 16 bits The lowest bit is ignored Data Data to write 16 bits Return value None 2 Write command to the central device 8 bits Outp Address Data Address Value corresponding to the address map in the central device 16 bits Data Data to write 8 bits Return value None 3 Read command from the central device 16 bits Inpw Address Address Value corresponding to the address map in the central device 16 bits The lowest bit is ignored Return value Read data 16 bits 4 Read command from the central device 8 bits Inpw Address Address Value corresponding to the address map in the central device 16 bits Return value Read data 8 bits Also see the individual items in the Message communication procedure and CPU emulation procedure sections 51 10 1 Program example of the CPU emulation mode Using the CPU interface mode of the G9004 the PCL6045A B uses a 16 bit I F 1 and the PCD4541 uses an 8 bit I F 1 10 1 1 Control example of the PCL6045A B Shown below is a program example that lets the central device G9001 contr
47. ete bit 021 4 Set the status port 0 interrupt information 1 V Receive process complete interrupt Bit 1 1 gt Interrupt occurs lt Y Interrupt request Bit 021 7 The central device reads the status Input change interrupt bit 321 8 Reset the input change interrupt 9 Place a command Data transmission FIFO 0400h in Address Upper Lower transmission FIFO Reset reception process complete interrupt 10 Write a data communication command 4008h Interrupt occurs 11 Central device reads the status Data communication complete Bit 021 End emulation communication 25 8 2 2 3 Example of reading continuous data 16 bit CPU interface Read data addresses 16 14 12 and 10 in this order Using a communication wait time Center device G9001 Local device G9004 Start Data transmission FIFO Address Upper Lower 00h 3Ah DOh 1 Place a command SADOh in the data transmission FIFO EK communication 1 st time kkkkkkkkkkkkkkkkk 1 Place a command Data transmission FIFO SADOh in the data Address Upper Lower transmission FIFO 00h 3Ah DOh Read from address 16 Oth FFh EEh FFEEh and write to 02h DDh CCh the data transmission 03h BBh AAh FIFO 04h 99h 88h Read from address 14 DDCCh and write to the i data transmission FIFO Wait time
48. factor For details see the user s manual for the PCL6045B 42 9 3 2 Connections to the PCD4541 Z80 type CPU emulation The PCD4541 is an NPM sequence LSI for use with stepper motors GND G9004 Z80 type emulation CPU PCD4541 circuit Note 1 LAO to LIRQ LRD LCK1 LCKO Note LWT1f 2 LWTG System reset Note 1 When only one device is connected to the G9004 there is no need for a decoder circuit The LCS output terminal on the G9004 can be connected to the CS terminal on the PCD4541 Note 2 The LCLK clock output on the CPU emulation device G9004 cannot be connected to the Note 3 CLK input clock input on the PCD4541 The LCLK output is 3 3 V but the PCD4541 is a 5V device and its CLK input uses CMOS levels Viu 4 V min Vii 1 V max It cannot be connected directly to 3 3V devices Also the PCD4541 needs a 4 9152 MHz clock If itis connected to some other clock speed such as a 5 MHz clock it may complicate setting the multiplication factor For details see the user s manual for the PCD4541 LCK1 HIGH LCKO LOW LWT1 H LWTO L When these settings are used the device will have the status shown below LCLK 10 MHz Local bus access interval 5 x Ticik 500 ns The local bus access interval is the minimum time from the 1st access to next access when the CPU emulation device is reading or writing to the PCD4541 Since the PCD4541 does not have an output terminal
49. for the local 2 15 7 3 Command and status information that can be used by a local 16 7 4 Information command for the central device G9001 17 7 5 Message communication 18 8 CPU emulation mode MOD H sssssssssssssssssseseseee eene nnne 20 8 1 Terminals on the 90014 20 8 2 Control method for using a central device 9001 21 8 3 EMULATION ER 30 9 Connection examples and recommended 35 9 1 Example of a connection to a CPU using the CPU message communication mode MOD L 35 9 2 Access timing when the CPU message communication mode is selected MOD L 40 9 3 Connection to peripheral LSIs when the CPU emulation mode is selected 42 9 4 Connections to a serial communication line 44 9 5 A connection example of a level shifter essen 46 9 6 Complete configuration nennen nennen nnn 47 9 7 Recommended 48 10 Center device 39001
50. he reception process complete interrupt flag bit 1 on port 0 to 0 interrupt flag LIRQ input interrupt reset Reset the LIRQ input interrupt bit 2 on port 0 to 0 22 Communication wait setting Select whether to use the communication wait time during the reading and writing processes When set to 0 the G9004 will return the normal response without data soon after receiving a command from the central device G9001 When set to 1 the G9004 will wait a maximum of 10 usec at 20 Mbps to respond after receiving a command from the central device G9001 While waiting if the received processes are all complete and there is a read command the device will send read data If there is no read command or if the received processes do not complete within the waiting time it sends a normal response without data Commands other than writing reading processes are invalid The only valid setting is for the 1st word 01h address in the central device data transmission FIFO Setting it to any other address is not allowed Processing bytes setting Set the number of processing bytes when you want to read or write continuously Set a burst cycle Enter the number of processing bytes 1 as the setting When the device is used with a 16 bit CPU interface set the number in units of words Otherwise when the device is used with an 8 bit CPU interface set the number in units of bytes Commands other than writ
51. i 4 Read from address 12 BBAAh and write to the data transmission FIFO Read from address 10 9988h and write to the data transmission FIFO Set the status for port 0 interrupt information V Receive process complete interrupt Bit 121 2 Interrupt request Bit 0 1 gt Lube M ccc Za Send the FIFO contents to the central devices Interrupt occurs 3 The central device reads the status V Data communication complete lt bit 0 1 gt V Input change interrupt lt bit 3 1 gt 4 Reset the input change interrupt 5 Read from the reception FIFO 6 Place a command Data transmission FIFO 0400h in the data Address Upper Lower transmission FIFO 00h 04h 00h Reset the reception process complete interrupt _ 7 Write a data communication command 40085 kk Data communication 2nd time kkkkkkkkkkkkkkkkk Interrupt occurs T 8 Read the central device status V Data communication complete lt bit 0 1 gt End emulation communication 26 Read in order from address 16 14 12 and 10 Without a communication wait time Center device G9001 Local device G9004 Start 1 Place a command Data transmission FIFO 32D0h in the data Address Upper Lower 00h 32h DOh transmission FIFO 2 Write a data communication command 4008h Interrupt occurs
52. icates in CPU I F model 4 Z80 type 8 bit CPU The PCD4541 is NPM s sequence LSI for stepper motors In the example below use a device address of 28h for the G9004 Registers to set in the PCD4541 Register name Set value Remark PRFL 001000h PRFH 002000h PRMG 000258h Multiplication rate 1 Outp 0x0006h 0x00h Outp 0x0007h 0x01h Outp 0x0006h 0 81 Send command data to the G9004 and it will process it one command at a time similar to a CPU to control the PCD4541 Write an R1 register FL select command to the command address Operation command to send to the G9004 0100h Data 81h FL select command Outp 0x0007h 0x00h Note1 Outp 0x0006h Oxc3h Outp 0x0007h 0x21h Outp 0x0006h 0x00h Outp 0x0007h 0x10h Outp 0x0006h 0x00h Outp 0x0007h 0x00h Note1 Outp 0x0006h 0x00h Outp 0x0007h 0x01h Outp 0x0006h 0x82h Outp 0x0007h 0x00h ejep puewwoy Outp 0x0006h Oxc3h Outp 0x0007h Ox21h Outp 0x0006h 0x00h Outp 0x0007h 0x20h Outp 0x0006h 0x00h Outp 0x0007h 0x00h Outp 0x0006h 0x00h Outp 0x0007h 0x01h Outp 0x0006h 0x84h Outp 0x0007h 0x00h Outp 0x0006h Oxc3h Outp 0x0007h 0x21h Outp 0x0006h 0x00h Outp 0x0007h 0x02h Outp 0x0006h 0x58h Outp 0x0007h 0x00h Outp 0x0006h 0x00h Outp 0x0007h 0x01h Outp 0x0006h Ox11h Write the data at the a
53. inal By being wire OR ed with the output enable signal from this I O device the device outputs enable signal to SOEH or SOEL When not used connect to the GND SI Serial input signal for communication Positive logic MRER This is a monitor output to check communication quality When the center device receives an error frame such as a CRC error the signal becomes L only for 128 cycles 3 2 us of the CLK By measuring the condition using the counter you can check communication quality MSEL Communication status monitor output When the I O device receives a frame intended for this device and everything is normal when communication MRER is OFF this terminal goes LOW for exactly 128 CLK cycles 3 2 us This can be used to check the cyclic communication time BRK By providing HIGH pulses that are longer than the specified interval the I O device will be made to wait for a break frame When the I O device receives a break frame send request from a central device it immediately sends a break frame A pulse at least 3200 usec long is needed in order to be seen as the BRK input pulse positive logic MOD Selects the operating mode for this IC MOD L Message communication mode MOD CPU emulation mode LCKO to 1 Selects the clock frequency LCLK for controlling a local bus LCK1 LCK 0 The clock frequency LCLK L L 2 MHz L H 4 MHz H L 10 MHz H H 20 MHz When this
54. ing it goes HIGH Make sure that this terminal is HIGH and then you can access the LSI This terminal cannot be used in the CPU emulation mode LAO to LA5 Address signals for the local bus These will be either input or output terminals depending on the mode selected In the CPU emulation mode the device outputs address signals from terminals LAO to LA5 In the message communication mode input address signals on LAO and LA1 Pull LA2 to 5 down to GND 5 10Kohm resistors LCS This is a chip select signal for the local bus It will be either an input or output terminal depending on the mode selected In the CPU emulation mode this device outputs a chip select signal for an external circuit In the message communication mode you supply a chip select signal that will be used to access this LSI LWR This terminal is used for a write signal for a local bus It will be either an input or output terminal depending on the mode selected In the CPU emulation mode this terminal outputs a write signal for external circuit In the message communication mode you supply a write signal in order to access this LSI LRD This terminal is used for a read signal for a local bus It will be either an input or output terminal depending on the mode selected In the CPU emulation mode this terminal outputs a read signal for an external circuit In the message communication mode you supply a read signal in order to access this LSI
55. ing a 16 bit CPU interface 1 LA x Address X Next address 2d a EE an AEN un uc LD Data Data lt gt Interval time 11 5 32 CKSL Selects the clock specifications for the input on the CLK terminal When CKSL L supply a 40 MHz clock signal on the CLK terminal The duty cycle should be approximately 5096 If the duty cycle is too far away from 5095 the number of communication faults will increase When CKSL H the device uses the CLK signal input after dividing by 2 internally Therefore the duty cycle will not have such a great influence In this case supply an 80 MHz clock signal 5 33 VDD GND Supply 3 3 VDC 10 for power on the VDD terminal Make sure to use all the terminals 12 6 Status information and setting operation information for the G9004 During the I O communication cycle and during data communication the status register information registers 0 to 2 is written to the port data area ports 0 to 2 that corresponds to the device address in the central device When the operating information is written to the port data area port 3 that corresponds to the central device s device address it is passed along to the CPU emulation device G9004 using the I O communication cycle Status 0 Interrupt information Port 0 gt 7 6 5 4 3 21 0 1 Local interrupt request result of ORing bits1 to 3 1 Local receive process complete interrupt CP
56. let us know 4 We are not responsible for any results that occur from using this LSI regardless of item 3 above MOVIL EEE 1 2 1 3 General 5 1 3 1 Communication system 1 3 2 Specifications of the CPU emulation device 9004 1 4 Hardware 3 4 1 A list of terminals 80 3 4 2 Terminal assignment drawings 5 4 3 Entire block diagram sssssssssssssssesssseeeeeeennnnnnnn nennen 6 5 Functions of terminals rete eta en ta et opt ee eee 7 PD EU RR 7 ee Ur ere ine errno EE T oe MA DM M 7 E E RR E RM ED 7 b ADNSMASc SR locales inca Mot DM M LM M DM Meet NER MH SNL E 7 en ter eee ea eto AUN b A eee 8 5 6 SPDO SPBTz AW nappe eit evi eb 8 bs UD ut tena tutto 8 5 8 MB p n RD dU Ad dus 8 d dtt n t ti pong
57. m CPU emulation using the G9004 write the commands and data using the formats specified for the data transmission FIFO in the central device G9001 The center device s data transmission FIFO can store up to 128 words including write commands write data and read commands When writing data there is no data to be sent from the G9004 But when reading data the G9004 will send a read command and then read data from the center device Therefore more than 128 words of data cannot be handled by the G9004 hen writing data When reading data Combined case Central device data Central device data Central device data transmission FIFO transmission FIFO transmission FIFO Address Upper Lower Address Upper Lower Address Upper Lower 00h pui 00h Command reading 00h writing 01h Writing data 1 01h Command reading 01h Writing data 1 02h Writing data 2 02h Command reading 02h Writing data 2 O3h Command reading 04h Command writing 05h Writing data If the G9004 is set up to use an 8 bit CPU interface the following precautions should be noted When the central device G9001 uses a 16 bit interface An even number of data bytes must always be written However if the number of bytes that the G9004 requests is odd the last byte will be thrown away the final write operation will not be executed Instead
58. m a terminal 1 CPU emulation mode In this mode the G9004 emulates CPU terminal signals using data communicated from the center device G9001 Although the communication format from the central device is limited this LSI outputs signals identical to those from CPU terminals Therefore it can control various 515 that are normally connected to a CPU 2 Message communication mode One word 16 bits is reserved by the system in this mode which is used for communication the data commands and formats are specified The user can use the remaining 127 words to communicate data The format for the message data is not specified which means that this LSI can communicate freely with almost any CPU that is connected to the central device and to this LSI 2 Features Compatible with our Motionnet Can control various CPU support LSIs using data communications Amaximum of 256 bytes of data can be communicated in one sentence Amaximum of 64 devices can be connected using one line t has a safety design using a communication failure detection circuit contains a watchdog timer Powered from just 3 3 VDC 3 General specifications 3 1 Communication system specifications Item Description Reference clock 40 MHz or 80 MHz Communication speed 2 5 M 5 M 10 M or 20 Mbps Communication sign NRZ sign Communication protocol NPM original method Communication method Half duplex communicatio
59. n Communication I F RS 485 or pulse transfer Connection method Multi drop connection Number of local devices 64 devices max Cyclic communication cycle when 20 Mbps When using 8 local devices IN 128 points OUT 128 points 0 12 msec When using 16 local devices IN 256 points OUT 256 points 0 24 msec When using 32 local devices IN 512 points OUT 512 points 0 49 msec When using 64 local devices IN 1024 points OUT 1024 points 0 97 msec Note The communication cycle will be extended dependant upon data communication 3 2 Specifications of the CPU emulation device G9004 Item Description CPU emulation mode Communication sentence length 1 to 128 words frame 1 word 16 bits Data buffer size 128 words M RM When communicating 5 words write to one register in the Data communication time PCL 21 7 us Data transfer method Status Cyclic transfer Data Transient transfer Control address space 64 bytes CPU interface 8 bit I F Z80 6809 etc 16 bit I F 8086 H8 68000 etc Message communication mode Communication sentence length 1 to 128 words frame 1 word 16 bits Data buffer size 128 words 1 word reserved for the system 127 words Message data Data communication time When communicating 128 words 169 3 us Data transfer system Status Cyclic transfer Data communic
60. n LA LRD LWRQ LD Data np CPU automatically waits for the required period of time 41 9 3 Connection to peripheral LSIs when the CPU emulation mode is selected 9 3 1 Connections to a PCL6045B 8086 type CPU emulation The PCL6045B is a pulse train generating LSI for NPM s motion control network One PCL6045B can generate pulse trains for four axes G9004 8086 type emulation CPU PCL6045B 5V VDD Decoding CLK LIFT LCs circuit BH LIFO Note 2 Note 1 MOD LA1 to LA4 GND LIRQ Eoo O p DO to D15 RST System reset mm Note 1 The G9004 can be connected to two PCL6045Bs In this case the LA5 signal is used to tell the two chips apart This line is the equivalent of a decoder circuit When only one device is connected to the G9004 there is no need to provide a decoder circuit The LCS output terminal on the G9004 can be connected to the CS terminal on the PCL6045B Note 2 The LCLK clock output on the CPU emulation device G9004 cannot be connected to the CLK input clock input on the PCL6045B The LCLK output is 3 3 V but the PCL6045B are 5V devices and their CLK inputs use CMOS levels Vin 4 V min 1 V max They cannot be connected directly to 3 3V devices Also the PCL6045B needs a 19 6608 MHz clock If itis connected to some other clock speed such as a 20 MHz clock it may complicate setting the multiplication
61. nal LOW time Twat Note 1 6Tak 11 ns Data output delay time for LRD Trolo 40pF 29 ns Data output delay time for LWRQ T C 40pF 16 ns Data float delay time for LRD 7 Troup CL 40pF 30 ns LWR signal width Twr Note2 12 ns Data setup time for LWR 7 Towr 22 ns Data hold time for LWR 7 0 ns Note1 When CKSL LOW CKSL HIGH the data output delay time will be 12 11 Note 2 The time that the WRQ signal is output will be the interval after WRQ goes HIGH until WR goes HIGH 58 11 5 2 8 bit I F 2 IF1 H IFO L Read cycle LD Z 0 Write cycle Tcvc LRD E LA 1 0 LCS LWRQ LWQ LD 7 0 Item Symbol Condition Min Max Unit Enable cycle time 100 ns Enable pulse width TewE 40 ns Address setup time for LRD E 7 17 ns Address hold time for LRD E 4 0 ns R W setup time for LRD E 7 5 ns R W hold time for LRD E 4 TERw 5 ns LCS setup time for LRD E 7 Tose 5 ns LCS hold time for LRD E 4 Tecs 0 ns LWRQ ON delay time for LCS 4 Tecswr CL 40pF 12 ns LWRQ signal LOW time Twat Note 1 6 11 ns Data output delay time for LRD E t Teno CL 40pF 19 ns Data output delay time for L WRQ 7 40pF 6 ns Data float delay time for LRD E
62. ods for entering a device address Select the input method using the DNSM terminal 5 4 DNSM Select the input method for loading the device address 1 When the DNSM H Input numeric values 0 to 3Fh with negative logic using DIP SW etc for DNO to DN5 terminals 2 When the DNSM L Input a DASO signal that is output by some other chip on the DNO terminal on this device When using this input method this chip has an address equal to the other chip s address plus one When using this method connect terminals DN1 to DN5 to GND When two sequential sets of serial data match the data is taken to be a device address 5 5 DNSO The numeric equivalent of the address on DNO to DN5 1 will be output after being converted into a serial bit stream Connect this output to another local device s DNO terminal make all the other DNSM terminals of that local device LOW so that other devices can get the address and pass it along to the next data sending device 5 6 SPDO SPD1 Specify communication speed with these terminals All of the devices on the communication line shall be set to the same speed SPD1 SPDO Communication speed L L 2 5 Mbps L H 5 Mbps H L 10 Mbps H H 20 Mbps 5 7 TUD A watchdog timer is included on the chip to assist in administration of the communication status When the data transmission interval from a central device to this device exceeds the set time the watchdog timer time
63. ol a PCL6045A B through a G9004 The PCL6045A B is a pulse train generating LSI for NPM s motion control network Set the CPU I F to 8086 mode IFO L IF1 H One PCL6045A B can generate pulse trains for four axes In the example below use the device address of 28h for the G9004 Registers to set in the PCL6045A B Register name Set value Remark PRFL 00000100h PRFH 00000200h PRMG 012Bh Multiplication rate 1 Send command data to the G9004 It will process one by one and controls the PCL6045A B Instruction to write data to the PCL6045A B buffer Outpw 0x0006h 0x0100h Instruction to write the data in the I O buffer of the PCL6045 Outpw 0x0006h 0x0081h to the PRFL register Outpw 0x0006h 0x1184h 3 i Outpw 0x0006h 0x0200h Instruction to write data to the PCL6045A B buffer Outpw 0x0006h 0x0000h Instruction to write the data in the I O buffer of the PCL6045 Outpw 0x0006h 0x0 100 to the PRFH register Outpw 0x0006h 0x0082h Outpw 0x0006h 0x1184h 3 Outpw 0x0006h Ox012Bh Instruction to write data to the PCL6045A B buffer Outpw 0x0006h 0x0000h Instruction to write the data in the I O buffer of the Outpw 0x0006h 0x0100h Outpw 0x0006h Ox0085h PCL6045A B to PRMG register Outpw 0x0006h 0x0100h Instruction to the PCL6045A B to start feeding a pulse train Outpw 0x0006h 0x0051h at FH speed Data communication command send the command data st
64. ored in the FIFO Outpw 0x0000h 0x4028h This step checks the read status EDTE flag If a communication error occurs the next process should not be started This action Dev Sts Inpw 0x0000h also can be performed using the interrupt procedure If there is no error the PCL6045A B will begin operation In this step it is not clear if the PCL6045A B is operating or not Outpw 0x0006h 0x1184h Outpw 0x0006h 0x0100h Outpw 0x0006h 0x0000h puewwoy G9004 status bit 0 in this case equivalent to port 0 becomes OR signal of bit 1 local side completes receipt process to bit 3 This action also can be performed using the interrupt procedure triggered by the input change interrupt function When the G9004 completes all the processes specified this bit becomes 1 In other words this will mean that the PCL6045A B has definitely started operation if there is no problem with the command data 52 Outpw 0x0006h 0x0400h Outpw 0x0000h 0x4028h Dev Sts Inpw 0x0000h Put a reset instruction command for the local receive processing complete flag in the FIFO Write a data communication command send the command data written in the FIFO When CEND H the local device flag has been reset 53 10 1 2 Control example of PCD4541 Below shows a program example that lets a central device G9001 control a PCD4541 through a G9004 In this example the central device 69001 commun
65. s out This terminal is used to set output conditions when the watchdog timer times out When TUD HIGH The LSI keeps its current status When the TUD LOW The LSI is Reset 5 8 TMD Specify the time for the watchdog timer The watchdog timer is used to administer the communication status When the interval between data packets sent from a central device is longer than the specified interval the watchdog timer times out the timer restarts its count at the end of each data packet received from a central device The time out may occur because of a problem on the communication circuit such as disconnection or simply because the central device has stopped communicating The time used by the watchdog timer varies with communication speed selected Watchdog timer setting 20 Mbps 10 Mbps 5 Mbps 2 5 Mbps L 5 ms 10 ms 20 ms 40 ms H 20 ms 40 ms 80 ms 160 ms 5 9 TOUT Once the watchdog timer has timed out this terminal goes LOW 5 10 SO Serial output signal for communication Positive logic tri state output 5 11 SOEH SOEL Output enable signal for communication Difference between SOEH and SOEL is that only the logic is different When sending signals SOEH will become H and SOEL will become L 5 12 5 13 5 14 5 15 5 16 5 17 5 18 5 19 SOEI When using more than one I O device connect the SOEH signal of the other I O device to this term
66. s shown below If you want to place the central device in the middle of the line use two communication lines so that the central device is effectively at the end of each line Central device SIB SIA ES soL Js 5 m o 3 2 3 x Local device r 3 z SI a SO 5 8 le If needed construct the 2 S same configuration on this side J WJOJSULI Terminating resistors are needed at the ends of the line Insert them either before or after the pulse transformer to get OUI the same effect Terminating resistors are not needed anywhere except for the ends of the line j HB By J WJOJSULI OUT Local device rm g 8 SI 2 8 kK SO 3 3 SOEH lt 47 9 7 Recommended environment Shown below are the results of our experimental communication results and the environment used for the experiment These results can be used to design your own system However other system configurations are possible The example below is only for your reference Conditions Results Transmission Number o Cable Terminating Pulse Max local I F chip rate devi used resistor transformer length evices 20 Mbps 32 CAT5 100 ohm 1000 uH RS485 100m 20 Mbps 64 CATS 100 ohm 1000 uH RS485 50 m 10 Mbps 64 CAT6 100 ohm 1000 uH RS485 100 m Note In the figures above the maximum length figures
67. ss CPUs that have a wait function can be connected to the LWRQ terminal on the G9004 so that they can be used without special concern for signal timing However CPUS without a wait function must monitor the LIFB output or use one of the following timing schemes this is essential 9 2 2 Write to command or data transfer FIFO The timing for writing to command address 0 in the 8 bit I O mode 1 or the data transfer FIFO address 2 in the 8 bit I O mode 1 is shown below A wait time is necessary to perform continuous writing The wait must be 6 clock cycles or longer at 40 MHz 1 Does not use the LWRQ output CPU does not have a wait function LA Next address LCS Tr a e w LD am wait of 6 clock cycles or longer at 40 MHz must be inserted by the CPU software 2 Uses the LWRQ output CPU has a wait function LA ees Mo wa ub LD The CPU automatically waits for the required period of time 40 9 2 3 Read status Shown below is the timing when reading from address 0 in the 8 bit I O mode 1 A wait time is necessary to perform continuous writing The wait must be 4 clock cycles or longer at 40 MHz 1 Does not use the LWRQ output CPU does not have a wait function LA LRD N LD Cia 0 Ci gt i A wait of 4 clock cycles or longer at 40 MHz must be inserted by the CPU 2 Uses the LWRQ output CPU has a wait functio
68. ta communication command 4008h Interrupt occurs 12 The central device reads the status V Data communication complete bit 0 1 gt End emulation communication OT 8 2 2 4 Example of combined processing 16 bit CPU interface After writing 1234h to address 0 read addresses 4 and 6 With a communication wait time Center device G9001 Local device G9004 Start 1 Place a command 0100h in the data transmission FIFO 2 Place data 1234h in the data transmission FIFO 3 Place a command 1284h in the data Data transmission FIFO Address Upper Lower 00h 01h 00h 01h 12h 34h 02h 12h 84h transmission FIFO 4 Write a data communication command kk KKK kK kkk kk kkk kk Data communication 1 st time 1 Write 1234h to address O Wait time Y 2 Place a Data transmission FIFO command Address Upper Lower 1284h in the 00h 12h 84h data 01h EEh FFh transmission 02h DDh CCh FIFO 3 Read from address 4 FFEEh and write it to the data transmission FIFO 4 Read from address 6 DDCCh and write it to the data transmission FIFO 5 Set the status for port 0 interrupt information V Receive process complete interrupt Bit 121 Write request Bit 0 1 gt 6 Send the contents of the data transmission FIFO to the central device
69. tion 14 Port 0 Port 1 Port 2 Port 3 Status data Operation data Data reception FIFO Data transmission FIFO Data transmission FIFO 7 Message communication mode MOD LOW Configuration block diagram Control bus Serial communication Central Control bus ae E 39001 P M G9004 Local CPU 7 1 Terminals for use by a local CPU Terminal name LIFO Description Local bus interface mode 0 LIF1 Local bus interface mode 1 LRST Negative Resets the local bus LAO to1 Positive Address for local bus lines 0 to 1 LA2 to 5 Positive Pull down to GND 5 10Kohm resistors LCS Negative Chip select for the local bus LWR Negative Write signal for the local bus LRD Negative Read signal for the local bus LWRQ Negative Wait request for the local bus LIFB Negative Interface busy for the local bus LIRQ Negative Interrupt request for the local bus LDO to 7 Positive Low byte signal for the local bus LD8 to 15 Positive 7 2 I O map for the local CPU High byte signal for the local bus 16 bit interface 1 and 2 8086 H8 and 68000 LIF1 1 Writing Reading Write command Read status Write transmission data Read reception data 8 bit I f 1 and 2 280 680
70. to tell a CPU to wait the CPU has to use its own resources to time the waiting period Another method for accessing the PCD4541 is to have the central device G9001 execute a number of NOP commands to allow the required time to pass However using the local bus access interval will reduce the burden on the software The waiting time of 500 ns was determined from the values specified in the PCD4541 user s manual 43 9 4 Connections to a serial communication line Use RS 485 line transceivers and pulse transformers 1000 OH or equivalent to make serial communication connections Connect the line transceivers as shown below Connect terminating resistors which match the cable impedance at both ends of the transmission line The terminating resistors can be either before or after the pulse transformer The same effect will be obtained at either position When using a 5 V line transceiver ICs such as a level shifter are needed to assert signals on lines such as SO SOEH and SI 1 Circuit example for a single local device Device number VDD Line transceiver Local device 8 3 V Note 3 Terminating Pulse transformer resistor Serial line DNO to DN5 DNSM Note 1 Make the wiring as straight and short as possible circuit on a circuit board GND 44 2 Circuit example for multiple local devices Using the connections shown below the address of the loc
71. transceivers are used level shifters are needed to make the connections 48 9 7 5 Parts used in our experiments Show below is a list of the parts used in the interface circuits of our experiments Use of other parts may change the system s response This list is only for your reference Parts Manufacturer Model name CAT5 Oki Wire Co Ltd F DTI C5 SLA CAT6 Oki Wire Co Ltd DTI C6X Pulse transformer JBC Co Ltd DP101 102F Line transceiver TEXAS INSTRUMENTS SN75LBC180AP Level shifter TEXAS INSTRUMENTS SN74LVC244ADB 9 7 6 Other precautions Cables When you are planning long distance transmission cable quality will be the single most important factor Specialized cables designed for use as field busses such as those by CC Link and LONWORKS have guaranteed quality and may be easier to use Pulse transformers Needless to say the pulse transformers should handle 20 Mbps 10 MHz without becoming saturated The transformer s inductance is also important Since up to 64 pulse transformers may be connected the actual working specifications of these devices must be very similar We used 1000 uH pulse transformers However in order to obtain better response characteristics you may want to try pulse transformers with a larger reactance Line transceivers We used TEXAS Instruments chips for the experiments Other possibilities are available from MAXIM and LINEAR TECHNOLOGY who offer
72. very high performance transceivers Connectors If possible the connectors should match the cable characteristics Although we did not use them modular type connecters will be better for LAN cables Cable connections Do not connect one cable to another cable using connectors etc In a multi drop system the number of cables increases as the number of local devices increase However connecting a cable just to extend the line should be avoided Processing of excess cable Excess cable left over after making all the runs should be eliminated Unneeded cable length may restrict the line overall usable length and may introduce electrical noise Circuit board substrate Create circuits on a substrate with 4 or more layers to prevent the introduction of noise Estimating cable length in the system design phase In the first estimate use shorter line lengths In the actual system configuration lines may be lengthened Estimates made using the maximum length may lead to impossible communication distances Minimum cable length Each cable must be at least 60 cm long Although this may seem contradictory to the excess cable precaution this minimum length is necessary 49 Using different cables in one system Do not mix cables from different manufacturers even when they are in the same category Different cable models from the same manufacturer should not be used either Using different cables together may deteriorat
73. when turning ON OFF the power Make sure you consider the input timing when power is applied Be careful not to introduce external noise into the LSI Hold the unused input terminals to 3 3 V or GND level Do not short circuit the outputs Protect the LSI from inductive pulses caused by electrical sources that generate large voltage surges and take appropriate precautions against static electricity 4 Provide external circuit protection components so that overvoltages caused by noise voltage surges or static electricity are not fed to the LSI 13 2 Precautions for transporting and storing 515 1 Always handle 1515 carefully and keep them in their packages Throwing or dropping LSIs may damage them 2 Do not store LSIs in a location exposed to water droplets or direct sunlight 3 Do not store the LSI in a location where corrosive gases are present or in excessively dusty environments 4 Store the LSls in an anti static storage container and make sure that no physical load is placed on the LSls 68 13 3 Precautions for mounting 1 Plastic packages absorb moisture easily Even if they are stored indoors they will absorb moisture as time passes Putting the packages in to a solder reflow furnace while they contain moisture may cause cracks in plastic case or deteriorate the bonding between the plastic case and the frame The storage warranty period is one year as long as the moisture barrier bags are not opened 2
Download Pdf Manuals
Related Search
Related Contents
USER MANUAL Hyundai H-CDM8019 Car Stereo System User Manual BEDIENUNGSANLEITUNG PUK3_basic deutsch GS 62501 SOLAR SLIM Solar Scale OPERATING INSTRUCTIONS File DMX-LED-LEISTE Samsung YP-T7X User Manual le 12 oct GSM GPRS Modem 900 / 1800 Value Added Feature USER MANUAL Copyright © All rights reserved.
Failed to retrieve file