Hello dear friends,
I am a newcomer in PIC world. I've started to learn PBP by using of the PM assembler and Ive found it very easygoing and fluent. And I have never ever faced with any serious problem on what ever I have done with this well-known assembler.
For achieving to instant interrupts I decide to use the valuable codes and methods of Mr. Darrel Taylor. And as you know it needs to get involved with MPASM.
With MPASM I can handle inputs and outputs as well, but the first serious problem is with the LCDOUT command. For example this below code shows text on all HD44780 LCDs by using of the PM assembler, but if I compile the same code with MPASM, the LCD will absolutely frustrate to show even an unknown character. There is nothing really.
Would you please let me know, where is the Achilles heel?
LCD:4*20 (same story with other HD44780 lcds such as "1*16" & "2*16" etc)
Herewith there are some screen shots of what I have used:
Attachment 7831Attachment 7832Attachment 7833Attachment 7834
All suggestions are welcome and I am just waiting...
Best regards,
Andy
P.S. Windows 7 - 32bits as O.S. and I've already added PBP and MPASM to the "PATH" of O.S. (windows path I mean)
I am a newcomer in PIC world. I've started to learn PBP by using of the PM assembler and Ive found it very easygoing and fluent. And I have never ever faced with any serious problem on what ever I have done with this well-known assembler.
For achieving to instant interrupts I decide to use the valuable codes and methods of Mr. Darrel Taylor. And as you know it needs to get involved with MPASM.
With MPASM I can handle inputs and outputs as well, but the first serious problem is with the LCDOUT command. For example this below code shows text on all HD44780 LCDs by using of the PM assembler, but if I compile the same code with MPASM, the LCD will absolutely frustrate to show even an unknown character. There is nothing really.
Would you please let me know, where is the Achilles heel?
LCD:4*20 (same story with other HD44780 lcds such as "1*16" & "2*16" etc)
Code:
define osc 20define lcd_dreg portb
define lcd_dbit 4
define lcd_rsreg portb
define lcd_rsbit 1 '* Reset Bit port B.1
define lcd_ereg portb
define lcd_ebit 0 '* Enable Bit port B.0
define lcd_bits 4
define lcd_lines 4
main:
lcdout $FE,1
lcdout $FE,$C0,"**Second line**"
lcdout $FE,$94,"******Third 3 Line"
lcdout $FE,$D4,"****** 4 th LINE"
lcdout $fe,2,"Goto First 1st LINE"
Attachment 7831Attachment 7832Attachment 7833Attachment 7834
All suggestions are welcome and I am just waiting...
Best regards,
Andy
P.S. Windows 7 - 32bits as O.S. and I've already added PBP and MPASM to the "PATH" of O.S. (windows path I mean)