Target Board PIC877-TB - Reference Manual

Size: px
Start display at page:

Download "Target Board PIC877-TB - Reference Manual"

Transcription

1 Target Board PIC877-TB - Reference Manual

2 Target Board PIC877-TB Reference Manual Feedback Feedback Instruments Ltd, Park Road, Crowborough, E. Sussex, TN6 2QR, UK. Telephone: +44 (0) , Fax: +44 (0) website: Manual: Ed Printed in England by Fl Ltd, Crowborough Feedback Part No

3 Notes

4 Preface THE HEALTH AND SAFETY AT WORK ACT 1974 We are required under the Health and Safety at Work Act 1974, to make available to users of this equipment certain information regarding its safe use. The equipment, when used in normal or prescribed applications within the parameters set for its mechanical and electrical performance, should not cause any danger or hazard to health or safety if normal engineering practices are observed and they are used in accordance with the instructions supplied. If, in specific cases, circumstances exist in which a potential hazard may be brought about by careless or improper use, these will be pointed out and the necessary precautions emphasised. While we provide the fullest possible user information relating to the proper use of this equipment, if there is any doubt whatsoever about any aspect, the user should contact the Product Safety Officer at Feedback Instruments Limited, Crowborough. This equipment should not be used by inexperienced users unless they are under supervision. We are required by European Directives to indicate on our equipment panels certain areas and warnings that require attention by the user. These have been indicated in the specified way by yellow labels with black printing, the meaning of any labels that may be fixed to the instrument are shown below: CAUTION - RISK OF DANGER Refer to accompanying documents CAUTION - RISK OF ELECTRIC SHOCK CAUTION - ELECTROSTATIC SENSITIVE DEVICE PRODUCT IMPROVEMENTS We maintain a policy of continuous product improvement by incorporating the latest developments and components into our equipment, even up to the time of dispatch. All major changes are incorporated into up-dated editions of our manuals and this manual was believed to be correct at the time of printing. However, some product changes which do not affect the instructional capability of the equipment, may not be included until it is necessary to incorporate other significant changes. COMPONENT REPLACEMENT Where components are of a Safety Critical nature, i.e. all components involved with the supply or carrying of voltages at supply potential or higher, these must be replaced with components of equal international safety approval in order to maintain full equipment safety. In order to maintain compliance with international directives, all replacement components should be identical to those originally supplied. Any component may be ordered direct from Feedback or its agents by quoting the following information: 1. Equipment type 2. Component value 3. Component reference 4. Equipment serial number Components can often be replaced by alternatives available locally, however we cannot therefore guarantee continued performance either to published specification or compliance with international standards i

5 Preface DECLARATION CONCERNING ELECTROMAGNETIC COMPATIBILITY Should this equipment be used outside the classroom, laboratory study area or similar such place for which it is designed and sold then Feedback Instruments Ltd hereby states that conformity with the protection requirements of the European Community Electromagnetic Compatibility Directive (89/336/EEC) may be invalidated and could lead to prosecution. This equipment, when operated in accordance with the supplied documentation, does not cause electromagnetic disturbance outside its immediate electromagnetic environment. COPYRIGHT NOTICE Feedback Instruments Limited All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, without the prior permission of Feedback Instruments Limited. ACKNOWLEDGEMENTS Feedback Instruments Ltd acknowledge all trademarks. IBM, IBM - PC are registered trademarks of International Business Machines. MICROSOFT, WINDOWS 98, WINDOWS 95, WINDOWS 3.1 are registered trademarks of Microsoft Corporation. MPLAB and PIC are registered trademarks of Microchip Technology Inc ii

6 Preface COPYRIGHT NOTICE GnB 1995, All Rights Reserved Copyright of the PIC 877 Target Board (PIC 877-TB), its associated software and documentation belongs to GnB and may not be used, sold, licensed, transferred, copied or reproduced in any manner or form other than with written permission of GnB. Purchase of this product entitles the purchaser to use the software on a single machine but does not constitute ownership of the software. Unauthorised copying, lending, or redistribution of the software or documentation in any manner constitutes breach of copyright. Software piracy is theft. DISCLAIMER No warranties of any kind are made with respect to the contents of this software package, nor its fitness for any particular purpose. Neither GnB or any associates or subcontractors shall be liable for errors in the software or documentation, or for any direct, indirect or consequential damages or financial losses arising from the use of the package. TRADEMARKS PIC is a registered trademark of the Microchip Technology Inc. USA iii

7 Preface Notes iv

8 Contents TABLE OF CONTENTS 1 Introduction Getting Started Installing Software Connecting the System Starting the System The Screen Explained Read Details Read Options Read Range Configuration Programming Details The Menus File Menu Load Exit Program Menu Program Program Data Config Erase Program Erase Data Erase All Read Menu Comms TOC-1

9 Contents 2.10 Control Switches Tutorial I/O Connectors Way Connector P Way Connector P Serial I/O Pinout Way Connector P Connector P Board Layout Circuit Diagrams 6-1 Appendix A Data Sheet A-1 TOC

10 Chapter 1 Introduction 1 Introduction The 877-TB (target board) enables the user to program the PIC16F877 microcontroller via a serial port on a PC and then run the program at the flick of a switch without the need to remove the device. The 877-TB is constructed on a high quality double-sided through plated printed circuit board and is powered from a single rail power supply. The board holds all circuitry necessary to program and run programs developed of the PIC16F877 microcontroller. Onboard LED s indicate the current operation (Running a program, Loading a program or Idle) that is controlled using two switches: A pushbutton to start and stop programs (reset or not reset). A slide-switch to switch between programming and operation mode. The 877-TB has a variety of connectors fitted that allow the user to connect their own applications. All available I/O lines are assessable via screw terminals located around the perimeter of the PCB. Each terminal is identified on the PCB and is designated with its respective pin on the PIC16F877. Three IDC connectors are also provided and allow the unit to be connected to a number of application boards. Four switches are also fitted on the board that allow logic 0 and 1 to be set to inputs RC0, RE0, RE1 and RE2 on the 16F877. The power supply requirement is + 6V to +15V unregulated dc at 1A maximum. When purchased as a Microcontroller trainer a suitable PSU is included in the package. Microchips website provides a vast amount of information on the 16F877 microcontroller, including manuals, application notes and data sheets. The crossassembler and MPLAB (an integrated development system for the full range of microcontrollers) can be freely downloaded

11 Chapter 1 Introduction 1.1 Getting Started You should have the following: 877-TB unit. PSU (included in Micro trainer package only). Serial Lead. Disk with communication software. Manual. 1.2 Installing Software The communications software consists of a single executable file. Programs are developed using Microchips assembler and are loaded to the 877-TB using the communications software via the serial link (com1 to com4). Place the distribution disk supplied into drive A, start windows explorer and select the drive you wish the copy the communications software to (usually Drive C). Then create a new folder by selecting File New Folder: Figure 1-1 A new folder will appear in the explorer window: Figure 1-2 Right-click the folder and select Rename from the menu. Enter the name you wish to give the folder (877TB)

12 Chapter 1 Introduction Now select drive A and click the 877TB executable file, select copy from the edit menu then enter the new folder (877TB) by double clicking it. Finally select past from the edit menu. The programming software will then be copied from the distribution disk. In order to place a shortcut on the desktop right-click the application file and select Create Shortcut form the menu. A shortcut will appear in the same folder, select it and drag it to the desktop. 1.3 Connecting the System The unit can be connected to serial ports 1 to 4 on any IBM compatible PC running Microsoft Windows 95 or above or Windows NT 4.0 or above. Connect the unit to the serial port, make sure the PRG/RUN switch id in the PRG position, THEN apply the power (the PWR LED will light). PS U 877TB Figure Starting the System The system can now be started from the desktop by double clicking the shortcut on the

13 Chapter 1 Introduction desktop. The application will look on each available serial port and try to detect the unit see Figure 1-4. Figure 1-4 Once the target board has been detected, the onboard 877TB can be programmed, erased and reprogrammed. The Status Bar at the bottom of the window indicates which serial port is being used if the board was detected. If the board could not be detected a Device NOT Found message is indicated on the Status Bar and a number of the menu items (such as program etc) will not be available

14 Chapter 2 The Screen Explained 2 The Screen Explained The screen shown in Figure 1-4 is to some extent self-explanatory. The window is divided into three sections and a pull-down menu: Read Details. Configuration. Programming Details 2.1 Read Details Figure Read Options These radio buttons select which areas of the 877TB will be read into the PC memory. Prog. Memory Prog. and Configuration Prog. Memory + Data All Reads program memory only. Reads program memory and the device configuration. Reads program memory and data memory. Reads program memory, data memory and device configuration

