MPLAB X IDE 4.00 Programming 10F200 2017

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
I put the 2017 in there so somebody Googling knows it's not one of the old links.

I have X open. Let me create a new project.

Goal is to use Debug features.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Loaded Assembler template for 10F200.

I will leave it as is.

It loads calibration value into OSCAL.

It creates a variable TEMP.

That's good enough to start using some features in MPLAB.

Will go at it in the morning.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
This time it was 'Build for Debug'.

Is that correct for using Debug features?

It is a clone PICKit 3.

Up until now all I've done is compile in X and then program 10F200 with IPE.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Thank you Bebe!

Will do what ever can be done with this setup.

It will be tomorrow.

'That's a fact, Jack!'-Bill Murray movie.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
;***** VARIABLE DEFINITIONS
UDATA
sGPIO res 1 ; shadow copy of GPIO

He says UDATA and RES are directives.

Where are the definitions for those?

MPASM help I guess.
 

OBW0549

Joined Mar 2, 2015
3,566
He says UDATA and RES are directives.

Where are the definitions for those?
See here. The UDATA directive declares a chunk of uninitialized data-- i.e., all or part of the PIC's data registers. The RES directive means "reserve" and is used to declare user variables and their size.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Thank you OBW!

This post editor is not holding tabs and indentation from cut and paste.

Let me try typing this with proper indentation.

UDATA
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Thank you Max!

What about this cut and paste code snippets and keep the formatting?

I have a question about code.

What about this '3 column' good programming practice?

First column is for labels and on and on.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Thank you Max!

Okay. I ran across EQU used with a 16F84.

Is EQU available for 10F200 and just using UDATA instead or do different groups of PIC's use

different Assembler directives and related Assembler methods or programming?

Now it's breaktime!
 

be80be

Joined Jul 5, 2008
2,395
Dear god not EQU lol it does the same thing as udata but its not done by the compiler you have to figure where it's going to put your variables.

In a single assembly file program, equ is commonly used to assign a variable name to an address location in RAM. Do not use this method for assigning variables when building a linked project; use a res directive inside a data section directive (idata, udata).
 
Last edited:

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Thank you Bebe!

Okay. So EQU is the way 16F84 does it and probably 16Cxx PIC's.

10F200 uses revised way. Got it!!
 
Top