Even a very basic LED blinking excercise, has it's value,
in getting hardware, development environment, compiler, programmer, debugger,
and your head to work together.
But watching it on video have limited value, you have to do it yourself.
It isn't about the blinking, it is about the tools and procedures to getting it to happen.
Also, getting it to blink with a frequency that you decide, from scratch,
is an exercise that may involve configuration and and setup of oscllators,
setup of timers, and possibly also interrupt handling.
All of these experiences may be useful if you are going to set up timekeeping,
or communication like UART asynchronous serial, or other protocols.
Taking over, or getting familiar with a big code written in assembly by someone else,
possibly using tools that you maybe is not familiar with,
may be a challenge.
While the file containing hardware definitions are copyrighted by Microchip,
it is with the licence that you may use it to make firmware for any microprocessor produced and sold by Microchip,
or any of the companies they have bought.
About the analysis of PIC18F45K20 written by the author of the program you are trying to use:
There is a successor device, PIC18F45K22 that have removed many of the restrictions pointed out in the review,
while generally working the same way. It may work with any power supply voltage between 2.3 V and 5.5 Volt.
If you are going to make battery powered equipment, there is LF variant that may be used with even lower supply voltage.
The author make a point of large steps in the relation between clocking frequency and nessesary power voltage.
I do think that those steps are not actually real.
It may be more about writing specifications, and how to test that those specifications are actually fulfilled in production testing.
About the original question: where to place the files, the ProjectName.X directory that is created by MPLAB X
is just as good as anywhere else.
But it will not solve your main problem, what to do with the files.
Maybe the most meaningful, may be to find a tutorial demonstrating use of MPLAB X for assembly language using MPASM assembler, and study that first.
In MPLAB X, Click on the big Yellow [+] up near the left end of the toolbar.
It will open a wizard, select the project type: 'Microchip Embedded' and 'Standalone Project' and click Next.
select the device type you want to use, PIC18F4520, or PIC18F45K20, or whatever device you have available.
Select what Programming / Debugging tool to use: PICkit 3 or PICkit 2, or whatever you have access to,
that have 2 green dots, or 2 yellow dots. If you have no Programmer, select Simulator.
In Select Compiler, Click 'mpasm'
Specify a Project name of your choise, and browse for a directory where you want the project to be stored.
Beware, No space characters or other special characters in directory path or file names, underscore may be used.
then finish the wizard.
You may make a new assembly source file by use of the white icon with green + in the upper left corner.
select 'Assembler' and select 'AssemblyFile.asm'
Then fill it with something suitable.
post edited by Mysil - 2019/11/17 01:16:26