Home

PICPLC16 Manual - MikroElektronika

image

Contents

1. VARISTOR OPTIONAL WO Working contact on 0 NWO Non working contact on ReleyO W1 Working contact on Reley1 NW1 Non working contact on Reley1 gt ZOA O CN19 CN20 page MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD 22 zar DIRECT PORT ACCESS All microcontroller input output pins can be accessed via connectors placed along the right hand side of the board For each of the ports RA E RB RC and RD there is one 10 pin connector providing Vdd GND and up to eight port pins These connectors can be used for system expansion with external boards such as Compact Flash CAN serial GLCD etc Ensure that the on board peripherials are diconnected from microcontroller by setting the appropriate jumpers while exter nal peripherals are using the same pins The connectors can also be used for attach ing logic probes or other test equipment Direct port access connectors PORT ACCESS DIRECT PICPLC Users Manual Cass sai TOOLS J6 O O 3 Pull up line is y i J Tes connected RP2 5 RBO 2 Ec Pull down line All lines is connected are disconnected DIRECI PORI ACCESS XE 0 lt x HEADER 5x2 Port B connection to microcontroller page MIKROELEKTRONIKA SOFTWARE AND HARDWARE
2. AN T 5 2 t it il p 4 gt P Z4 ix S Pts ad T iy AS kJ E E E MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD LO PICPLC 3 PICPLC I6 Users Manual TOOLS POWER SUPPLY SUPERVISOR amp RESET CIRCUIT In the industrial enviorment it is very important to have reliable device that will continue working on every posible condition The most important component on every electronic device is a stabile power supply but in the harsh enviorment there can be some deviance from nominal values Power supply supervisor monitor power supply level and restart the microcontroller if the level is to low or to high Reset button is also connected to power supply supervisor which generates reset signal when button is pressed Figure 9 Power supply supervisor schematic VCC o o R66 R63 R65 10K 100 10K mmm s RESIN SENSE CT RESET RESET OUT to MCU TL7705 O C26 100nF R64 C28 E27 10K 100nF 10uF o RESET BUTTON POWER SUPPLY SUPERVISOR amp RESET CIRCUIT o SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD PICPLC 16 11 ON BOARD USB PROGRAMMER There is no need for the use of external equipment during programming as the PICPLC16 development system has its own on board USB programmer All y
3. Figure 3 a mm All lines are disconneced Om Jumper as a multiplexer i Left line is selected o Right line is selected SOCKET The PICPLC16 development board support a 40 pin microcontrollers in DIP40 package as shown on the following picture U PICPLC g SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD MCU SOCKET PICPLC Users Manual TOOLS The microcontroller s pins are routed to various peripherials as illustrated Figure 5 ports have direct connections to Direct Port Access connectors Such connec tors are typically used for connecting external peripherials to the board or for pro viding useful points for connecting digital logic probes Some of the pins are connected to other peripherials such as optocouplers RS 232 communication RS 485 communication etc MCU CARD Figure 5 System connection Port Input optocouplers connector Bove pis e x DX DX DX La DX DX MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD PICPLC 3 POWER SUPPLY PICPLC16 have three kind of power supply MCU power supply reley power sup ply and optocoupler power supply The MCU power supply can be AC or DC with a voltage between 8V and 16V The reley power supply can be with a voltage between 12V and
4. 15 or DC with voltage between 15V and 18V Optocoupler power supply is 12V DC In Figure 6 and Figure 7 you can see power supply connectors Figure 6 MCU reley and optocoupler power supply connectors GND MCU power supply two pins on the right 7 10V ade of the connector 15V GND Reley power supply V DC E n on the GND output Side of the connector External reley power supply connector Figure 7 Reley power supply can be internal or gt _ external In case of external power sup ply 12V DC must be connected to two pins on the left side of the connector which is placed on the lower right side of the development board Selection is made with jumper J9 as shown on the next page Optocoupler power supply all four pins on the connector are inputs for 12V DC 12 DC POWER SUPPLY PICPLC Users Manual Cass sai TOOLS Power supply schematic CN3 Reley power supply Optocoupler power 12V 12V internal 12V external CN2 _ OCVCC s NH output D33 E 144007 X 12 15 AC 15 18 DC E 012 r1 Vin GND O O O U12ext E5 8 c9 C10 E13 16 VCC REL 470uF 100nF 100nF 470uF Relay power 12V 07 Rd MCU power 5V 9V AC DC vcc x 4 Vin 5 GND 2 E1 4 C7 C8 E9 12 470uF 100 100nF 470uF _ POWER SUPPLY i J p
5. C 16 PICPLC Users Manual ns a aie gummi CONNECTING THE SYSTEM The development system box contains a development system CD USB cable and serial cable Step no 1 The first thing to do is to take the system out of a box Unpack the USB cable and connect it to the PC Please use USB ports from the back of the PC with direct con tact to the motherboard Step no 2 Connect MCU power supply to the PICPLCI6 board Step no 3 Connect the USB cable to the PICPLC16 board Step no 4 The PC will start the procedure for installing the USB driver for the on board USB 2 0 programmer Follow the procedure from the document nstalling Driver for USB programmer and install the USB driver Step no 5 Copy PICFLASH2 exe file to the folder of your choice You can find this file in the PICFLASH folder on the CD CONNECTING THE SYSTEM Step no 6 Run and use PICFLASH2 as explained in the document PICflash programmer After these 6 steps your PICPLC16 is installed and ready for use You should try to read a program from the chip or to load an example from the examples folder MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD pusei PICPLC 3 INTRODUCTION The PICPLC16 development system is a industrial development board for Microchip PIC microcontrollers It allows PIC microcontrollers to be interfaced with external circuits and a broad range of peripheral devices allowing the user to concentrate
6. ED WORLD Er 18 PICPLC 16 PICPLC I6 Users Manual TOOLS OPTOCOUPLERS PICPLC16 have 16 optocouplered inputs It is widely used in industrial applications where inputs must be galvanized electrically isolated from the rest of the develop ment board All that is done to protect microcontroller from electrical pulses that might occur on input lines Optocouplers and their connectors OPTOCOUPLERS In order to be electricaly isolated from the rest of the board input circuit must have it s own power supply 12V DC Optocoupler chip have two LED s on the input and two open collector transistors on the output pins First 8 optocoupler outputs are connected to microcontroller s RA E port and second 8 outputs are conected to microcontroller s RC port Ports RA E and RC must be on high level eg they must be pulled up by putting jumpers J5 and J7 on upper position PICPLC Users Manual TOOLS POSSIBLE INPUT FOR OPTOCOUPLERS CN3 Optocoupler power 12V ocvcc OPIOCOUPLERS R15 OCVCC 330 OC1 B D6 1 4148 LL al iat O OCVCC R17 HCPL2630 330 Pull up line is connected Before button is When button is P i pressed level is pressed level is high inactive state low active state RPACK8 9 Figure 25 Optocouplers schematic page MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDD
7. ED WORLD pusei 20 PICPLC 3 PICPLC I6 Users Manual TOOLS RELEYS In order to control devices that operates on high voltage and or current PICPLC16 have 16 releys connected to microcontroller ports RB and RD Because releys have higher operating voltage and higher current consumption they have separated power supply 12V DC It can be internal when connected together with MCU power sup ply or external You select one of these two power supplies by setting jumper J9 in appropriate position RELEYS Releys and their connectors Microcontroller s ports RB and RD can t provide necessary current for direct driv ing of releys so they are connected to ULN2804 Darlington drivers Ports RB and RD must be on low level eg pulled down so the releys are switched on when micro controller puts logical one on their outputs Each reley have one LED indicator con nected parallel to him so it shows when reley is switched on There are three con tacts on reley s output working contact non working contact and common contact Common contacts of every four releys are also provided on development board con nectors Optionaly you can add varistor to development board depending on reley s working voltage and current it is connected between working and common con tacts PICPLC Users Manual TOOLS Releys schematic RELEYS Pull down line is connected WORKING CONTACT
8. S 232 communication enables point to point data transfer It is commonly used in data acquisition applications for the transfer of data between the microcontroller and a PC Since the voltage levels of a microcontroller and PC are not directly com patible with each other a level transition buffer such as the MAX232 must be used RS 232 connector Rx RS 232 connector two pins on the right side PICPLC16 development board have one RS 232 communication device In order to provide a more flexible system the microcontroller is connected to the MAX232 through two jumpers Jumper J13 and J14 are used to connect Rx and Tx lines from microcontroller to RS 232 port RS 232 jumpers Figure 15 Ze cui RS 232 Rx and Tx jumpers page PICPLC 6 Users Manual TOOLS RS 232 Schematic and connection to the PC CN2 VCC output 2 D m B y RS 232 Disabled RS 232 Enabled Serial Cable RS 232 COMMUNICATION RS 232 jumpers and MAX232 chip PICPLC IG Users Manual TOOLS RS 485 COMMUNICATION RS 485 communication enables point to point and point to multipoint data trans fer Itis commonly used for data transfer between several microcontrollers LTC485 interface tranciever is used for transforming signal from microcontroller s Rx and Tx lines to differential signal on A and B output l
9. SEQUENTIAL DAMAGES INCLUDING DAMAGES FOR LOSS OF PROFITS LOSS OF BUSINESS LOSS OF USE OR DATA INTERRUP TION OF BUSINESS AND THE LIKE EVEN IF MIKROELEKTRONIKA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES ARISING FROM ANY DEFECT OR ERROR IN THIS MANUAL OR PRODUCT SPECIFICATION AND INFORMATION CONTAINED IN THIS MANUAL ARE FUR NISHED FOR INTERNATIONAL USE ONLY AND ARE SUBJECT TO CHANGE AT ANY TIME WITHOUT NOTICE AND SHOULD BE CONSTRUED AS A COMMIT MENT BY MIKROELEKTRONIKA MikroElektronika assumes no responsibility or liability for any errors or inaccuracies that may appear in this manual including the product and software described in it Product and corporate names appearing in this manual may or may not be regis tered trademarks or copyrights of their respective companies and are used only for identification or explanation and to the owners benefit without intent to infringe PICPLC I6 Users Manual TOOLS Uf L CONTENTS CONNECTING THE SYSTEM page 4 INTRODUCTION page 5 CJ DESCRIPTION OF THE DEVELOPMENT SYSTEM page 6 Jumpers page 6 MCU socket page 7 Power Supply page 9 Power Supply Supervisor amp Reset circuit page 11 On board USB programmer page 12 RS 232 Communication page 14 RS 485 Communication page 16 PS 2 Keyboard connector page 18 Optocouplers page 19 Releys page 21 Direct port access page 23 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD PICPL
10. SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD PICPLC I6 User s Manual MikroElektronika Development tools Books Compilers with on board U S PICPLC16 is a system designed for controlling industrial systems 2 O programmer and machines 16 inputs with optocouplers and 16 relays up to 10A can satisfy many industrial needs PICPLC16 can serve as remote control system by means of RS 485 communication Software and Hardware solutions for Embedded World PICPLC I6 Users Manual TOOLS First edition November 2005 No part of this manual including the product and software described in it may be reproduced transmitted transcribed stored in a retrieval system or translated into any language in any form or by any means except documentation kept buy the pur chaser for backup purposes without the express written permission of MikroElektronika company Product warranty or service will not be extended if the product is repaired modified or altered unless such repair modification or alteration is authorized in writing by MikroElektronika MIKROELEKTRONIKA PROVIDE THIS MANUAL AS IS WITHOUT WARRANTY OF ANY KIND EITHER EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PUROSE IN NO EVENT SHALL MIKROELEKTRONIKA ITS DIRECTORS OFFICERS EMPLOYEES OR DISTRIBUTORS BE LIABLE FOR ANY INDIRECT SPECIAL INCIDENTAL OR CON
11. SOLUTIONS FOR THE EMBEDDED WORLD 24 PICPLC 3 MIKROELEKTRONIKA PICPLC 6 Users Manual you are experiencing problems with any of our products or you just want additional information please let us know We are committed to meet every your need Technical Support support mikroe com TER If you have any other question comment or a business proposal please contact us E mail office mikroe com Web www mikroe com
12. ines RS 485 connector RS 485 COMMUNICATION RS 485 connector two pins on the left side PICPLC16 development board have one RS 485 communication device In order to provide a more flexible system the microcontroller is connected to the LTC485 through three jumpers Jumper J10 J11 and J12 are used to connect Rx Rt and Tx lines from microcontroller to RS 485 port RS 485 jumpers Figure 19 RS 485 Rx Rt and Tx jumpers page PICPLC I6 Users Manual TOOLS Figure 20 RS 485 schematic and connection to other RS 485 modules RS 485 Disabled RS 485 Enabled VCCO LTC485 RS 485 COMMUNICATION PICPLC Users Manual ns a aie gummi PS 2 KEYBOARD CONNECTOR Keyboards consist of a large matrix of keys all of which are monitored by an on board processor called the keyboard encoder The specific processor varies from keyboard to keyboard but they all basically do the same thing Monitor which key s are being pressed released and send the appropriate data to the MCU This processor takes care of all the debouncing and buffers any data in its 16 byte buffer if needed All communication between the host and the keyboard uses an IBM pro tocol PS 2 Keyboard connector PS 2 KEYBOARD CONNECTOR PS 2 Keyboard schematic page MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDD
13. on software development Figure 1 illustrates the development board a silkscreen there are identification marks beside each component These marks describe connections to the microcon troller operation modes and provide some useful notes The need for additional schematics is minimized as all the information 15 printed on the board Figure 1 PICPLC16 development board LC OE 1 0 8 e pr Im c pnmo 065 7 064 20C3 062 g SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD INTRODUCTION MIKROELEKTRONIKA PICPLC 6 User s Manual DEVELOPMENT TOOLS JUMPERS Jumpers can break or establish a connection between two points Beneath the plas tic cover of the jumper is a metal contact which makes a connection when the jumper is placed between two disconnected pins For example J14 is used to connect or disconnect Tx line for RS 232 Communica tion Connection is made when the jumper is placed between two contacts UMPERS Figure 2 Jumper is ON fo 03 Jumper as a switch 5 0 oo More often jumpers are used as a selector between two possible connections using a three pin connector As illustrated in Fig 3 middle connector can be connected to the left or right pin depending on the jumper s position
14. ou need to do is connect MCU power supply to development board connect the system to a PC using the USB cable and enable Development MODE by set ting jumpers J1 J2 J3 and J4 to the left side position Then load your program into the microcontroller via the P Cflash2 programming software which is supplied with the board h On Board USB programmer Figure 12 By enabling or disabing Development MODE you connect or disconnect the pro grammer from the rest of the board That is very important when working in indus trial enviorment where application of PICPLC16 can include high voltages and or currents and do possible damage to programmer the programmer 1 secured by dis abling Development MODE ON BOARD USB PROGRAMMER page 1 2 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD PICPLC 6 Users Manual TOOLS Figure 13 On Board USB programmer schematic m CN9 Development MODE ENABLED DISABLED 1 USB LINK JSN pJeog uo vec BUTTON 100n Heos ON BOARD USB PROGRAMMER TO DEVELOPMENT BOARD PERIPHERALS Supply Voltage supervisor PICPLC 6 Users Manual Bevevonwent TOOLS Z lt Z ES O NI NI Y RS 232 COMMUNICATION R

Download Pdf Manuals

image

Related Search

Related Contents

iM504J  RU FOAMCAR ROJO - Quimicenindustria.es  Al&Rtour Sebastien Brant 2013  Samsung Samsung GT-S5350 Lietotāja rokasgrāmata  HMC-T2100B - Analog Devices  Solo Pro 180 3D 日本語版マニュアル  File  ACTi D32 surveillance camera  EasyScope II for DS1M12 Help  Samsung SM-T560 Bruksanvisning  

Copyright © All rights reserved.
Failed to retrieve file