15 Chapter 2 The Screen Explained 2.2 Read Range All operations on the 877TB are performed serially onboard. This is a relatively slow process. Sometimes only a small section of the memory is of interest. In order to cut down the read times the user can choose to read a selected range of program memory. This is achieved using the Read Range sections. Full Range Selected Range Reads all program memory range from 0000 to 1FFFh. Read the program memory range specified in the Read Range section. 2.3 Configuration Figure 2-2 The 877TB has a number of configuration options. Some options cannot be changed here because the device is attached to the PCB and therefore parameters such as oscillator frequency are not selectable. Those parameters that can be selected by the user are done so within the configuration section. WRT CPD Code Protect WDTE This enables/disables flash program memory writes. Switches data EE memory code protection on or off. Selects the level of code protection. Enables/disables the watch dog timer

16 Chapter 2 The Screen Explained 2.4 Programming Details This is very similar to the Read Details section. The difference is that the device is programmed instead of being read. Figure The Menus All operations on the system are performed using pull down menus. There are four main menus: File Program Read Comms Figure File Menu The pull down file menu has only two items: Load Exit

17 Chapter 2 The Screen Explained Load Use load to load a binary program into the computer prior to programming. When load is selected the user is presented with a load dialogue screen, for example: Figure 2-5 The default file extension is HEX as produced by Microchips cross-assembler. When a file is loaded the program range is from the lowest address loaded to the highest address loaded. Of course this can be set by the user simply by clicking into the From and To boxes in the Programming Range box and entering a new value (in hex) Exit Selecting Exit closes the program

18 Chapter 2 The Screen Explained 2.7 Program Menu This menu header has six items: Figure Program This programs the device according to the selections in the Programming Options box. Either program memory only, program and configuration memory, program and data memory or all. A progress bar indicates programming progress Program Data This programs the 64 bytes of data memory in the 16F Config This programs the configuration word into the device as indicated in the Configuration section. (Note that some configuration options cannot be set by the user since the device is fixed onto the board and its circuitry)

19 Chapter 2 The Screen Explained Erase Program Selecting this causes the program memory only within the device to be erased Erase Data Selecting this option causes the data memory within the device to be erased Erase All This erases the whole device including the configuration, even if the protect bits are set to protect all. It is recommended that this operation is performed prior to programming the device. 2.8 Read Menu The Read menu contains five items: Figure Read Prog. This reads the program memory selected by the From and To values in the Read Details section. The Read Selected Range is set by default and the range can be set by clicking into the From and To boxes and entering the required values. Figure

20 Chapter 2 The Screen Explained The Read Options box controls which memory is read. Only the program memory is read if the Prog. Memory radio button is selected, the program memory and configuration is read if the Prog. and Configuration is selected, the program and data memory is read if the Prog. Memory + Data radio button is selected and program, data and configuration is read if the All radio button is selected Read Data This reads the 64 bytes of data memory only Read Config. This reads the current configuration of the device. The configuration section is set according to the configuration read and the configuration value (in hex) is displayed in the status bar Blank Check This checks that the program memory is blank. This operation can take some time since data must be read serially. The result is shown in the status bar Verify Verify reads the program memory and compares it to the data held in the PC (which will be data read from file or the device using the Read Prog. option), the result is shown in the status bar. 2.9 Comms There is only one item in the comms menu, which is Detect. Figure 2-9 This looks for the 877TB board on all available serial ports, if the system is found the com port used is displayed on the status bar otherwise a device not found message is displayed

21 Chapter 2 The Screen Explained 2.10 Control Switches The operation of the unit is controlled by two switches, slide switch S1 (PRG/RUN) and pushbutton S2 (START/STOP). To program the 16F877 via the software the PRG/RUN switch should be in the PRG position. To run the program, slide the PRG/RUN switch to the RUN position, now pressing the START/STOP switch toggles the reset line to the 16F877. The current state is indicated by the RUN (green) LED

22 Chapter 3 Tutorial 3 Tutorial This section is intended as a practical introduction to developing programs for the PICF877 microcontroller using the 877-TB development system. The program will simply toggle all the bits on port D on and off: Enter the following program using a text editor such and Microsoft Notepad or Edit (do not use a word processor) or use the program ex1.asm on the distribution disk. list p = 16f877 include <p16f877.inc> delay_vhi equ H'20' delay_hi equ H'21' delay_lo equ H'22' ORG goto ORG H'00' start H'10' ;initialise port to safe conditions start BCF STATUS, RP0 ; bank 0 CLRF PORTD ; Initialize PORTD by clearing output latches BSF STATUS, RP0 ; select bank1 movlw 0x00 ; w reg =00 movwf TRISD ; Set RB as outputs movlw 0xFF ; W reg = FF hex BCF STATUS, RP0 ; bank 0 ;************************** main movlw 0xFF ; bit pattern FF movwf PORTD ; output w reg to portb call delay clrf PORTD ; clear portb call delay goto main ;************************************ ;subroutines ;************************************ delay movlw 0x01 movwf delay_lo movlw 0xA1 movwf delay_hi movlw 0xF4 movwf delay_vhi outer mid inner incfsz delay_lo,1 goto inner incfsz goto mid delay_hi,

23 Chapter 3 Tutorial incfsz goto outer return END delay_vhi,1 Cross assemble the program to produce a HEX file using Microchips MPASM for widows which is included on the disk supplied (or other suitable cross assembler). On starting MPASM for windows the following screen will be displayed: Figure

24 Chapter 3 Tutorial Select the 16F877 processor and the file ex1.asm, then click the Assemble button. If all is well, the following screen will be displayed: Figure 3-2 Click the OK button and the window will close. Assuming that the system is connected and the PRG/RUN switch set to the PRG (program) position, start the 877-TB software by double clicking the icon on the desktop (the one that was created previously in the section on installing software). If all is well the software will detect the system and display the connected to port message in the status bar

25 Chapter 3 Tutorial Figure 3-3 Now select Load from the File menu and select the ex1.hex file just created. The program will be loaded into the PC ready for downloading. The Programming Range will be set to the appropriate values (the highest & lowest addresses used) and then select the Prog. and Configure radio button. Figure

26 Chapter 3 Tutorial In order to make sure the PIC16F877 is blank erase the device by selecting Erase All option from the Program menu, then select the Program option to program the device. The progress bar will be displayed indicating programming status and the PRG and RUN (red and green respectively) will light. When programming is complete the LED s will switch off and the screen should look as follows: Figure 3-5 Once programmed successfully, the system can be switched to the run mode by switching the PRG/RUN switch to the RUN position. Initially the PIC16F877 is in the reset condition (reset pin low). Pressing the START/STOP push button toggles the reset line, when the reset is inactive (program running) the RUN LED (green) lights. Use a suitable device (Logic Probe or oscilloscope) to monitor PORT D outputs or connect a suitable circuit, such as an array of LED s (with suitable current limiting resistors)

27 Chapter 3 Tutorial Notes

28 Chapter 3 I/O Connectors 4 I/O Connectors Way Connector P Function PIN No Function PIN No N/C 1 N/C 2 N/C 3 N/C 4 N/C 5 N/C 6 N/C 7 N/C 8 N/C 9 N/C 10 N/C 11 N/C Volts Volts 14 RA0 15 RE1 16 RA1 17 RE0 18 RA2 19 RA5 20 RA3 21 RA4 22 RD0 23 RD7 24 RD1 25 RD6 26 RD2 27 RD5 28 RD3 29 RD4 30 RB0 31 RB7 32 RB1 33 RB6 34 RB2 35 RB5 36 RB3 37 RB Volts 39 0 Volts

29 Chapter 3 I/O Connectors Way Connector P Function PIN No Function PIN No RA0 1 RA1 2 RA2 3 RA3 4 RA4 5 RA5 6 RE0 7 RE1 8 0 Volts 9 RD0 10 RD1 11 RD2 12 RD3 13 RD4 14 RD5 15 RD6 16 RD Volts 18 RB0 19 RB1 20 RB2 21 RB3 22 RB4 23 RB5 24 RB6 25 RB

30 Chapter 3 I/O Connectors 4.3 Serial I/O Pinout P2 D Type Socket Pin Function 1 N/C 2 RxD 3 TxD 4 DTR 5 GND 6 DSR 7 RTS 8 CTS 9 N/C

31 Chapter 3 I/O Connectors Way Connector P Function PIN No Function PIN No RA0 1 RA1 2 RA2 3 RA3 4 RA4 5 RA5 6 RE0 7 RE1 8 RE2 9 RC0 10 RC1 11 RC2 12 RC3 13 RC4 14 RC5 15 RB Volts 17 RB1 18 RB2 19 RB

32 Chapter 3 I/O Connectors 4.5 Connector P4 Pin 1 +5V Function 2 Ground 3 Ground 4 RC4/SDA 5 RC5/SAO

33 Chapter 3 I/O Connectors Notes

