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.

[SOLVED] How to send concatenate variables (characters) to a macro without comma in MPASM?

Status
Not open for further replies.

kemalkemal

Member level 1
Member level 1
Joined
Jan 27, 2013
Messages
38
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Visit site
Activity points
1,672
Hi
I write a macro to send a character to a LCD module.
Code:
load		macro		c_har
				movlw		c_har
				banksel		LCD_DATA
				movwf		LCD_DATA
				call		delay_100u
				banksel		LCD_CTRL
				bsf			E
				call		delay_100u
				bcf			E

				endm
With this code i could send just one character. With multiple arguments I can send multiple characters but it is not the same as concatenate characters. What should I do? (In short I want to be able to send a sentence at once)
 

Hi
I write a macro to send a character to a LCD module.

With this code i could send just one character. With multiple arguments I can send multiple characters but it is not the same as concatenate characters. What should I do? (In short I want to be able to send a sentence at once)


Hi,

There are several ways of sending out data to the lcd, below are examples in 18F assembler which you should be able to covert to 16F.

Also have a look at this tutorial http://www.epemag.wimborne.co.uk/resources.htm
 

Attachments

  • lcddemo.zip
    4.1 KB · Views: 72
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top