PIC Assembler 12 Bit Instruction Device Family Shop Talk

be80be

Joined Jul 5, 2008
2,395
They can be a pain lol most is the power I got 2 pickit2 and a 3 only one of them likes the 12f509.
That's sound crazy but the 12f508 or a 509 only 2 I've played with are easy to over right oscal and
the voltage needs to sometimes be set on the programmer maybe a bad bread board jumper.
But I have loaded all day and then get a error about unable to find chip then It finds it and I get the
oscal is wrong LOL but my good old pickit always fixes the problem.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Bebe

Some results.

New IPE 3.65 didn't like 5v from board.

Old IPE 3.61 did 'VDD detected'.

Programmed. LED did not light up.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Bebe Thanks!

GP1

GP1 is also ICSP CLK

Now I might get the 10F200 and 12F508 devices tomorrow.

At least they will match up with tutorial source code.

I don't know if I posted the template I added tutorial code to.

I might have the calibration lines of code wrong.

IPE is saying 'Calibration data error.

But it Reads Verifties and Erases just fine.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
What memory address is calibration stored at when it leaves the factory?

What area of memory is that called so I can turn on 'Memory Area' in MPLAB IPE?

Doing this right finally and recording calibration value for each chip!
 

be80be

Joined Jul 5, 2008
2,395
The 12f509 will run code for the 12f508 fine only worry is
Location 01FFh (PIC12F508) and
location 03FFh (PIC12F509) contain the internal
clock oscillator calibration value. This value should
never be overwritten.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Bebe Thank you!

Okay. Look in program memory location 03FF. Got it!

That's the end of program memory right?

I will check that on all three '509s and get back about that.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Okay. The one I have been using looks like this.

Highest address in Program Memory view of IPE is 03F8.

All addresses are filled with 0FFF's.
 

be80be

Joined Jul 5, 2008
2,395
pickit3.png I don't think you understand how this works. Program a chip then read it back and you'll see whats really on it
The osccal is just before the end if your program runs pass the 03FF the chip resets and starts over.
So the osccal will be wrote at 03FF but it can't go pass it so it start's writing before it and ends at it.
 
Last edited:

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Bebe Thank you!

OSCAL info. Got it!

1) finally programmed 10F200 with Gooligum source code.

What was the holdup?

MPLAB IPE working erractly.

It read and programmed once then it was inaccurate.

Rebooted and changed USB cable to other port and could read and program correctly.

Maybe IPE is rock solid with newer devices.

Will keep at it with Gooligum tutorial.

Will test program some newer devices with IPE as a side project.
 
Top