Picinit for PIC 16F84A
What Picinit ?
Picinit is a free software (GNU General Public License).
Picinit is a utility which is addressed to those which program the PIC 16F84A microcontrollers in assembler language, with Microchip MPLAB IDE.
Picinit defines the initial configuration of a PIC 16F84A microcontroller.
The source code (.asm) corresponding is automatically generated.
This source code is entirely compatible with MPLAB IDE.
Download
the source code (C++ Borland Builder 5.0)
Tutorial
1- How to use Picinit
2- Transfer to MPLAB IDE
1- How to use Picinit
Open Picinit84A_104.exe
Project -> New project
In this project :
Note : Picinit determines the PSA, PS2, PS1 and PS0 bits automatically.
2 outputs (RA3 and RA4/T0CKI)
2 inputs (RA0 and RA2)
RA1 pin is not used.
4 outputs (RB7, RB6, RB2 and RB1)
3 inputs (RB5, RB4 and RB0/INT)
RB3 pin is not used.
This project uses 8 registers.
Note that there are 2 imposed registers (W_TEMP and STATUS_TEMP).
These two registers are assigned to the interrupt routine.
Save project : tutorial104.mcq file
Create the source code : tutorial104eng.asm file
2- Transfer to Microchip MPLAB IDE
a) Open MPLAB IDE
b) Project->New
c) Configure ->Select Device -> PIC16F84A
d) Project -> Select Language Toolsuite -> Microchip MPASM Toolsuite
e) Debugger -> Select Tool -> MPLAB SIM
f) Project -> Add File to Project (file tutorial104eng.asm creates by Picinit) :
g) The most difficult remainder to be made : write the main program, the subroutines, the interrupt routine ...
Sorry for my poor english ...
(C) Fabrice Sincère ; version 1.1.10