If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Here is the source code for Option 1. It's posted as a txt file and should be renamed 'HH2Option1.c'. I used MPLAB IDE and the HiTech C compiler, both free from the Microchip web site.
You will need MPLAB and the Hi-Tech C compiler, both free from Microchip, and a programmer. I'm using Pickit 3 and I assume Pickit 2 will work as well. The I/P version of the chip is fine.
Yes the code allows you to change the sample delay externally. A variable resistor (10K) connected between the Vcc and Vdd with the wiper connected to pin 7 on the pic chip. By adjusting the voltage going to the A to D converter (AN0) you can increase or decrease the delay. The code works. Sorry I don't have time to draw a schematic.
It worked good on my bench. I built it as an experiment and to evaluate the front end circuits. Its not a cut and dry project. There are different options, some board modifications and pic programing. If you want a straight forward project build the Hammer Head I. Lots of info, everything is adjustable with resistors and capacitors. If you want to experiment with micro processors build this one(HH2). If you are just learning to program, study C. It is the universal engineering language for micros.
Did anybody get a working hex file compiled from Altra's ASM file ?
I have tried using Mpasm V5.11
but when I try and compile it , it says there are 67 errors
any help appreciated, I would like to try and get this working thanks
I have downloaded the latest version of Mplab IDE v8.76
and tried to compile the asm code to hex
and the program tells me it worked
I get this hex code does it match anybody else's hex code compiled from Altra's asm?
Comment