how build the hex file for pic16f628a pll controller · - mplab ide v8.53 - sa7025.mo„ file edit...
TRANSCRIPT
![Page 1: How build the Hex File for PIC16F628A PLL Controller · - MPLAB IDE v8.53 - SA7025.mo„ File Edit Debugger Programmer Took SA7025.mcw SA7025.mcp* Source Files micrownre.c Header](https://reader030.vdocuments.us/reader030/viewer/2022021808/5be659dd09d3f2c44d8d980e/html5/thumbnails/1.jpg)
How build the Hex File for PIC16F628A PLL Controller Pastorcici Robert – 2013
(SA7025)
First step: Open MPLAB, choose Project Wizard
Step 2: Select PIC16F628A
![Page 2: How build the Hex File for PIC16F628A PLL Controller · - MPLAB IDE v8.53 - SA7025.mo„ File Edit Debugger Programmer Took SA7025.mcw SA7025.mcp* Source Files micrownre.c Header](https://reader030.vdocuments.us/reader030/viewer/2022021808/5be659dd09d3f2c44d8d980e/html5/thumbnails/2.jpg)
Step 3: Select Hi-Tech Compiler
Step 4: Choose the Location for Project
Step 5: Click NEXT
![Page 3: How build the Hex File for PIC16F628A PLL Controller · - MPLAB IDE v8.53 - SA7025.mo„ File Edit Debugger Programmer Took SA7025.mcw SA7025.mcp* Source Files micrownre.c Header](https://reader030.vdocuments.us/reader030/viewer/2022021808/5be659dd09d3f2c44d8d980e/html5/thumbnails/3.jpg)
Open Source Files (.c)
![Page 4: How build the Hex File for PIC16F628A PLL Controller · - MPLAB IDE v8.53 - SA7025.mo„ File Edit Debugger Programmer Took SA7025.mcw SA7025.mcp* Source Files micrownre.c Header](https://reader030.vdocuments.us/reader030/viewer/2022021808/5be659dd09d3f2c44d8d980e/html5/thumbnails/4.jpg)
Open Header Files (.h)
![Page 5: How build the Hex File for PIC16F628A PLL Controller · - MPLAB IDE v8.53 - SA7025.mo„ File Edit Debugger Programmer Took SA7025.mcw SA7025.mcp* Source Files micrownre.c Header](https://reader030.vdocuments.us/reader030/viewer/2022021808/5be659dd09d3f2c44d8d980e/html5/thumbnails/5.jpg)
Select: SA7025 chip = 1, It is a Universal Software for LMX/SA PLL chips
Modify values for E, D, C, B, A registers.
![Page 6: How build the Hex File for PIC16F628A PLL Controller · - MPLAB IDE v8.53 - SA7025.mo„ File Edit Debugger Programmer Took SA7025.mcw SA7025.mcp* Source Files micrownre.c Header](https://reader030.vdocuments.us/reader030/viewer/2022021808/5be659dd09d3f2c44d8d980e/html5/thumbnails/6.jpg)
Open TRF2050.exe (TRF2050 is compatible with SA7025)
Select VCO Frequency, Reference Oscillator…
For more details see TRF Evaluation Board.pdf
Here is the binary word for E, D, C, B, A registers.
LSB is FIRST IN (see datasheet)
Sequence E=>D=>C=>B=>A
![Page 7: How build the Hex File for PIC16F628A PLL Controller · - MPLAB IDE v8.53 - SA7025.mo„ File Edit Debugger Programmer Took SA7025.mcw SA7025.mcp* Source Files micrownre.c Header](https://reader030.vdocuments.us/reader030/viewer/2022021808/5be659dd09d3f2c44d8d980e/html5/thumbnails/7.jpg)
Carefully Copy the new values from TRF2050.exe to Header File
The E, D, C, B, A are reversed!
In reality the E register is first word sent to SA7025.
![Page 8: How build the Hex File for PIC16F628A PLL Controller · - MPLAB IDE v8.53 - SA7025.mo„ File Edit Debugger Programmer Took SA7025.mcw SA7025.mcp* Source Files micrownre.c Header](https://reader030.vdocuments.us/reader030/viewer/2022021808/5be659dd09d3f2c44d8d980e/html5/thumbnails/8.jpg)
Congratulations…Now build the HEX File ☺☺☺☺
Open the Project folder, here you have the Hex File.
The uC must be programmed with this file.
73’s de YO4HFU