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.
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
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.
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
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
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
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
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