34 Chapter 4 Board Layout 5 Board Layout All available I/O lines are also connected to the screw terminal connectors TB1 to TB4 on the top and bottom edges of the PCB. Figure

35 Chapter 4 Board Layout Notes

36 Chapter 5 Circuit Diagrams 6 Circuit Diagrams The circuit diagrams are shown on the following two pages:

37 Chapter 5 Circuit Diagrams VCC P SERIAL PORT + C3 + C5 U1 4.7uF 4.7uF + C4 4.7uF V -10V T1out T2out R1in R2in Gnd +C 1 +10V -C 1 +C 2 -C 2 T1in T2in R1out R2out C6 4.7uF R14 1K U3 8 V+ 5 4 REF SHDN 7 LX MAX761 3 FB LBO 1 2 LBI 6 GND C10 0.1uF 10K R7 R8 10K + L1 44uH C12 44uF VCC + C11 44uF 12V D4 1N5817 Max232 R6 1K Q1 BC109 Q2 BC212L IC4 MCLR VCC + VCC R2 10K C7 10uF R3 10K R R U2 RA2 RA1 RA3 RA0 RA4 MCLR Vss RB0 RB1 RB2 OSC1 OSC2 Vdd RB7 RB6 RB5 RB3 RB4 PIC16F Y1 4MHz C8 33pF C9 33pF IC4 RB7 (PGD) IC4 RB6 (PGC) IC4 RC6 (TX) R5 330 D2 PROG R R11 10K Q3 BC109 R9 10K VCC R D3 RUN S1 IC4 RC7 (RX) S2 RUN RUN/PROG Figure 6-1 Circuit Diagram 1 of

38 1 TARGET BOARD PIC877-TB Chapter 5 Circuit Diagrams 9V 1 2 P1 + C1 100uF 3 REG1 LM317 VIN ADJ VOUT 2 + C2 100uF C13 0.1uF C14 0.1uF Vcc C15 0.1uF R1 330 D1 POWER IC4 16F C16 33pF XT2 CRYSTAL RE0 R15 10K S4 SW SPDT VCC 15 C17 RE2 R16 S6 33pF 10K SW SPDT V RE1 RC0 R17 10K R18 S5 SW SPDT S3 RC4/SDA RC5/SDO P PIN D IN 34 10K SW SPDT Figure 6-2: Circuit Diagram 2 of

39 Chapter 5 Circuit Diagrams Notes

40 Appendix A Data Sheet Data Sheet Pages 5 to 9 of PIC16F87X Data Sheet are provided in Appendix A. Note: The Microchip Technology website provides development tools relevant to the Target Board at: A-1

41 Appendix A Data Sheet Notes A

42 PIC16F87X 1.0 DEVICE OVERVIEW This document contains device-specific information. Additional information may be found in the PICmicro Mid-Range Reference Manual, (DS33023), which may be obtained from your local Microchip Sales Representative or downloaded from the Microchip website. The Reference Manual should be considered a complementary document to this data sheet, and is highly recommended reading for a better understanding of the device architecture and operation of the peripheral modules. There are four devices (PIC16F873, PIC16F874, PIC16F876 and PIC16F877) covered by this data sheet. The PIC16F876/873 devices come in 28-pin packages and the PIC16F877/874 devices come in 40- pin packages. The 28-pin devices do not have a Parallel Slave Port implemented. The following two figures are device block diagrams sorted by pin number; 28-pin for Figure 1-1 and 40-pin for Figure 1-2. The 28-pin and 40-pin pinouts are listed in Table 1-1 and Table 1-2, respectively. FIGURE 1-1: PIC16F873 AND PIC16F876 BLOCK DIAGRAM Device Program Bus OSC1/CLKIN OSC2/CLKOUT Program FLASH FLASH Program Memory 14 Instruction reg Instruction Decode & Control Timing Generation Data Memory 8 13 Program Counter 8 Level Stack (13-bit) Direct Addr 7 Power-up Timer Oscillator Start-up Timer Power-on Reset Watchdog Timer Brown-out Reset In-Circuit Debugger Low-Voltage Programming Data EEPROM PIC16F873 4K 192 Bytes 128 Bytes PIC16F876 8K 368 Bytes 256 Bytes Data Bus RAM File Registers RAM Addr (1) Addr MUX ALU W reg 8 FSR reg 8 Indirect Addr STATUS reg MUX PORTA PORTB PORTC RA0/AN0 RA1/AN1 RA2/AN2/VREF- RA3/AN3/VREF+ RA4/T0CKI RA5/AN4/SS RB0/INT RB1 RB2 RB3/PGM RB4 RB5 RB6/PGC RB7/PGD RC0/T1OSO/T1CKI RC1/T1OSI/CCP2 RC2/CCP1 RC3/SCK/SCL RC4/SDI/SDA RC5/SDO RC6/TX/CK RC7/RX/DT MCLR VDD, VSS Timer0 Timer1 Timer2 10-bit A/D Data EEPROM CCP1,2 Synchronous Serial Port USART Note 1: Higher order bits are from the STATUS register Microchip Technology Inc. DS30292B-page 5

43 PIC16F87X FIGURE 1-2: PIC16F874 AND PIC16F877 BLOCK DIAGRAM Device Program FLASH Data Memory Data EEPROM PIC16F874 4K 192 Bytes 128 Bytes PIC16F877 8K 368 Bytes 256 Bytes Program Bus OSC1/CLKIN OSC2/CLKOUT FLASH Program Memory 14 Instruction reg Instruction Decode & Control Timing Generation 8 13 Program Counter 8 Level Stack (13-bit) Direct Addr 7 Power-up Timer Oscillator Start-up Timer Power-on Reset Watchdog Timer Brown-out Reset Data Bus RAM File Registers RAM Addr (1) Addr MUX ALU W reg 8 FSR reg 8 Indirect Addr STATUS reg MUX PORTA PORTB PORTC PORTD RA0/AN0 RA1/AN1 RA2/AN2/VREF- RA3/AN3/VREF+ RA4/T0CKI RA5/AN4/SS RB0/INT RB1 RB2 RB3/PGM RB4 RB5 RB6/PGC RB7/PGD RC0/T1OSO/T1CKI RC1/T1OSI/CCP2 RC2/CCP1 RC3/SCK/SCL RC4/SDI/SDA RC5/SDO RC6/TX/CK RC7/RX/DT RD7/PSP7:RD0/PSP0 In-Circuit Debugger Low-Voltage Programming Parallel Slave Port PORTE RE0/AN5/RD MCLR VDD, VSS RE1/AN6/WR RE2/AN7/CS Timer0 Timer1 Timer2 10-bit A/D Data EEPROM CCP1,2 Synchronous Serial Port USART Note 1: Higher order bits are from the STATUS register. DS30292B-page Microchip Technology Inc.

44 PIC16F87X TABLE 1-1: PIC16F873 AND PIC16F876 PINOUT DESCRIPTION Pin Name DIP Pin# SOIC Pin# I/O/P Type Buffer Type Description OSC1/CLKIN 9 9 I ST/CMOS (3) Oscillator crystal input/external clock source input. OSC2/CLKOUT O Oscillator crystal output. Connects to crystal or resonator in crystal oscillator mode. In RC mode, the OSC2 pin outputs CLKOUT which has 1/4 the frequency of OSC1, and denotes the instruction cycle rate. MCLR/VPP/THV 1 1 I/P ST Master clear (reset) input or programming voltage input or high voltage test mode control. This pin is an active low reset to the device. PORTA is a bi-directional I/O port. RA0/AN0 2 2 I/O TTL RA0 can also be analog input0 RA1/AN1 3 3 I/O TTL RA1 can also be analog input1 RA2/AN2/VREF- 4 4 I/O TTL RA2 can also be analog input2 or negative analog reference voltage RA3/AN3/VREF+ 5 5 I/O TTL RA3 can also be analog input3 or positive analog reference voltage RA4/T0CKI 6 6 I/O ST RA4 can also be the clock input to the Timer0 module. Output is open drain type. RA5/SS/AN4 7 7 I/O TTL RA5 can also be analog input4 or the slave select for the synchronous serial port. PORTB is a bi-directional I/O port. PORTB can be software programmed for internal weak pull-up on all inputs. RB0/INT I/O TTL/ST (1) RB0 can also be the external interrupt pin. RB I/O TTL RB I/O TTL RB3/PGM I/O TTL RB3 can also be the low voltage programming input RB I/O TTL Interrupt on change pin. RB I/O TTL Interrupt on change pin. RB6/PGC I/O TTL/ST (2) Interrupt on change pin or In-Circuit Debugger pin. Serial programming clock. RB7/PGD I/O (2) TTL/ST Interrupt on change pin or In-Circuit Debugger pin. Serial programming data. PORTC is a bi-directional I/O port. RC0/T1OSO/T1CKI I/O ST RC0 can also be the Timer1 oscillator output or Timer1 clock input. RC1/T1OSI/CCP I/O ST RC1 can also be the Timer1 oscillator input or Capture2 input/ Compare2 output/pwm2 output. RC2/CCP I/O ST RC2 can also be the Capture1 input/compare1 output/pwm1 output. RC3/SCK/SCL I/O ST RC3 can also be the synchronous serial clock input/output for both SPI and I 2 C modes. RC4/SDI/SDA I/O ST RC4 can also be the SPI Data In (SPI mode) or data I/O (I 2 C mode). RC5/SDO I/O ST RC5 can also be the SPI Data Out (SPI mode). RC6/TX/CK I/O ST RC6 can also be the USART Asynchronous Transmit or Synchronous Clock. RC7/RX/DT I/O ST RC7 can also be the USART Asynchronous Receive or Synchronous Data. VSS 8, 19 8, 19 P Ground reference for logic and I/O pins. VDD P Positive supply for logic and I/O pins. Legend: I = input O = output I/O = input/output P = power = Not used TTL = TTL input ST = Schmitt Trigger input Note 1: This buffer is a Schmitt Trigger input when configured as the external interrupt. 2: This buffer is a Schmitt Trigger input when used in serial programming mode. 3: This buffer is a Schmitt Trigger input when configured in RC oscillator mode and a CMOS input otherwise Microchip Technology Inc. DS30292B-page 7

