Top Banner
JX-877 40-pin PIC microcontroller project board 1 Specification Connect to PC’s parallel port for programming with CX-6 cable (included) PIC16F877-20/P on-board, support all 40-pin of PIC16F and 18F series. 20MHz clock frequency Full 33 I/O Download code to chip’s memory directly Select RUN or PROGRAM mode by one switch with LED mode status Can define all configuration word from software JX-877 40-pin PIC Microcontroller Project Board Miracle-PIC programmer software can run on Windows98SE/ME/XP 3 x 5 Inches 1,303 solder pads prototype area for construction circuit Area for installation 9-pin female D-type connector 5 of mini push-button switches 2 of variable resistors 3-pin and 2-pin terminal block 5 of LEDs 2 of 4-pin RJ-11modular jack 1 of LCD connector Copyright 2002-2005 by Innovative Experiment Co.,Ltd.
7

JX-877 40-pin PIC Microcontroller Project Board 40-pin PIC microcontroller project board 5 Configuration Setting Before programing PIC microcontroller, always fix configuraruon, go

Jul 03, 2018

Download

Documents

phungtuong
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: JX-877 40-pin PIC Microcontroller Project Board 40-pin PIC microcontroller project board 5 Configuration Setting Before programing PIC microcontroller, always fix configuraruon, go

JX-877 40-pin PIC microcontroller project board 1

Specification Connect to PC’s parallel port

for programming with CX-6cable (included)

PIC16F877-20/P on-board,support all 40-pin of PIC16F and18F series.

20MHz clock frequency

Full 33 I/O

Download code to chip’smemory directly

Select RUN or PROGRAMmode by one switch with LEDmode status

Can define all configurationword from software

JX-877 40-pin PIC Microcontroller Project Board

Miracle-PIC programmer software can run on Windows98SE/ME/XP

3 x 5 Inches 1,303 solder pads prototype area for construction circuit

Area for installation

9-pin female D-type connector5 of mini push-button switches2 of variable resistors3-pin and 2-pin terminal block5 of LEDs2 of 4-pin RJ-11modular jack1 of LCD connector

Copyright 2002-2005 by Innovative Experiment Co.,Ltd.

Page 2: JX-877 40-pin PIC Microcontroller Project Board 40-pin PIC microcontroller project board 5 Configuration Setting Before programing PIC microcontroller, always fix configuraruon, go

2 JX-877 40-pin PIC microcontroller project board

Using JX-877 boardPreparation

Before using, user must prepare some tool and software following :

1. Personal computer which install Window 95/98/ME/2000/XP, text editorprogram, MPLAB, MPASM and Miracle-PIC software

MPLAB and MPASM are licenced by Microchip Technology , for moreinformation please contact at http://www.microchip.com (included in CD-ROMwhen order JX-877 board)

Miracle-PIC is licenced by Innovative Experiment Co.Ltd. Pleasecontact at www.inex.co.th (included in CD-ROM when order JX-877 board)

2. Write program, set beginning address at 0x0000 and save file in .ASM

3. Assembler .ASM file by MPASM with selected INHX8M type. So it will beHEX file

4. Prepare DC adpator 16-20V 500mA.

Procedure1. Constuct the curcuit, solder the components on prototype area on JX-8772. Connect JX-877 with PC’s parallel port.3. Supply voltage to JX-877 board, green LED at “RUN” mode is bright.4. Press MODE switch for changing to PROGRAM mode, red LED is bright.5. Open mPicFlash.EXE (after install Miracle PIC flash software)6. Select PIC16F877 or PIC16F877A microcontroller.7. Open HEX file.

8. Erase data in microcontroller by pressed

9. Check blank data in microcontroller by pressed

10. Program data in microcontroller by pressed

11. Check the result by pressed and notice12. In case, protect data.Select code protection in View Configuration.

PIC16F877 can choose 4 protection types; CP All, 1000H-1FFH, 1F00H-1FFH and CPOFF. These protection types have to choose before prigramming. Moreover, userscan protect data from EEPROM by select CPD in Configuration.

