Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

NG RS232 Tutorial ..... How To monitor the data ?

Status
Not open for further replies.

aljamri

Member
Hi,
I'm doing NG Tutorial 7 which uses RS232, using USB to RS 232 converter cable and wants to know, which PC program can I use to read/manipulate the RS232 I/Os ?
Thanks
 
I don't remember putting it on!!! I use it to debug my C# projects via "com0com" I link hyper terminal to both ISIS and visual studio....very strange....

"I wonder if Visual studio installs it!!!!"
 
Last edited:
Well I've got Visual Studio 2010 installed on that same Win 7 Home Premium laptop and still no hyperterminal...
 
Last edited:
You can also use e.g. the python programming language with the pyserial or pyvisa libraries to talk to RS-232 devices. Get portmon from sysinternals to look at the stuff that goes on during RS-232 transactions, as it can help debug things sometimes.
 
Thnks for all, Ive found several alternatives, used them and have no response, only getting "0x00" which indicates no data recived. I've used N.G. first circuit in
. Is that fine or shall I use the second circuit in the same page?
Thanks
 
Last edited:
Thanks Nigel,

I was much worried about the MAX 232 connection because I've read some where that it has two converters, one software and the other hardware, so that I thought I'm using the wrong one.:confused:
 
One step on the right way achieved, My PIC (16F628A) got connected into my PC (windows7), using very light software called Terminal the attachment shows a screen shot of sent and received data using the underneath code found in Mikro C help for USART.

EDIT: here is the link for Terminal:
https://www.opend.co.za/software/terminal/index.htm

Code:
unsigned short i;
 
void main() {
 
// Initialize USART module (8 bit, 9600 baud rate, no parity bit..)
Usart_Init(9600);
 
do {
if (Usart_Data_Ready()) { // If data is received
i = Usart_Read(); // Read the received data
Usart_Write(i); // Send data via USART
}
} while (1);
}//~
 

Attachments

  • Terminal 01.png
    Terminal 01.png
    71.3 KB · Views: 200
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top