45 PIC16F87X TABLE 1-2: PIC16F874 AND PIC16F877 PINOUT DESCRIPTION Pin Name DIP Pin# PLCC Pin# QFP Pin# I/O/P Type Buffer Type Description OSC1/CLKIN I ST/CMOS (4) Oscillator crystal input/external clock source input. OSC2/CLKOUT O Oscillator crystal output. Connects to crystal or resonator in crystal oscillator mode. In RC mode, OSC2 pin outputs CLK- OUT which has 1/4 the frequency of OSC1, and denotes the instruction cycle rate. MCLR/VPP/THV I/P ST Master clear (reset) input or programming voltage input or high voltage test mode control. This pin is an active low reset to the device. PORTA is a bi-directional I/O port. RA0/AN I/O TTL RA0 can also be analog input0 RA1/AN I/O TTL RA1 can also be analog input1 RA2/AN2/VREF I/O TTL RA2 can also be analog input2 or negative analog reference voltage RA3/AN3/VREF I/O TTL RA3 can also be analog input3 or positive analog reference voltage RA4/T0CKI I/O ST RA4 can also be the clock input to the Timer0 timer/ counter. Output is open drain type. RA5/SS/AN I/O TTL RA5 can also be analog input4 or the slave select for the synchronous serial port. PORTB is a bi-directional I/O port. PORTB can be software programmed for internal weak pull-up on all inputs. RB0/INT I/O TTL/ST (1) RB0 can also be the external interrupt pin. RB I/O TTL RB I/O TTL RB3/PGM I/O TTL RB3 can also be the low voltage programming input RB I/O TTL Interrupt on change pin. RB I/O TTL Interrupt on change pin. RB6/PGC I/O TTL/ST (2) Interrupt on change pin or In-Circuit Debugger pin. Serial programming clock. RB7/PGD I/O (2) TTL/ST Interrupt on change pin or In-Circuit Debugger pin. Serial programming data. PORTC is a bi-directional I/O port. RC0/T1OSO/T1CKI I/O ST RC0 can also be the Timer1 oscillator output or a Timer1 clock input. RC1/T1OSI/CCP I/O ST RC1 can also be the Timer1 oscillator input or Capture2 input/compare2 output/pwm2 output. RC2/CCP I/O ST RC2 can also be the Capture1 input/compare1 output/ PWM1 output. RC3/SCK/SCL I/O ST RC3 can also be the synchronous serial clock input/output for both SPI and I 2 C modes. RC4/SDI/SDA I/O ST RC4 can also be the SPI Data In (SPI mode) or data I/O (I 2 C mode). RC5/SDO I/O ST RC5 can also be the SPI Data Out (SPI mode). RC6/TX/CK I/O ST RC6 can also be the USART Asynchronous Transmit or Synchronous Clock. RC7/RX/DT I/O ST RC7 can also be the USART Asynchronous Receive or Synchronous Data. Legend: I = input O = output I/O = input/output P = power = Not used TTL = TTL input ST = Schmitt Trigger input Note 1: This buffer is a Schmitt Trigger input when configured as an external interrupt. 2: This buffer is a Schmitt Trigger input when used in serial programming mode. 3: This buffer is a Schmitt Trigger input when configured as general purpose I/O and a TTL input when used in the Parallel Slave Port mode (for interfacing to a microprocessor bus). 4: This buffer is a Schmitt Trigger input when configured in RC oscillator mode and a CMOS input otherwise. DS30292B-page Microchip Technology Inc.

46 PIC16F87X TABLE 1-2: PIC16F874 AND PIC16F877 PINOUT DESCRIPTION (CONTINUED) Pin Name DIP Pin# PLCC Pin# QFP Pin# I/O/P Type Buffer Type RD0/PSP I/O ST/TTL (3) Description PORTD is a bi-directional I/O port or parallel slave port when interfacing to a microprocessor bus. RD1/PSP I/O ST/TTL (3) RD2/PSP I/O ST/TTL (3) RD3/PSP I/O ST/TTL (3) RD4/PSP I/O ST/TTL (3) RD5/PSP I/O ST/TTL (3) RD6/PSP I/O ST/TTL (3) RD7/PSP I/O ST/TTL (3) PORTE is a bi-directional I/O port. RE0/RD/AN I/O ST/TTL (3) RE0 can also be read control for the parallel slave port, or analog input5. RE1/WR/AN I/O (3) ST/TTL RE1 can also be write control for the parallel slave port, or analog input6. RE2/CS/AN I/O (3) ST/TTL RE2 can also be select control for the parallel slave port, or analog input7. VSS 12,31 13,34 6,29 P Ground reference for logic and I/O pins. VDD 11,32 12,35 7,28 P Positive supply for logic and I/O pins. NC 1,17,28, 40 12,13, 33,34 These pins are not internally connected. These pins should be left unconnected. Legend: I = input O = output I/O = input/output P = power = Not used TTL = TTL input ST = Schmitt Trigger input Note 1: This buffer is a Schmitt Trigger input when configured as an external interrupt. 2: This buffer is a Schmitt Trigger input when used in serial programming mode. 3: This buffer is a Schmitt Trigger input when configured as general purpose I/O and a TTL input when used in the Parallel Slave Port mode (for interfacing to a microprocessor bus). 4: This buffer is a Schmitt Trigger input when configured in RC oscillator mode and a CMOS input otherwise Microchip Technology Inc. DS30292B-page 9

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features: PIC16F7X 2/40-pin -Bit CMOS FLASH Microcontrollers Devices Included in this Data Sheet: PIC16F7 PIC16F74 PIC16F76 PIC16F77 Microcontroller Core Features: High-performance RISC CPU Only 5 single word instructions

More information

Outlines. PIC Programming in C and Assembly. Krerk Piromsopa, Ph.D. Department of Computer Engineering Chulalongkorn University

Outlines. PIC Programming in C and Assembly. Krerk Piromsopa, Ph.D. Department of Computer Engineering Chulalongkorn University PIC ming in C and Assembly Outlines Microprocessor vs. MicroController PIC in depth PIC ming Assembly ming Krerk Piromsopa, Ph.D. Department of Computer Engineering Chulalongkorn University Embedded C

More information

ĐẠI HỌC QUỐC GIA TP.HỒ CHÍ MINH TRƯỜNG ĐẠI HỌC BÁCH KHOA KHOA ĐIỆN-ĐIỆN TỬ BỘ MÔN KỸ THUẬT ĐIỆN TỬ. Embedded System Design

ĐẠI HỌC QUỐC GIA TP.HỒ CHÍ MINH TRƯỜNG ĐẠI HỌC BÁCH KHOA KHOA ĐIỆN-ĐIỆN TỬ BỘ MÔN KỸ THUẬT ĐIỆN TỬ. Embedded System Design ĐẠI HỌC QUỐC GIA TP.HỒ CHÍ MINH TRƯỜNG ĐẠI HỌC BÁCH KHOA KHOA ĐIỆN-ĐIỆN TỬ BỘ MÔN KỸ THUẬT ĐIỆN TỬ Embedded System Design Chapter 7: Peripherals for embedded systems 7.1 Digital parallel input / output

More information

PIC16F /40-Pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

PIC16F /40-Pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features: 28/40-Pin 8-Bit CMOS FLASH Microcontrollers Devices Included in this Data Sheet: PIC16F870 PIC16F871 Microcontroller Core Features: High-performance RISC CPU Only 35 single word instructions to learn All

