PIC Assembler 12 Bit Instruction Device Family Shop Talk

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Allen Thank you.

That was a slacker question of mine just to see if I could test

compiling phase of this.

Small program that would print to screen 'Main Program Running'.

That's off the table now. Buckling down to getting lesson done.

What I did do was this.

Replaced VDD and VSS jumper wires with black and red ones.

That's so it is easier to check wiring.

Still getting error message about power.

That is in MPLAB X IDE not IPE.

IPE programming chip works fine.

Found one problem.

Resistor from MCLR to VDD.

Replaced 470 ohm resistor with 4.7k ohm

PICKit document calls for 4.7-10k ohm.
 
Last edited by a moderator:

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Allen Thank you

'12F508 doesnt have the UART built in so this technique is called bit bangging.'

So that's what that is about. Keep seeing in in old websites.

Will give my lesson another attempt.
 

be80be

Joined Jul 5, 2008
2,395
The code I wrote was a remake of what was called back door it's transmit only bit bang serial it's small code that lets you send any value. The text part adds a lot of lines
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Bebe Thank you!

'it's small code that lets you send any value'

I am just learning Assembler PIC.

I see that is a small program for PIC Assembler. Got it!

'remake of what was called back door'

That probably refers to no UART. The front door way. Got that.

In other words a 'work around'. Thanks!
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
"The target circuit may require more power than the debug tool can provide. An external power supply might be necessary.
Connection Failed.'"

Here is error message.

When I RUN program.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Bebe Thank you

Have learned to 'Enable Target Power' in IPE and MPLAB X IDE.

Had to move over to MPLAB to RUN. Unless I missed something. No RUN in IPE.

It's MPLAB X IDE that is giving me the error.
 
Last edited:

be80be

Joined Jul 5, 2008
2,395
It's called release from reset that lets the chip run. It's under settings in the ipe.

But it's better to power the target if using the pickit3
but you still have to toggle the release from reset.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Bebe Thanks!

'release from reset.'

Tutorial does not say a thing about that.Maybe I missed it somehow.

So you can RUN from IPE?
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Bebe Thank you!

I am going to give it a break for awhile.

Now MPLAB X IDE says 'Can't connect to programmer. No hardware detected.'.

I'm going backwards!
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Bebe Thank you!

Will see how that works.

I was switching back and forth between X IDE and IPE.

That probably didn't help.

Still going to give it a break for a little bit.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
I'm getting ready to try this in MPLAB 8.92 instead of MPLAB X IDE.

Question is:

I'm loading 12F509 template out of Microchip/ASM directory.

Is that a 8.92 template or a X IDE era template?
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Tutorial guy spends about two pages explaining template.

Al he writes in the first lesson is 3 or 4 lines of code.

I want my money back!:)
 

OBW0549

Joined Mar 2, 2015
3,565
I'm loading 12F509 template out of Microchip/ASM directory. Is that a 8.92 template or a X IDE era template?
As far as I know, Microchip's PIC code templates have remained the same throughout the various versions of MPLAB. There shouldn't be any difference.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
OBW Thank you.

Full speed ahead with 8.92 then.

In lesson explanation for 8.92 is first and then X IDE. That might help.

I think the 8.92 part has more detail so that might eliminate some problems.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Stuck with X IDE.

Got this error.

'The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x5
configuration memory
program memory
Address: 0 Expected Value: 25 Received Value: 0
Failed to program device'

Something doesn't look right. Ending address hex 5?

This 12F509 goes up to 03FF.

That's enough for today.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Okay. Starting from the beginning AGAIN!

Have this file loaded in MPLAB X IDE.

Going to compile it.

Then open up IPE and program chip.

Does this template look ready to go?
 

Attachments

Top