13. After programming completed, press MODE switch to RUN mode.Microcontroller will runs your own program.

14. Save in desk, have to code protect. User can check by put microcontrollerin socket, open Miracle-PIC program after that, press READ then select View menu

Program buffer and Data buffer.If showing 000, means code protect. After readdata, select File menu Save file As and name file.HEX

Page 3: JX-877 40-pin PIC Microcontroller Project Board 40-pin PIC microcontroller project board 5 Configuration Setting Before programing PIC microcontroller, always fix configuraruon, go

JX-877 40-pin PIC microcontroller project board 3

Figure 1 : Miracle-PIC Flash software main window

Microcontroller type Operation status

Show microcontroller ID

Show MCU’s configuration word

Auto detect button

Selectmicrocontroller

Main Control ButtomOpen mPicLite.EXE program, then select the microcontroller as figure 1, there

is 8 function buttons follow this;

Open : Open HEX file

Save : Save source code in HEX file

PROGRAM : Program all data into program memory and EEPROM

VERIFY : Test program; compare data in buffer with MCU’s data

READ : Read data from selected microcontroller and also readparameter

BLANK CHECK : Check blank data inside microcontroller

ERASE : Delete data in program memory of selectedmicrocontroller. This function used with flashmicrocontroller memory or EEPROM only.For example, PIC16C84 or PIC 16Fxxx

Select microcontroller : Just click at the arrow. User will see many MCU lising.

Using Miracle-PIC programmer software

Clock mode

Protection type

Menu

Control button

Page 4: JX-877 40-pin PIC Microcontroller Project Board 40-pin PIC microcontroller project board 5 Configuration Setting Before programing PIC microcontroller, always fix configuraruon, go

4 JX-877 40-pin PIC microcontroller project board

Menu descriptionFile

Open file - To open file.HEX

Save file As - To save data in another file name

Recent files - To open recently file

Exit - Quit

ViewTo see all parameter of PIC microcontroller

Program Buffer (F11) - shows code in program memory (figure 2). Usercan edit by select memory position and input value directly or use Fill ProgranBufer Function

Data Buffer (F12) - shows all data EEPROM (figure 3). User can editdata by select memory position and input value directly or use Fill Progran BufferFunction

Configuration (F9) - shows detail of PIC configuration. User can enableor disable all parameter.

Count Program - show number of programmed microcontroller (notuse this function in JX-877)

Stay on top - Make the program always on the top

Figure 2 : Program buffer window, user can see all code and edit any address

Page 5: JX-877 40-pin PIC Microcontroller Project Board 40-pin PIC microcontroller project board 5 Configuration Setting Before programing PIC microcontroller, always fix configuraruon, go

JX-877 40-pin PIC microcontroller project board 5

Configuration SettingBefore programing PIC microcontroller, always fix configuraruon, go to View

� Configuration. This is detail of them.

Oscillator - select clock mode, there are 4 types (for PIC16F877-20/P)LP - low cystal (not use in JX-877)XT - normal cystal not over 4 MHz (not use in JX-877)HS - Over 4 MHz high frequency xtalRC - External RC circuit (not use in JX-877)

Code protection - Use for selceting protection mode. It can protect data inPIC16F877 microcontroller is 4 modes include : ALL, 1F00H-1FFFH, 1000H-1FFFH andOFF. Select CPD box for protection data in EEPROM.

Configuration - To select special ability of PIC miocrocontroller, it dependson type of microcontroller. For PIC16F877 has 6 types;

WPT (watchdog Timer)PWRT (Power-up Timer)BODEN (Brown-out Reset)LVP (Low Voltage program) - Enable programming to PIC

microcontroller with low voltage+5V instead of +12V (Should not use with JX-877)

Figure 4 : Configuration window

Figure 3 : Data buffer window, user can see all data in EEPROM within microcontrollerand edit any address

Page 6: JX-877 40-pin PIC Microcontroller Project Board 40-pin PIC microcontroller project board 5 Configuration Setting Before programing PIC microcontroller, always fix configuraruon, go

6 JX-877 40-pin PIC microcontroller project board