More information

PIC-P40 development board Users Manual

PIC-P40 development board Users Manual PIC-P40 development board Users Manual All boards produced by Olimex are ROHS compliant Rev.E, February 008 Copyright(c) 008, OLIMEX Ltd, All rights reserved Page INTRODUCTION: PIC-P40 board is development

More information

Twin Rotor Mimo System

Twin Rotor Mimo System Twin Rotor Mimo System INSTALLATION AND COMMISSIONING 33-007-0M5 Feedback Feedback Instruments Ltd, Park Road, Crowborough, E. Sussex, TN6 2QR, UK. Telephone: +44 (0) 1892 653322, Fax: +44 (0) 1892 663719.

More information

Embedded System Design

Embedded System Design ĐẠI HỌC QUỐC GIA TP.HỒ CHÍ MINH TRƯỜNG ĐẠI HỌC BÁCH KHOA KHOA ĐIỆN-ĐIỆN TỬ BỘ MÔN KỸ THUẬT ĐIỆN TỬ Embedded System Design : Microcontroller 1. Introduction to PIC microcontroller 2. PIC16F84 3. PIC16F877

More information

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features: 28/40-pin 8-Bit CMOS FLASH Microcontrollers Devices Included in this Data Sheet: PIC16F873 PIC16F874 PIC16F876 PIC16F877 Microcontroller Core Features: High-performance RISC CPU Only 35 single word instructions

More information

PIC16F7X Data Sheet. 28/40-pin, 8-bit CMOS FLASH Microcontrollers Microchip Technology Inc. DS30325B

PIC16F7X Data Sheet. 28/40-pin, 8-bit CMOS FLASH Microcontrollers Microchip Technology Inc. DS30325B M PIC16F7X Data Sheet 28/40-pin, 8-bit CMOS FLASH Microcontrollers 2002 Microchip Technology Inc. DS30325B Note the following details of the code protection feature on PICmicro MCUs. The PICmicro family

More information

PIC18FXX2 Data Sheet. High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D Microchip Technology Inc. Advance Information DS39564A

PIC18FXX2 Data Sheet. High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D Microchip Technology Inc. Advance Information DS39564A Data Sheet High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D 2001 Microchip Technology Inc. Advance Information DS39564A te the following details of the code protection feature on PICmicro

More information

Lesson 14. Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27)

Lesson 14. Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27) Lesson 14 Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27) Name and affiliation of the author: N W K Jayatissa Department of Physics,

More information

PIC18FXX2 Data Sheet. High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D Microchip Technology Inc. DS39564B

PIC18FXX2 Data Sheet. High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D Microchip Technology Inc. DS39564B M PIC18FXX2 Data Sheet High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D 2002 Microchip Technology Inc. DS39564B te the following details of the code protection feature on PICmicro MCUs.

More information

Introduction. Embedded system functionality aspects. Processing. Storage. Communication. Transformation of data Implemented using processors

Introduction. Embedded system functionality aspects. Processing. Storage. Communication. Transformation of data Implemented using processors Input/Output 1 Introduction Embedded system functionality aspects Processing Transformation of data Implemented using processors Storage Retention of data Implemented using memory Communication Transfer

More information

PIC16F870/ /40-Pin, 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram. Microcontroller Core Features:

PIC16F870/ /40-Pin, 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram. Microcontroller Core Features: 28/40-Pin, 8-Bit CMOS FLASH Microcontrollers Devices Included in this Data Sheet: Pin Diagram PIC16F870 PIC16F871 PDIP Microcontroller Core Features: High performance RISC CPU Only 35 single word instructions

More information

which means that writing to a port implies that the port pins are first read, then this value is modified and then written to the port data latch.

which means that writing to a port implies that the port pins are first read, then this value is modified and then written to the port data latch. Introduction to microprocessors Feisal Mohammed 3rd January 2001 Additional features 1 Input/Output Ports One of the features that differentiates a microcontroller from a microprocessor is the presence

More information

Section 4. Architecture

Section 4. Architecture M Section 4. Architecture HIGHLIGHTS This section of the manual contains the following major topics: 4. Introduction...4-2 4.2 Clocking Scheme/Instruction Cycle...4-5 4.3 Instruction Flow/Pipelining...4-6

More information

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad Objectives To be familiar with microcontrollers, PIC18F4550 microcontroller. Tools PIC18F4550 Microcontroller, MPLAB software,

More information

DERTS Design Requirements (1): Microcontroller Architecture & Programming

DERTS Design Requirements (1): Microcontroller Architecture & Programming Lecture (5) DERTS Design Requirements (1): Microcontroller Architecture & Programming Prof. Kasim M. Al-Aubidy Philadelphia University 1 Lecture Outline: Features of microcomputers and microcontrollers.

More information

USB/DMX512 Con. Jean-Marc Lienher A PIC16C745. Out of spec!

USB/DMX512 Con. Jean-Marc Lienher A PIC16C745. Out of spec! USB/DMX Con HANDS-ON DMX Jean-Marc Lienher All amateur disc jockeys and light jockeys dream about it: a DMX converter not bigger than an XLR connector! But at a retail price of more than 00 pounds for

More information

AKKON USB CONTROLLER BOARD

AKKON USB CONTROLLER BOARD TN002 AKKON USB CONTROLLER BOARD USB Microcontroller board with the PIC18F4550 * Datasheet Authors: Gerhard Burger Version: 1.0 Last update: 20.01.2006 File: Attachments: no attachments Table of versions

More information

PIC Training System Manual Rev. 1-1

PIC Training System Manual Rev. 1-1 Introduction PIC Training System Manual Rev. 1-1 Department of Engineering Technology Electrical Engineering Technology Old Dominion University Norfolk, VA 23529 August 31, 2012 This is a revision (Rev1-1)

More information

Lecture (02) PIC16F84 (I)

Lecture (02) PIC16F84 (I) Lecture (02) PIC16F84 (I) By: Dr. Ahmed ElShafee ١ Review of Memory Technologies The PIC 16 Series PIC 16F84A The PIC 16F84A Memory The Oscillator Instruction Cycle Power up and Reset Parallel ports Technical

More information

Distributed by: www.jameco.com 1-800-831-4242 The content and copyrights of the attached material are the property of its owner. M PIC16F87XA Data Sheet 28/40-pin Enhanced FLASH Microcontrollers 2001 Microchip

More information

PIC16F8X. 8-Bit CMOS Flash/EEPROM Microcontrollers PIC16F8X PIC16CR8X. Pin Diagram. Devices Included in this Data Sheet:

PIC16F8X. 8-Bit CMOS Flash/EEPROM Microcontrollers PIC16F8X PIC16CR8X. Pin Diagram. Devices Included in this Data Sheet: This document was created with FrameMaker 404 PIC16F8X 8-Bit CMOS Flash/EEPROM Microcontrollers Devices Included in this Data Sheet: PIC16F83 PIC16CR83 PIC16F84 PIC16CR84 Extended voltage range devices

More information

Future PICmicro Microcontroller Products Guide 2000

Future PICmicro Microcontroller Products Guide 2000 Future PICmicro Microcontroller Products Guide 2000 2000 Microchip Technology Inc. DS00168C DATA SHEET MARKINGS Microchip uses various data sheet markings to designate each document phase as it relates

More information

F2MC MB90385 series Evaluation Board Documentation. Revision Date Comment V New document

F2MC MB90385 series Evaluation Board Documentation. Revision Date Comment V New document F2MC MB90385 series Evaluation Board Documentation Revision Date Comment V1.0 08.25.02 New document 1 Warranty and Disclaimer To the maximum extent permitted by applicable law, Fujitsu Microelectronics

More information

KPIC-0818P (V050919) Devices Included in this Data sheet: KPIC-0818P

KPIC-0818P (V050919) Devices Included in this Data sheet: KPIC-0818P Devices Included in this Data sheet: KPIC-0818P Features: Carefully designed prototyping area Accepts 8 pin PIC12 series micro-controllers Accepts 14 and 18 Pin PIC16 series Accepts some 8,14 and 18 pin

More information

EXPERIMENT 4: Parallel Input/Output. Objectives Introduction to the Parallel Input/Output (I/O) Familiarization to Interfacing

EXPERIMENT 4: Parallel Input/Output. Objectives Introduction to the Parallel Input/Output (I/O) Familiarization to Interfacing EXPERIMENT 4: Parallel Input/Output Objectives Introduction to the Parallel Input/Output (I/O) Familiarization to Interfacing Components' List: 1. Protoboard 2. 4 x pushbutton 3. 4 x 330Ω resistor 4. 4

More information

RFID: Read and Display V2010. Version 1.1. Sept Cytron Technologies Sdn. Bhd.

