| View previous topic :: View next topic |
| Author |
Message |
xaromar
Joined: 11 Jul 2007 Posts: 2
|
Posted: Wed Jul 11, 2007 10:56 am Post subject: Problem with _wait232 |
|
|
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 |
|
BrunoG Site Admin
Joined: 22 Nov 2005 Posts: 636
|
Posted: Wed Jul 11, 2007 10:42 pm Post subject: |
|
|
Hi,
a basic question just in case of : did you set the SW1 RX and TX switches to ON  _________________ BrunoG, Administrator |
|
| Back to top |
|
xaromar
Joined: 11 Jul 2007 Posts: 2
|
Posted: Fri Jul 13, 2007 8:00 am Post subject: |
|
|
| 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 |
|
BrunoG Site Admin
Joined: 22 Nov 2005 Posts: 636
|
Posted: Fri Jul 13, 2007 11:43 pm Post subject: |
|
|
I will check this, it's a long time since I did not use RS232 with VRStamp ! _________________ BrunoG, Administrator |
|
| Back to top |
|
shamillion
Joined: 26 Oct 2007 Posts: 5
|
Posted: Fri Oct 26, 2007 8:33 pm Post subject: VRStamp & DS1620 |
|
|
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 |
|
BrunoG Site Admin
Joined: 22 Nov 2005 Posts: 636
|
Posted: Sun Oct 28, 2007 11:14 pm Post subject: |
|
|
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 sorry, if you get this message and if you still need some help please tell me. _________________ BrunoG, Administrator |
|
| Back to top |
|
shamillion
Joined: 26 Oct 2007 Posts: 5
|
Posted: Wed Nov 07, 2007 5:30 pm Post subject: |
|
|
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 |
|
BrunoG Site Admin
Joined: 22 Nov 2005 Posts: 636
|
Posted: Mon Nov 12, 2007 12:05 pm Post subject: |
|
|
Hello,
what do you mean by scrolling really fast ?
yes put the code, I will try to see. _________________ BrunoG, Administrator |
|
| Back to top |
|
shamillion
Joined: 26 Oct 2007 Posts: 5
|
Posted: Tue Nov 13, 2007 12:03 am Post subject: Here's the code we're working on. |
|
|
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 |
|
|