OLIMEX PIC-P40-USB User Manual

Page 1
PIC-P40-USB development boar d
User's Manual
Rev.B, July 2013
Copyright(c) 2007, OLIMEX Ltd, All rights reserved
Page 2
INTRODUCTION:
PIC-P40-USB have FT232 USB-to-RS232 converter IC on board.
The power is taken from the USB so no need for external power supply adapter. Note that when you plug your USB cable there is process of USB enumeration and the power supply to PIC is supplied only when USB host successfully enumerate your PIC-P40-USB so power to PIC come with 1-2 seconds delay
The on-board ICSP connector allow you to program the PIC on the board without pulling it of the socket, by ICSP programmer like PIC-MCP, PIC-MCP-USB, PIC-PG1, PIC-PG2, PIC-PG3, PIC-PG4 or to program and debug it with PIC-ICD2, PIC-ICD2-POCKET or PIC­ICD2-TINY. IMPORTANT: all programmers provide power supply through ICSP
connector during the programming PIC-P40-USB should not be connected to USB. Of course PIC-ICD2 have option to not power the target circuit and this option should be used when you debug your application while connected to USB.
The oscillator circuit is made with 20 Mhz crystal oscillator, so you can run your PIC at maximum performance.
Page 3
The RESET circuit is made with simple RC circuit. Note that RESET button should not be pressed while you program or debug the PIC!
PIC-P40-USB have user button for user input connected to PIC microcontroller’s RE2 port. When RE2 port is initialized as INPUT you will read “0” when the button is pressed and “1” when it is depressed.
Status LED is connected via jumper to PIC microcontroller’s RE1 port. When your RE1 port is initialized as OUTPUT and set to “0” LED will go ON, when RE1 port is set to “1” LED will go OFF.
PIC-P40-USB have handy GND pin for connection to oscilloscope.
All modem signals from FT232 are provided and could be used.
PIC-P40-USB have socket for I2C EEPROM which are connected to RC4-SDA and RC3­SCL
On the schematic you will see PGM_SEL jumper, this is necessary because some PICs use RB3 for ICSP-PGM signal others RB5, this is done by smd jumper on the back side of the board which is soldered in position RB3 by default (PIC18F877 which is used for the demo code), if your PIC use RB5 you should connect this jumper properly.
Page 4
FEATURES:
Note that:
1) There is a GND line at the bottom row of pins of the board (under button BUT).
2) There is a +5V line at the bottom row of pins of the board (above the quartz crystal)
ICSP/ICD connector for programming and debuggingFT232 USB-to-RS232 converter DIL40 microcontroller socket DIL8 EEPROM socketQuartz crystal 20Mhz LED to RE1 through jumper user Button to RE2Reset button and circuitUSB type B connectorExtension slot on every uC pin Gird 100 mils GND bus Vcc bus Four mounting holes 3,3 mm (0,13") FR-4, 1.5 mm (0,062"), green soldermask, white silkscreen component print Dimensions 100x80 mm (3,9x3,15")
Page 5
HARDWARE:
Page 6
SOFTWARE:
The software might be downloaded from the device's web page.
DEMO1: PIC16F877-I/P BLINK LED
This is demo code which blinks the LED on PIC-P40-USB board.
Note:LED jumper should be closed!
DEMO2: PIC16F877-I/P BUTTON read
This is demo code which show how to read BUTTON status and to switch the LED ON when button is pressed and LED off when the button is depressed.
DEMO3: PIC16F877-I/P RS232 send / receive routines
This is demo code, which show how to use the USART to send and receive characters from host PC via USB cable.
You must program the HEX code to PIC16F877 and run the code.
If you programmed the PIC correctly when you plug USB cable on your computer will appear “virtual” COM port. When you open Hyperterminal on your host PC computer with 9600 bps, 8 data bit, 1 stop bit, No flow control the PIC-P40-USB every character you type on the hyperterminal will be printed back with “*” i.e. if you type “abc” you will receive “a*b*c*”.
DEMO4: PIC16F877-I/P EEPROM read / write routines
This is demo code, which show how to use the EEPROM to read and write data. Note: you must put 24LC16 EEPROM in the DIL8 socket.
Page 7
ORDER CODE:
PIC-P40-USB – assembled and tested (no kit, no soldering required) PIC-P40-USB/PCB – blank PCBs only
How to order? You can order to us directly or by any of our distributors. Check our web https://www.olimex.com for more info.
Revision history:
REV.A – June 2007
REV.B – July 2013 – added new schematic and updated the manual with current links and more information
Page 8
Disclaimer:
© 2007 Olimex Ltd. All rights reserved. Olimex®, logo and combinations thereof, are registered trademarks of Olimex Ltd. Other terms and product names may be trademarks of others.
The information in this document is provided in connection with Olimex products. No license, express or implied or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Olimex products.
Neither the whole nor any part of the information contained in or the product described in this document may be adapted or reproduced in any material from except with the prior written permission of the copyright holder.
The product described in this document is subject to continuous development and improvements. All particulars of the product and its use contained in this document are given by OLIMEX in good faith. However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded.
This document is intended only to assist the reader in the use of the product. OLIMEX Ltd. shall not be liable for any loss or damage arising from the use of any information in this document or any error or omission in such information or any incorrect use of the product.
Page 9
Mouser Electronics
Authorized Distributor
Click to View Pricing, Inventory, Delivery & Lifecycle Information:
Olimex Ltd.: PIC-P40-USB
Loading...