Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

A novice question on MPLAB.

Status
Not open for further replies.

swapan

Full Member level 4
Joined
Feb 20, 2009
Messages
199
Helped
27
Reputation
54
Reaction score
24
Trophy points
1,298
Location
Kolkata
Activity points
2,806
Friends,

Being a novice I place a curiosity to experts regarding use of MPLAB IDE. I undertake small programs for hobby. The codes are developed on MPLAB IDE v8.3 and using assembly language. Recently I came across an older version of MPLAB which is v5.7. In that version there are some functions which seemed to me very interesting and useful.

Firstly, there is provision of defining equates like;
#define start PORTA,2
thus using the 'start' equate instead of PORTA,2 in the rest of the program.

Secondly, provision for use of macros are there like;

Code:
selfcheck macro a, b
	movlw b
	xorwf a,0
	btfsc status,z
	endm

Later simply calling this Macro and giving the value of a and b purpose could be served number of times.


Thirdly, there is provision of choosing Case Sensitivity. I mean, in 5.7 version, if case sensitivity is turned off, while building, it will not matter which case has been used to write the code. But in case v8.3 error will be shown if registers, bits etc. are written in lower case or lower/upper mixed character.

I like to know if all the above provisions are there in MPLAB v8.3. If yes, where to see and how to use.

regards

swapan
 

Go to Help/Topics/MPASM Assembler
 

Hi,

First of all upgrade to the latest version of Mplab 8.83
You have to uninstall the old version of MPlab but your project / work files should be retained - however always take a backup of them - just in case !

Those macos and defines are standard to any version of assembler, just that you happen to notice them when looking at some old code.

Same with the case sensitivity it a standard feature you can activate or disable in the Project ' Build Options'
 

Hi wp100, many thanks for your guidance. I am thankful to btbass also. I was trying to find out ways to use macros and defining constants going through help topic on MPASM Assembler as suggested by btbass. I successfully used the two items but unable to use case sensitivity option. By that time post of wp100 reached which helped me a lot. Now case sensitivity option is amply clear to me. Again thanks to both of you.

swapan
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top