And again, add this to the source code you posted (after it's init label) :
Research and development is over! def works with 16F628/A.Code:movlw 0x07 movwf CMCON
Don't know how you're going to get on when you come to actually having to do some.
Yes, adding two instructions of spoon fed code is much more difficultQuite a task, especially from memory
than porting an entire program from a low level language to a high level one!
Hi ART,
Do I detect a hint of sarcasm?
Actually, my answers are after many years of trying to learn to be expert in PIC programming, but I'm afraid age has caught me up and it is really difficult for me.
What you ( and previous messages) say is probably true and I'll try it.
Thanks, Camerart.
Of course.
You can probably get the chip as a free sample, build the project with an 18 pin (or whatever) IC socket,
and you have nothing to lose.
Which chip? I have 16F84, but nothing to program them, and 16F648A with simulator, compiler and programmer.
I looked at the code I posted in #3, and realised, I didn't pose the original question correctly. I don't know how to use this type of code, only Qbasic, I hoped for a Qbasic program from the code I posted, then I could understand and alter things if needed. With my system I write Qbasic and the simulator compiles it to .LST and .ASM and .HEX. The programmer uses the .HEX file to program. So even if I changed the code I posted, I then couldn't program it to the chip.
I have PICSIMULATORIDE simulator and PICKIT 2 programmer.
Cheers. Camerart.
Last edited by camerart; - 26th May 2013 at 09:53.
Microchip's RISC asm was free last I got it.
That code should compile in the MPLAB development environment they provide for free.
It's not a language you want to jump into straight up, but to insert two lines of code, yes.
They also provide free sample chips from their site, and I think 16F628 is on the list
so long as you can write to them.
Ok, I will add it.
I searched for init, but couldn't tell which one was the correct one, or do you mean at the beginning, under the 5 *****?
Thanks, Camerart.
Bookmarks