RFID: Read and Display V2010. Version 1.1. Sept Cytron Technologies Sdn. Bhd. PR8-B RFID: Read and Display V2010 Version 1.1 Sept 2010 Cytron Technologies Sdn. Bhd. Information contained in this publication regarding device applications and the like is intended through suggestion

More information

EL9800 Base Board. Version: 1.9 Date:

EL9800 Base Board. Version: 1.9 Date: EL9800 Base Board Version: 1.9 Date: 2007-07-25 Table of contents Table of contents 1 Foreword 2 1.1 Notes on the documentation 2 1.1.1 Liability conditions 2 1.1.2 Delivery conditions 2 1.1.3 Copyright

More information

Embedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester

Embedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester Embedded Systems PIC16F84A Internal Architecture Eng. Anis Nazer First Semester 2017-2018 Review Computer system basic components? CPU? Memory? I/O? buses? Instruction? Program? Instruction set? CISC,

More information

DEV-1 HamStack Development Board

DEV-1 HamStack Development Board Sierra Radio Systems DEV-1 HamStack Development Board Reference Manual Version 1.0 Contents Introduction Hardware Compiler overview Program structure Code examples Sample projects For more information,

More information

Embedded System Design

Embedded System Design ĐẠI HỌC QUỐC GIA TP.HỒ CHÍ MINH TRƯỜNG ĐẠI HỌC BÁCH KHOA KHOA ĐIỆN-ĐIỆN TỬ BỘ MÔN KỸ THUẬT ĐIỆN TỬ Embedded System Design : Hardware design for an embedded system 2. Design block diagrams 3. Design detail

More information

V23026 series Miniature, Sealed PC Board Relay

V23026 series Miniature, Sealed PC Board Relay Through-Hole or Surface Mount Features Surface and through-hole mounting types. 1 Form C contact arrangement. Latching or non-latching versions available. Switches loads from dry circuit to 1 amp. Washable

More information

BSCB-2 BASIC STAMP CARRIER BOARD

BSCB-2 BASIC STAMP CARRIER BOARD BSCB-2 BASIC STAMP CARRIER BOARD Technical Manual Document Revision: 1.04 Date: 06 August 2003 BiPOM Electronics, Inc. 16301 Blue Ridge Road, Missouri City, Texas 77489 Telephone: 1-713-283-9970 Fax: 1-281-416-2806

More information

Flow Charts and Assembler Programs

Flow Charts and Assembler Programs Flow Charts and Assembler Programs Flow Charts: A flow chart is a graphical way to display how a program works (i.e. the algorithm). The purpose of a flow chart is to make the program easier to understand.

More information

PIC Microcontroller Introduction

PIC Microcontroller Introduction PIC Microcontroller Introduction The real name of this microcontroller is PICmicro (Peripheral Interface Controller), but it is better known as PIC. Its first ancestor was designed in 1975 by General Instruments.

More information

PICmicro MCU Multiprogrammer EB Technical datasheet

PICmicro MCU Multiprogrammer EB Technical datasheet PICmicro MCU Multiprogrammer EB006-00-5 Technical datasheet Contents 1. About this document...2 2. General information...3 3. Board layout...5 4. Testing this product...6 5. Circuit description...9 6.

More information

ET-PIC 24 WEB-V1. o Central Processing Unit (CPU) o System. o nanowatt Power Managed Modes. o Analog Features

ET-PIC 24 WEB-V1. o Central Processing Unit (CPU) o System. o nanowatt Power Managed Modes. o Analog Features ET-PIC 24 WEB-V1 ET-PIC 24 WEB-V1 is PIC Board Microcontroller from Microchip that uses 16 Bit No.PIC24FJ128GA008 Microcontroller for processing data and develops board. The remarkable specification of

More information

Section 30. In-Circuit Serial Programming (ICSP )

Section 30. In-Circuit Serial Programming (ICSP ) Section 30. In-Circuit Serial Programming (ICSP ) HIGHLIGHTS This section of the manual contains the following major topics: 30. Introduction... 30-2 30.2 Entering In-Circuit Serial Programming Mode...

More information

PIC16F8X 18-pin Flash/EEPROM 8-Bit Microcontrollers

PIC16F8X 18-pin Flash/EEPROM 8-Bit Microcontrollers 18-pin Flash/EEPROM 8-Bit Microcontrollers Devices Included in this Data Sheet: PIC16F83 PIC16F84 PIC16CR83 PIC16CR84 Extended voltage range devices available (PIC16LF8X, PIC16LCR8X) High Performance RISC

More information

PIC18CXX2. High Performance Microcontrollers with 10-bit A/D. High Performance RISC CPU: Pin Diagrams PIC18C4X2. Analog Features: Peripheral Features:

PIC18CXX2. High Performance Microcontrollers with 10-bit A/D. High Performance RISC CPU: Pin Diagrams PIC18C4X2. Analog Features: Peripheral Features: High Performance Microcontrollers with 10-bit A/D High Performance RISC CPU: C compiler optimized architecture/instruction set - Source code compatible with the PIC16CXX instruction set Linear program

More information

ME 515 Mechatronics. A microprocessor

ME 515 Mechatronics. A microprocessor ME 515 Mechatronics Microcontroller Based Control of Mechanical Systems Asanga Ratnaweera Department of Faculty of Engineering University of Peradeniya Tel: 081239 (3627) Email: asangar@pdn.ac.lk A microprocessor

More information

Bolt 18F2550 System Hardware Manual

Bolt 18F2550 System Hardware Manual 1 Bolt 18F2550 System Hardware Manual Index : 1. Overview 2. Technical specifications 3. Definition of pins in 18F2550 4. Block diagram 5. FLASH memory Bootloader programmer 6. Digital ports 6.1 Leds and

More information

M PIC16F84A. 18-pinEnhanced FLASH/EEPROM 8-Bit Microcontroller. High Performance RISC CPU Features: Pin Diagrams. Peripheral Features:

M PIC16F84A. 18-pinEnhanced FLASH/EEPROM 8-Bit Microcontroller. High Performance RISC CPU Features: Pin Diagrams. Peripheral Features: M PIC6F84A 8-pinEnhanced FLASH/EEPROM 8-Bit Microcontroller High Performance RISC CPU Features: Pin Diagrams Only 35 single word instructions to learn All instructions single-cycle except for program branches

More information

Input/Output Ports and Interfacing

Input/Output Ports and Interfacing Input/Output Ports and Interfacing ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning Basic I/O Concepts Peripherals such as LEDs and keypads are essential

More information

PIC16C84. 8-bit CMOS EEPROM Microcontroller PIC16C84. Pin Diagram. High Performance RISC CPU Features: CMOS Technology: Peripheral Features:

PIC16C84. 8-bit CMOS EEPROM Microcontroller PIC16C84. Pin Diagram. High Performance RISC CPU Features: CMOS Technology: Peripheral Features: 8-bit CMOS EEPROM Microcontroller High Performance RISC CPU Features: Only 35 single word instructions to learn All instructions single cycle (400 ns @ 10 MHz) except for program branches which are two-cycle

More information

PIC18CXX2. High-Performance Microcontrollers with 10-Bit A/D * * High Performance RISC CPU: Pin Diagrams PIC18C4X2.

PIC18CXX2. High-Performance Microcontrollers with 10-Bit A/D * * High Performance RISC CPU: Pin Diagrams PIC18C4X2. High-Performance Microcontrollers with 10-Bit A/D * * * * High Performance RISC CPU: C-compiler optimized architecture/instruction set - Source code compatible with the PIC16CXX instruction set Linear

More information

1 Introduction to Computers and Computer Terminology Programs Memory Processor Data Sheet Example Application...

1 Introduction to Computers and Computer Terminology Programs Memory Processor Data Sheet Example Application... Overview of the PIC 16F648A Processor: Part 1 EE 361L Lab 2.1 Last update: August 19, 2011 Abstract: This report is the first of a three part series that discusses the features of the PIC 16F684A processor,

More information

PIC18CXX2 Data Sheet. High Performance Microcontrollers with 10-bit A/D Microchip Technology Inc. DS39026C

PIC18CXX2 Data Sheet. High Performance Microcontrollers with 10-bit A/D Microchip Technology Inc. DS39026C Data Sheet High Performance Microcontrollers with 10-bit A/D 2001 Microchip Technology Inc. DS39026C All rights reserved. Copyright 2001, Microchip Technology Incorporated, USA. Information contained in

More information

Modtronix Engineering Modular Electronic Solutions SBC28DC. Single board computer for 28 pin DIP PICs

Modtronix Engineering Modular Electronic Solutions SBC28DC. Single board computer for 28 pin DIP PICs Modtronix Engineering Modular Electronic Solutions Single board computer for 28 pin DIP PICs Table of Contents 1 Introduction...2 2 Features...4 3 Expansion Connectors...5 3.1 Daughter Board Connectors...5

