Search found 12 matches

by arney
Tue Nov 29, 2005 5:51 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: RS232 communications with a PIC chip
Replies: 22
Views: 28774

Yeah, thanks, I didn't think it could be done that way, but I thought I'd ask.
by arney
Tue Nov 29, 2005 3:34 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: RS232 communications with a PIC chip
Replies: 22
Views: 28774

Another question, I meant to ask before, is, is there a way to designate HEX values in a string? What I mean is, something similar to \r or \n? like \0xFE?
by arney
Tue Nov 29, 2005 3:32 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: RS232 communications with a PIC chip
Replies: 22
Views: 28774

Yeah, I know about bypassing the voltage converter chip, but the dev board I have already has the RS232 chip in place. Also this allows me to use my PC's com port to troubleshoot, etc... And I've got the problem fixed now, so if it ain't broke...
by arney
Mon Nov 28, 2005 7:42 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: RS232 communications with a PIC chip
Replies: 22
Views: 28774

Ok, I figured it out! My RS232 level converter is faulty. It's supposed to power down between transmissions, but for some reason it wouldn't come back up after it powers down the first time while connected to the LCD. I can't explain why it works fine with my PC and not whit the LCD, though. If I ...
by arney
Mon Nov 28, 2005 4:39 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: RS232 communications with a PIC chip
Replies: 22
Views: 28774

I've used the writecommand function, but I cut those out to simplify things. I will need to be able to transmit commands also. I changed and put in the TRISC, but it was still working without it. Originally I just used the library function to set up the USART, but then when I rewrote it, without the ...
by arney
Sat Nov 26, 2005 11:19 am
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: RS232 communications with a PIC chip
Replies: 22
Views: 28774

Yeah, I didn't think hyperterminal could do raw hex codes, and thanks for the info on the RS232 error. Another thing is I made the RS232 cable twice, since a wire broke on the first one. But I'm sure I wired it correctly, especially since it's getting data across the first time I transmit. But about ...
by arney
Fri Nov 25, 2005 1:03 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: RS232 communications with a PIC chip
Replies: 22
Views: 28774

Hey, could it be because the baud rate generator can't get exactly right? I'm running the LCD at 9600, but the microcontroller is running at 9615. I'm going to try running it as slow as the LCD can go, and see if that'll take care of the problem. Also, in the documentation, it lists the jumper ...
by arney
Wed Nov 23, 2005 5:38 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: RS232 communications with a PIC chip
Replies: 22
Views: 28774

The HEX terminal is just a terminal program that you can type in HEX values and send them. This allows me to play around with the different commands. I didn't know how to send these with hyperterminal. I'll double check things, and try out what you suggested. I probably won't get a chance to get ...
by arney
Wed Nov 23, 2005 4:00 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: RS232 communications with a PIC chip
Replies: 22
Views: 28774

I don't need "delays", but I do need to write to the LCD, go do X, then update the LCD. I can only write to the LCD the first time. I tested to see how long I could go before things stopped working...
This is the function I wrote:

void writeLCD (char txdata)
{
TXREG = txdata;
while(!TXSTAbits ...
by arney
Wed Nov 23, 2005 3:06 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: RS232 communications with a PIC chip
Replies: 22
Views: 28774

Yeah, sorry the lines are out of order. I tried checking before the first, between each one, and after the last just for OCD sake. I also used a HEX terminal program to talk to the LCD and send it commands.
by arney
Wed Nov 23, 2005 1:38 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: RS232 communications with a PIC chip
Replies: 22
Views: 28774

Sorry for the delay, I've been out of town looking for a house.
I don't use any functions or anything, I just load the data into the transmission register. That initiates the transmission. I then wait till the transmission is done before I transmit again. I've transmitted to a terminal program on a ...
by arney
Fri Nov 11, 2005 9:33 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: RS232 communications with a PIC chip
Replies: 22
Views: 28774

RS232 communications with a PIC chip

I'm working on a project, where a PIC18F4620 is talking to a 2041 model LCD over RS232. I can transmit data to the LCD just fine as long as it's all sequential, but as soon as I stop/delay between characters, the LCD stops responding. I've tried varying lengths of characters/commands, and it all ...