| View previous topic :: View next topic |
| Author |
Message |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Aug 19, 2004 11:07 am |
|
|
| Quote: | | When I use INVERT it becomes hot. My chip become so hot, I am afraid it burned. |
When the software USART is put into INVERT mode, the idle state
from the RS232 Tx pin (pin B7) is a logic low level (0 volts).
So if your PIC becomes very hot when it puts out a 0v level on the
Tx pin, then something is very wrong. Just putting out a logic low level
should not cause this problem. I think you have the Tx pin connected
to the wrong pin on the LCD.
I think you need to study the manual that came with the LCD, and
make sure you have the Tx pin (pin B7) on the PIC connected to
the Rx pin on the LCD. Also connect a wire between the Ground pin
(Vss) on the PIC and the GND pin on the LCD. Also connect +5v
to the +5v pin on the LCD and the PIC.
I can't fix your wiring problems over the internet. You will have to
study the LCD manual and fix it. |
|
 |
Guest
|
|
Posted: Thu Aug 19, 2004 11:23 am |
|
|
| It looks rightnow it is working. I will do final tunning about the program. |
|
 |
Guest
|
|
Posted: Thu Aug 19, 2004 11:31 am |
|
|
I do not know what is the reason, but the thing is I have to connected the RA5/MCLR?VPP pin to high to see the output.
Thank you PCM! |
|
 |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Aug 19, 2004 11:41 am |
|
|
| Quote: | I do not know what is the reason, but the thing is I have to
connected the RA5/MCLR/VPP pin to high to see the output. |
Download the 16F819 data sheet, here:
http://ww1.microchip.com/downloads/en/DeviceDoc/39598d.pdf
Look at Figure 12-2 "Recommended MCLR Circuit".
It shows that MCLR must be connected to Vdd (+5v for your circuit)
with a 1K resistor. |
|
 |
Guest
|
|
Posted: Thu Aug 19, 2004 12:38 pm |
|
|
Thank you very much, I am thinking to ask you about it, you already got the answer. I really appreciate it.
Best regard |
|
 |
Guest
|
|
Posted: Tue Aug 24, 2004 2:05 pm |
|
|
| I find another problem with it. That is when I use printf("reading:%lu",i) or puts("another try");the LCD does not show stable characters, it sometimes show weird characters, what might be the correction? |
|
 |
Guest
|
|
Posted: Tue Aug 24, 2004 2:20 pm |
|
|
I setup the output location, but it does not follow the command to the position. my cursor position command is
| Code: |
void LCDSetCursorPos(int8 x, int8 y)
{
putc(17);
// delay_ms(10);
putc(y);
// delay_ms(10);
putc(x);
delay_ms(100);
} |
what might be wrong? |
|
 |
|