More information

1. INTRODUCTION 1.1 PROJECT OBJECTIVE 1.2 PROBLEM STATEMENT

1. INTRODUCTION 1.1 PROJECT OBJECTIVE 1.2 PROBLEM STATEMENT 1. INTRODUCTION Human beings have invented/adopted technology to their needs since their existence. Main purpose of innovation in technology has been in simplifying life on earth and making work easier

More information

Hong Kong Institute of Vocational Education Digital Electronics & Microcontroller. 8. Microcontroller

Hong Kong Institute of Vocational Education Digital Electronics & Microcontroller. 8. Microcontroller 8. Microcontroller Textbook Programming Robot Controllers, Myke Predko, McGraw Hill. Reference PIC Robotics: A Beginner's Guide to Robotics Projects Using the PIC Micro, John Iovine, McGraw Hill. Embedded

More information

PVK40. User's manual. Feature Rich Development and Educational Kit for 40-pin Microchip PIC microcontrollers

PVK40. User's manual. Feature Rich Development and Educational Kit for 40-pin Microchip PIC microcontrollers PVK40 User's manual Feature Rich Development and Educational Kit for 40-pin Microchip PIC microcontrollers CONTENTS PVK40 3 On-board peripherals: 3 Power supply 4 Microcontroller 4 Reset circuitry 4 Oscilator

More information

3 in 1 ICD. EASYdsPIC4 User s Manual. MikroElektronika. Software and Hardware solutions for Embedded World

3 in 1 ICD. EASYdsPIC4 User s Manual. MikroElektronika. Software and Hardware solutions for Embedded World SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD - Books - Compilers EASYdsPIC4 User s Manual mikro 3 in 1 IN-CIRCUIT DEBUGGER MICROCHIP dspic DEVELOPMENT BOARD USB 2.0 IN-CIRCUIT PROGRAMMER With

More information

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd. Display Real Time Clock (RTC) On LCD PR12 Version 1.2 Aug 2008 Cytron Technologies Sdn. Bhd. Information contained in this publication regarding device applications and the like is intended through suggestion

More information

Development Hardware. Target Board and In-circuit Debugger

Development Hardware. Target Board and In-circuit Debugger Development Hardware Target Board and In-circuit Debugger Development Hardware :: Slide 1 of 32 Microchip PICDEM 2 Plus Target Board Development Hardware :: Slide 2 of 32 PICDEM 2 Plus Demo Board Development

More information

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor 1 2 A microprocessor is a single, very-large-scale-integration (VLSI) chip that contains many digital circuits that perform arithmetic, logic, communication, and control functions. When a microprocessor

More information

PIC-32MX development board Users Manual

PIC-32MX development board Users Manual PIC-32MX development board Users Manual All boards produced by Olimex are ROHS compliant Rev.A, June 2008 Copyright(c) 2008, OLIMEX Ltd, All rights reserved INTRODUCTION: The NEW PIC-32MX board uses the

More information

PIC 16F84A programming (II)

PIC 16F84A programming (II) Lecture (05) PIC 16F84A programming (II) Dr. Ahmed M. ElShafee ١ Introduction to 16F84 ٣ PIC16F84 belongs to a class of 8-bit microcontrollers of RISC architecture. Program memory (FLASH) EEPROM RAM PORTA

More information

PIC16F87XA Data Sheet

PIC16F87XA Data Sheet M Data Sheet 28/40-pin Enhanced FLASH Microcontrollers 2001 Microchip Technology Inc. Advance Information DS39582A 2001 Microchip Technology Inc. Advance Information DS39582A-page 3 Pin Diagram RB7/PGD

More information

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform. Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform www.sierraradio.net www.hamstack.com Topics Introduction Hardware options Software development HamStack project

More information

Laboratory 9. Programming a PIC Microcontroller - Part I

Laboratory 9. Programming a PIC Microcontroller - Part I Laboratory 9 Programming a PIC Microcontroller - Part I Required Components: 1 PIC16F84 (4MHz) or PIC16F84A (20MHz) or compatible (e.g., PIC16F88) microcontroller 1 4MHz microprocessor crystal (20 pf),

More information

Sales: Technical: Fax:

Sales: Technical: Fax: DATA SHEET PIC Microcontrollers Order code Manufacturer code Description 73-3352 n/a PIC16F877A-I/P (RC) PIC Microcontrollers The enclosed information is believed to be correct, Information may change

More information

