62
CY3274 Cypress High Voltage Programmable PLC Development Kit Guide, Doc. # 001-53598 Rev. *G
Code Examples
5.2.4
Hardware Setup
Follow the steps below to setup the board as shown in
Figure 5-8. Hardware Setup for the CY3274
1. Connect a jumper wire from SW (on J18) to P0[1].
2. Connect a second jumper wire from P0[4] to one of the 8 DIP switches on J12 (the 8 DIP switch
array on S3 is connected to J12).
3. Connect a third jumper wire from P0[7] to another DIP switch.
On device reset, P0[4] input decides the logical address of the PLC node (kit), and P0[7] input
decides whether the PLC node(kit) acts as transmitter or receiver. Pressing a switch connected to
P0[1] is used to start/halt/restart transmission on the transmitter node, where as it used to reset
the received packet count in the receiver node.
4. Do the above connections on the second kit as well.
5. Put the 2 DIP switches (on S3) in one kit to a different position compared to the corresponding
DIP switch on the other kit, so that one kit acts as transmitter and the other as receiver, and each
have different logical addresses.
6. Connect the power cable from the AC mains to the AC power connector on the first CY3274 kit.
The blue LED turns on. Repeat the same for the second CY3274 kit.
7. Push the reset button S2 on both nodes. A message “PLC_Demo” initially appears on the LCD.
8. Subsequest LCD message on one kit indicates the kit is a transmitter. Subsequent LCD message
on the other kit indicates the kit is a receiver.