Search found 66 matches
- 27 Aug 2007 17:24
- Forum: mikroBasic for dsPIC30/33 and PIC24 General
- Topic: DsPic Timing issues with 4 bit / 8 bit LCD routines?
- Replies: 11
- Views: 9424
The 'problem' LCD's are Optrex DMC-20481NY-LY-ABE, as well as the older version of this part with the yellow backlighting (I don't have the older number on-hand). Just to be clear, the time spent writing to the LCD is not my main concern. What is my main concern is being able to run the CPU at 117.9...
- 22 Aug 2007 20:53
- Forum: mikroBasic for dsPIC30/33 and PIC24 General
- Topic: DsPic Timing issues with 4 bit / 8 bit LCD routines?
- Replies: 11
- Views: 9424
Thanks for the offer xor, but my hardware is setup for an 8-bit interface. Four bit interface mode is slower than 8-bit mode, and my application (a production test fixture for an X-ray system) needs every bit of speed I can get. I have noticed that the four line displays need longer command and data...
- 14 Aug 2007 16:57
- Forum: mikroBasic for dsPIC30/33 and PIC24 General
- Topic: DsPic Timing issues with 4 bit / 8 bit LCD routines?
- Replies: 11
- Views: 9424
Hello Zristic, Perhaps the reason it 'works there' is because your not using the same LCD module? Two line LCD's do not have the same refresh timing as four line LCD's have. Also the timing of LCD's from different vendors is not the same. (check the data sheet for the 44780 controller chip for detai...
- 06 Aug 2007 20:16
- Forum: mikroBasic for dsPIC30/33 and PIC24 General
- Topic: DsPic Timing issues with 4 bit / 8 bit LCD routines?
- Replies: 11
- Views: 9424
V4.00 still broken with Optrex DMC20481 displays.
I've been kept away from MikroBasic for a few months, and have just gotten back to working on my old project. Using V4.00 of the compiler I still find that the LCD 8-bit timing has major problems: I am using a 30F6011A with a 7.37 mhz XT crystal. If I compile the code for 117.92 mhz and program the ...
- 15 Mar 2007 16:13
- Forum: mikroBasic for dsPIC30/33 and PIC24 General
- Topic: In-line assembler does not recognise ADDC instruction.
- Replies: 3
- Views: 3550
Thanks for the bug fix!
From now on, I'll wait for the day after a new release to report bugs!
- 08 Mar 2007 16:57
- Forum: mikroBasic for dsPIC30/33 and PIC24 General
- Topic: In-line assembler does not recognise ADDC instruction.
- Replies: 3
- Views: 3550
- 08 Mar 2007 16:51
- Forum: mikroBasic for dsPIC30/33 and PIC24 General
- Topic: In-line assembler does not recognise ADDC instruction.
- Replies: 3
- Views: 3550
In-line assembler does not recognise ADDC instruction.
The following code stops the compiler on the ADDC line, but no error message is generated:
asm
MOV _operand_one, W2
MOV #@_operand_two, W1
MOV #@_result_word, W0
MOV _adder_status, SR
ADDC W2, [W1], [W0]
MOV SR, W0
MOV W0, _adder_status
end asm
.
asm
MOV _operand_one, W2
MOV #@_operand_two, W1
MOV #@_result_word, W0
MOV _adder_status, SR
ADDC W2, [W1], [W0]
MOV SR, W0
MOV W0, _adder_status
end asm
.
- 15 Feb 2007 17:25
- Forum: mikroBasic for dsPIC30/33 and PIC24 General
- Topic: Timing problems with 4-bit Lcd functions.
- Replies: 6
- Views: 5387
- 15 Feb 2007 17:21
- Forum: mikroBasic for dsPIC30/33 and PIC24 General
- Topic: Problems with Lcd8_Out.
- Replies: 17
- Views: 13663
- 13 Feb 2007 19:42
- Forum: mikroBasic for dsPIC30/33 and PIC24 General
- Topic: GLCD problems with TIMER1 interupts
- Replies: 3
- Views: 3819
Disabling IRQ's inside LCD functions.
Disabling IRQ's inside the LCD functions would be a problem, if we disabled them at the start of the function and only re-enabled them as we exit the routine. What I'm asking about is slightly different. What if we disabled the IRQ's only during the handshaking routine that transfers a byte of data ...
- 13 Feb 2007 17:39
- Forum: mikroBasic for dsPIC30/33 and PIC24 General
- Topic: GLCD problems with TIMER1 interupts
- Replies: 3
- Views: 3819
- 13 Feb 2007 17:24
- Forum: mikroBasic for dsPIC30/33 and PIC24 General
- Topic: Timing problems with 4-bit Lcd functions.
- Replies: 6
- Views: 5387
Yes, I have experimented with setting the compiler clock frequency setting and the programmer's configuration settings seperately. I can compile my code for one speed, then program the dsPIC to run at a higher or lower speed. What I have observed is that even if I set the compiler for 58.96 mhz (XT,...
- 13 Feb 2007 17:16
- Forum: mikroBasic for dsPIC30/33 and PIC24 General
- Topic: GLCD problems with TIMER1 interupts
- Replies: 3
- Views: 3819
GLCD problems with TIMER1 interupts
I have found that the GLCD display will be corrupted if mikroBasic services interupts while writing to the LCD. I took the GLCD sample program, and added the following IRQ handler: sub procedure timer1int org $1a count_var = count_var + 1 grn_led = count_var.0 IFS0 = IFS0 and $fff7 end sub In my mai...
- 12 Feb 2007 16:26
- Forum: mikroBasic for dsPIC30/33 and PIC24 General
- Topic: Timing problems with 4-bit Lcd functions.
- Replies: 6
- Views: 5387
Actually I did modify my hardware. In theory I may not have had to do this, but I wanted to follow the reccomendations from Optrex exactly. Optrex shows the unused data lines floating. I did not want to take a chance that the LCD functions might alter the TRIS register settings for the remaining fou...
- 12 Feb 2007 16:22
- Forum: mikroBasic for dsPIC30/33 and PIC24 General
- Topic: Problems with Lcd8_Out.
- Replies: 17
- Views: 13663