C and Embedded Systems. So Why Learn Assembly Language? C Compilation. PICC Lite C Compiler. PICC Lite C Optimization Results (Lab #13)

C and Embedded Systems. So Why Learn Assembly Language? C Compilation. PICC Lite C Compiler. PICC Lite C Optimization Results (Lab #13) C and Embedded Systems A µp-based system used in a device (i.e, a car engine) performing control and monitoring functions is referred to as an embedded system. The embedded system is invisible to the user

More information

Datasheet for PAS12 Serial Adaptor rev 1.50

Datasheet for PAS12 Serial Adaptor rev 1.50 Datasheet for PAS12 Serial Adaptor rev 1.50 2001 Working Technologies Ltd. http://www.workingtex.com/htpic/ shane@workingtex.com ph. +64 21 2977741 fax: +64 3 3793885 ph. +64 3 3793883 Introduction To

More information

Enhanced FLASH Microcontrollers with Single Phase Induction Motor Control Kernel. I/O Pins. 10-bit A/D (ch) EEPROM

Enhanced FLASH Microcontrollers with Single Phase Induction Motor Control Kernel. I/O Pins. 10-bit A/D (ch) EEPROM Enhanced FLASH Microcontrollers with Single Phase Induction Motor Control Kernel High Performance RISC CPU: Linear program memory addressing to 24 Kbytes Linear data memory addressing to 1.4 Kbytes 20

More information

USB-Based 20-Channel Data-Acquisition Module

USB-Based 20-Channel Data-Acquisition Module USB-Based 0-Channel Data-Acquisition Module DLP-IO0 LEAD-FREE FEATURES: 0 Channels: Analog Inputs 0-V, Up to 0Ksps Sample Rate, Latching Relays, Digital I/O Two Relay Driver Outputs (V Coil) Digital Temperature

More information

PIC18F45J10 Family Data Sheet

PIC18F45J10 Family Data Sheet PIC18F45J10 Family Data Sheet 28/40/44-Pin High-Performance, RISC Microcontrollers 2008 Microchip Technology Inc. DS39682D te the following details of the code protection feature on Microchip devices:

More information

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP DEVBOARD3 DATASHEET 10Mbits Ethernet & SD card PIC18F67J60 MICROCHIP Version 1.0 - March 2009 DEVBOARD3 Version 1.0 March 2009 Page 1 of 7 The DEVBOARD3 is a proto-typing board used to quickly and easily

More information

PIC-P67J60 development board Users Manual

PIC-P67J60 development board Users Manual PIC-P67J60 development board Users Manual Rev.A, July 2008 Copyright(c) 2008, OLIMEX Ltd, All rights reserved INTRODUCTION: If you want to build your own Internet enabled device this is the board for you.

More information

Breeze Board. Type A. User Manual.

Breeze Board. Type A. User Manual. Breeze Board Type A User Manual www.dizzy.co.za Contents Introduction... 3 Overview Top... 4 Overview Bottom... 5 Getting Started (Amicus Compiler)... 6 Power Circuitry... 7 USB... 8 Microcontroller...

More information

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing CMS-8GP32 A Motorola MC68HC908GP32 Microcontroller Board xiom anufacturing 2000 717 Lingco Dr., Suite 209 Richardson, TX 75081 (972) 994-9676 FAX (972) 994-9170 email: Gary@axman.com web: http://www.axman.com

More information

Chapter 9. Input/Output (I/O) Ports and Interfacing. Updated: 3/13/12

Chapter 9. Input/Output (I/O) Ports and Interfacing. Updated: 3/13/12 Chapter 9 Input/Output (I/O) Ports and Interfacing Updated: 3/13/12 Basic Concepts in I/O Interfacing and PIC18 I/O Ports (1 of 2) I/O devices (or peripherals) such as LEDs and keyboards are essential

More information

NH-67, TRICHY MAIN ROAD, PULIYUR, C.F , KARUR DT. DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING COURSE MATERIAL

NH-67, TRICHY MAIN ROAD, PULIYUR, C.F , KARUR DT. DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING COURSE MATERIAL NH-67, TRICHY MAIN ROAD, PULIYUR, C.F. 639 114, KARUR DT. DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING COURSE MATERIAL Subject Name : Embedded System Class/Sem : BE (ECE) / VII Subject Code

More information

2 in 1. EasyAVR4 User s Manual AVR. MikroElektronika. Software and Hardware solutions for Embedded World

2 in 1. EasyAVR4 User s Manual AVR. MikroElektronika. Software and Hardware solutions for Embedded World SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD - Books - Compilers User s Manual 2 in 1 2.0 IN-CIRCUIT PROGRAMMER ATMEL AVR DEVELOPMENT BOARD With useful implemented peripherals, plentiful practical

More information

Mechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6

Mechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6 Mechatronics and Measurement Lecturer:Dung-An Wang Lecture 6 Lecture outline Reading:Ch7 of text Today s lecture: Microcontroller 2 7.1 MICROPROCESSORS Hardware solution: consists of a selection of specific

More information

EE6008-Microcontroller Based System Design Department Of EEE/ DCE

EE6008-Microcontroller Based System Design Department Of EEE/ DCE UNIT- II INTERRUPTS AND TIMERS PART A 1. What are the interrupts available in PIC? (Jan 14) Interrupt Source Enabled by Completion Status External interrupt from INT INTE = 1 INTF = 1 TMR0 interrupt T0IE

More information

AVR-P20 development board Users Manual

AVR-P20 development board Users Manual AVR-P20 development board Users Manual All boards produced by Olimex are ROHS compliant Revision A, October 2005 Copyright(c) 2009, OLIMEX Ltd, All rights reserved Page 1 INTRODUCTION: The AVR Microcontrollers

More information

CHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK

CHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK 134 CHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK 6.1 CONCLUSION Many industrial processes such as assembly lines have to operate at different speeds for different products. Process control may demand

More information

eip-10 Embedded TCP/IP 10-BaseT Network Module Features Description Applications

eip-10 Embedded TCP/IP 10-BaseT Network Module Features Description Applications Embedded TCP/IP 10-BaseT Network Module Features 8-bit reprogrammable Microcontroller with Enhanced Flash program memory, EEPROM and Static RAM data memory On board 10Mbps Ethernet controller, and RJ45

More information

PIC Training System Manual Rev. 2

PIC Training System Manual Rev. 2 Introduction PIC Training System Manual Rev. 2 Department of Engineering Technology Electrical Engineering Technology Old Dominion University Norfolk, VA 23529 March 26, 2018 This is the PIC Training system

More information

The Freescale MC908JL16 Microcontroller

The Freescale MC908JL16 Microcontroller Ming Hsieh Department of Electrical Engineering EE 459Lx - Embedded Systems Design Laboratory The Freescale MC908JL16 Microcontroller by Allan G. Weber 1 Introduction The Freescale MC908JL16 (also called

More information

MCP2120/MCP2150 DEVELOPER S KIT USER S GUIDE

MCP2120/MCP2150 DEVELOPER S KIT USER S GUIDE MCP2120/MCP2150 DEVELOPER S KIT USER S GUIDE Information contained in this publication regarding device applications and the like is intended by way of suggestion only. No representation or warranty is

More information

The Atmel ATmega328P Microcontroller

The Atmel ATmega328P Microcontroller Ming Hsieh Department of Electrical Engineering EE 459Lx - Embedded Systems Design Laboratory 1 Introduction The Atmel ATmega328P Microcontroller by Allan G. Weber This document is a short introduction

More information

VM134 (K8076) QUICK GUIDE

VM134 (K8076) QUICK GUIDE VM134 (K8076) QUICK GUIDE 1 PicProg2006 helpmanual 1 General information 1.1 Introduction Thank you using the Velleman produkts. The VM134 (K8076 kit version) us a multifunctional and instructional programmer,

More information

1 Introduction to Computers and Computer Terminology Programs Memory Processor Data Sheet... 4

1 Introduction to Computers and Computer Terminology Programs Memory Processor Data Sheet... 4 Overview of the PIC 16F648A Processor: Part 1 EE 361L Lab 2.1 Last update: August 1, 2016 Abstract: This report is the first of a three part series that discusses the features of the PIC 16F648A processor,

More information

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual SBAT90USB162 Atmel AT90USB162 Development Board User s manual 1 1. INTRODUCTION Thank you for choosing the SBAT90USB162 Atmel AT90USB162 development board. This board is designed to give a quick and cost-effective

More information

The Atmel ATmega168A Microcontroller

The Atmel ATmega168A Microcontroller Ming Hsieh Department of Electrical Engineering EE 459Lx - Embedded Systems Design Laboratory The Atmel ATmega168A Microcontroller by Allan G. Weber 1 Introduction The Atmel ATmega168A is one member of

More information

JUNEBUG PIC LABORATORY

JUNEBUG PIC LABORATORY JUNEBUG PIC LABORATORY Assembly Instructions The Junebug PIC Lab Introduction Powered from your computers USB port the Junebug is everything you ll need in a small self contained portable PIC Laboratory

More information

SimPLC. User Manual.

SimPLC. User Manual. SimPLC User Manual www.dizzy.co.za Contents Introduction... 4 Overview Top... 5 Power Circuitry... 6 Microcontroller... 7 Real-Time Calendar and Clock (RTCC)... 7 Reset Button... 7 Oscillator Socket...

More information

VINCULUM-BASED TEMPERATURE / HUMIDITY / VOLTAGE DATA LOGGER FEATURES:

VINCULUM-BASED TEMPERATURE / HUMIDITY / VOLTAGE DATA LOGGER FEATURES: DLP-VLOG *LEAD-FREE* VINCULUM-BASED TEMPERATURE / HUMIDITY / VOLTAGE DATA LOGGER FEATURES: Virtually Unlimited Data Storage Utilizing FTDI s New Vinculum USB Host IC Data Logged to USB Flash Drive Low-Power

More information

Capacitive Touch Remote Control Reference Design User s Guide

Capacitive Touch Remote Control Reference Design User s Guide Capacitive Touch Remote Control Reference Design User s Guide Microchip Korea V0.8-page 1 Capacitive Touch Remote Control Reference Design User s Guide Table of Contents Chapter 1. Introduction 1.1 Introduction

More information

PIC16F84A. 18-pin Enhanced Flash/EEPROM 8-Bit Microcontroller. Devices Included in this Data Sheet: Pin Diagrams. High Performance RISC CPU Features:

PIC16F84A. 18-pin Enhanced Flash/EEPROM 8-Bit Microcontroller. Devices Included in this Data Sheet: Pin Diagrams. High Performance RISC CPU Features: M PIC6F84A 8-pin Enhanced Flash/EEPROM 8-Bit Microcontroller Devices Included in this Data Sheet: PIC6F84A Extended voltage range device available (PIC6LF84A) High Performance RISC CPU Features: Only 35

More information

LPC2148 DEV BOARD. User Manual.

LPC2148 DEV BOARD. User Manual. LPC2148 DEV BOARD User Manual www.coineltech.com www.coineltech.com Designed by CoiNel Technology Solutions LLP No-816, 2 nd Floor, 4 th B Cross, 9 th A Main, RPC Layout, Vijaynagar, Bangalore-560040 State:

More information

PICmicro MCU multiprogrammer

PICmicro MCU multiprogrammer PICmicro MCU multiprogrammer www.matrixtsl.com EB006V9 Contents About this document General information Board layout Circuit description Protective cover PICmicro microcontroller pin out details Bus connections

More information

F²MC-8L FAMILY MB89201 SERIES FLASH PROGRAMMING 8-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

F²MC-8L FAMILY MB89201 SERIES FLASH PROGRAMMING 8-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note Fujitsu Microelectronics Europe Application Note MCU-AN-300001-E-V10 F²MC-8L FAMILY 8-BIT MICROCONTROLLER MB89201 SERIES FLASH PROGRAMMING APPLICATION NOTE Revision History Revision History Date 2005-02-09

More information

Outline. Micriprocessor vs Microcontroller Introduction to PIC MCU PIC16F877 Hardware:

Outline. Micriprocessor vs Microcontroller Introduction to PIC MCU PIC16F877 Hardware: HCMIU - DEE Subject: ERTS RISC MCU Architecture PIC16F877 Hardware 1 Outline Micriprocessor vs Microcontroller Introduction to PIC MCU PIC16F877 Hardware: Program Memory Data memory organization: banks,

More information

ME 6405 Introduction to Mechatronics

ME 6405 Introduction to Mechatronics ME 6405 Introduction to Mechatronics Fall 2006 Instructor: Professor Charles Ume Microchip PIC Manufacturer Information: Company: Website: http://www.microchip.com Reasons for success: Became the hobbyist's

More information

PIC16C432 OTP 8-Bit CMOS MCU with LIN bus Transceiver

PIC16C432 OTP 8-Bit CMOS MCU with LIN bus Transceiver OTP 8-Bit CMOS MCU with LIN bus Transceiver Devices included in this Data Sheet: High Performance RISC CPU: Only 35 instructions to learn All single cycle instructions (200 ns), except for program branches

More information