www.micro-examples.com
Microcontroller circuits and source code examples
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 

Problem with _wait232

 
Post new topic   Reply to topic    www.micro-examples.com Forum Index -> General Discussion About VR Stamp
View previous topic :: View next topic  
Author Message
xaromar



Joined: 11 Jul 2007
Posts: 2

PostPosted: Wed Jul 11, 2007 10:56 am    Post subject: Problem with _wait232 Reply with quote

hello,
I must make an application where receipt a data through rs232, I use the function _wait232 but never receipt nothing, I have the configuration by defect of the examples, my question is: is necessary to change some parameter for receive data by rs232?

Thanks a lot.
Back to top
View user's profile Send private message
BrunoG
Site Admin


Joined: 22 Nov 2005
Posts: 636

PostPosted: Wed Jul 11, 2007 10:42 pm    Post subject: Reply with quote

Hi,

a basic question just in case of : did you set the SW1 RX and TX switches to ON Question
_________________
BrunoG, Administrator
Back to top
View user's profile Send private message Send e-mail
xaromar



Joined: 11 Jul 2007
Posts: 2

PostPosted: Fri Jul 13, 2007 8:00 am    Post subject: Reply with quote

thanks for your answer, yes, the switch is ON, the problem is only for receive, i can send perfectly, but never receive
Back to top
View user's profile Send private message
BrunoG
Site Admin


Joined: 22 Nov 2005
Posts: 636

PostPosted: Fri Jul 13, 2007 11:43 pm    Post subject: Reply with quote

I will check this, it's a long time since I did not use RS232 with VRStamp !
_________________
BrunoG, Administrator
Back to top
View user's profile Send private message Send e-mail
shamillion



Joined: 26 Oct 2007
Posts: 5

PostPosted: Fri Oct 26, 2007 8:33 pm    Post subject: VRStamp & DS1620 Reply with quote

I have written a code using the Atmel stamp with a DS1620 and I want to use this in regards to the VR stamp. However, I don't know how to call out the pins of the stamp to a certain variable. Would something like this work:

ds1620_dq=p1in
ds1620_clk=p2in

to transmit data from one pin to another? And also, will the TxD work with RS232 in regards to a serial LCD (i.e. SerLCD from SparkFun)?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
BrunoG
Site Admin


Joined: 22 Nov 2005
Posts: 636

PostPosted: Sun Oct 28, 2007 11:14 pm    Post subject: Reply with quote

shamillion, I'm not sure to understand what is your problem, is it about individual bit access, or define preprocessor directive ?

Just saw that I completely forgot to answer to xaromar Embarassed sorry, if you get this message and if you still need some help please tell me.
_________________
BrunoG, Administrator
Back to top
View user's profile Send private message Send e-mail
shamillion



Joined: 26 Oct 2007
Posts: 5

PostPosted: Wed Nov 07, 2007 5:30 pm    Post subject: Reply with quote

I'm attempting to use the VR Stamp's RS232 connections to receive a 9 bits of data from a DS1620 and send a message to a serial LCD. I used the Wait232 to receive the information and the Send232D8 to spit out the message with the temperature value.

To test, I tried sending a hello world message to the LCD. It worked, but it was scrolling really fast. After I made some changes, it stopped working.

Am I using the right commands to send/receive the data and is it possible for you to look at the code?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
BrunoG
Site Admin


Joined: 22 Nov 2005
Posts: 636

PostPosted: Mon Nov 12, 2007 12:05 pm    Post subject: Reply with quote

Hello,

what do you mean by scrolling really fast ?

yes put the code, I will try to see.
_________________
BrunoG, Administrator
Back to top
View user's profile Send private message Send e-mail
shamillion



Joined: 26 Oct 2007
Posts: 5

PostPosted: Tue Nov 13, 2007 12:03 am    Post subject: Here's the code we're working on. Reply with quote

This is based on the RS232 example that showed up on the FluentChip help window.

#include <other.h>
#include <techlib.h>
#include <string.h>
#include "demo_io.h"
#include <stdio.h>

void main()
{
_Init232();

if (_GetBaudRate() != BAUD9600){
_SetBaudRate(BAUD9600);
}

for(;;)
{
_SendString232((long)"\n\rHello World\n\r");
}
}
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    www.micro-examples.com Forum Index -> General Discussion About VR Stamp All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group