ICD (In-circuit Debugger) - Edit program memory in positionOX0100(100H) up via RB6 and RB7 so RB6 and RB7 is not work(no use in JX-877)

WRT (Flash progran write) - If select this function, users canprogram data into flash program memory via resistor EECON. On the other hand,no select this, the program in the memory have to do via RB6 and RB7 in normally.

DeviceSelect type of PIC microcontroller

CommandArrange reading, writing and testing data in microcontroller memory

Program Chip (F4) - Program code and data to microcontroller asPROGRAM buttom

Verify Chip (F5) - Check writing data in PIC microcontroller corrector incorrect as VERIFY buttom

Read Chip (F6) - Read data from microcontroller as READ buttom

Erase Chip (F7) - Delete data in PIC microconrtoller as ERASE buttom

Blank Chip (F8) - Check blank data in PIC microcontroller memoryas BLANK CHECK button

OptionSeparate 4 parts;

Part1Program/Verify Program - check latest programming in microcontroller

with buffer.Program/Verify Data - check data in microcontroller memory after

latest programmingProgram/Verify ID - checking ID value in microcontroller after

latest programming (not use in JX-877)Program/Verify Configuration - check configuration value after latest

programming

Part2 Special feature in Miracle-PIC programmer softwareVerfy while program - check data while program microcontroller.

If occur the faults, program will stop in suddenly.Auto verify after program - check data after completely programming

automatic.Auto erase before program - delete data before programmingProgram all address - program data in every address

Part3 Configuration erase message - selcet warning window

Part4 Parallel port - select parallel port LPT1 to LPT3

Page 7: JX-877 40-pin PIC Microcontroller Project Board 40-pin PIC microcontroller project board 5 Configuration Setting Before programing PIC microcontroller, always fix configuraruon, go

JX-877 40-pin PIC microcontroller project board 7

JX-877 schematic diagram

Copyright 2002-2005 by Innovative Experiment Co.,Ltd.

IC27805

D1-D41N4001x4

C1220/25V

C20.1/50V

+5V

C50.1/50

IC178L12

C30.1/50

+VPP

D51N4148

D61N4148

C410/50V

+5V

13 129 8

R110k

R210k

C60.1/50V

+VppR310k

Q1BC557R4

4k7R510k

1 2

+5V

R610k

1110

IC3/1-IC3/574LS07

K1DOWNLOAD

(RJ11-6)14

7

+5V

R7510

LED1RUN

LED2PGM

+5V

R104k7

S2RESET

C833pF

C933pF

XTAL14MHz

MCLR1

13

14

OSC1

OSC2

+V

IC3/5

IC3/3

IC3/1

IC3/4

S1MODE

RB6

RB740

39

RB5RB4RB3RB2RB1

RB0/INT

383736353433

IC4PIC16F877

RA56

RA35432

RA2RA1RA0

RA5RA4RA3RA2RA1RA0

32

8

C90.1/50V

RA5/AN5/SSRA4/T0CKI

RA3/AN3/Vref+RA2/AN2/Vref-

RA1/AN1RA0/AN0

PORT A

RB7RB6RB5RB4RB3/LVPRB2RB1RB0/INT

RB7RB6

PORT B

R810k

Q2BC557

R9510

IC3/234 R12

1k

J1DC input

K1DC input

DC input : 16-20Vdc

D0D1

D2

GND

D3ACK

RC7/RxD/DTRC6/TxD/CKRC5/SDORC4/SDI/SDARC3/SCK/SCLRC2/CCP1RC1/T1OSI/CCP2RC0/T1OSO/T1CKI

PORT C

RA4 RC0RC1RC2RC3RC4RC5RC6RC7

RD7/PSP7RD6/PSP6RD5/PSP5RD4/PSP4RD3/PSP3RD2/PSP2RD1/PSP1RD0/PSP0

PORT D

RD0RD1RD2RD3RD4RD5

RD6RD7

98

RE2RE1RE0

RE1RE0

RE2/AN7/CSRE1/AN6/WRRE0/AN5/RD

PORT E

R11220

11

31

7

RE2 10

26252423

18171615

30292827

22212019