thanks for replay
please tell me more about how can i send 4bit data with PIC.
for example i want to send a "A" character over RS232(transmitter) and i should define "B0 var byte" in PIC is it true?
byte = 8bit but i must send 4 bits in transmitter(D0...D30) how can i do it ?and how about receiver?

final question: you said me "On the trnasmitter, anytime a bit goes low" what does it mean?
thanks in advance

You have several things all mixed together. Sending data with the RF transmitter and receiver is not at all related to sending data over an RS-232 connection.

On your transmitter module when all four of the data bits are high or logic '1' the transmitter is idle. When one or more of the four data bits makes a transition from the logic '1' or high state to the logic '0' state then the transmitter will send a total of 10 bits. Six of the bits will be the address bits selected by the switches and the remaining four wil be the data bits including the one which went low to trigger the process. That is why I said you cannot transmit the data "1111" because there is no way to trigger that transmission. Only nybbles (4-bit quantities) with at least one zero in them can be transmitted.

You cannot transmit arbitrary ASCII characters with this system even if you break the characters into 4-bit nybbles because you cannot transmit "1111" which you would need to do for the character 'O' which in hexadecimal is 0x4F. You could do it with one or two or three bits at a time with the forth bit being an active low strobe.

as you told me i did low one of the pins of data (D0) that never all pins goes high(idle state).
and send 3bits of a variable to transmitter with this address: A0=high and A3= high and send data from pc (Typing) but i didn't see anything in receiver.
should i do any working?

If you connect any kind of square wave generator to D0, then a receiver with the same address as the trnasmitter should cause it's D0 to beat up and down with some delay.

BTW you need to make sure that each one of the address bits has a defined level. Make them either one or zero. DO NOT leave them floating or unconnected. It will increase power consumption and lead to unreliable operation.

If you are referring to the data sheet, the data pins set to the high state when powered on. That is simply going to a known state. They will follow the transmitted data when it is received.

As has been noted above, the devices are not intended for communication. The data they send are codes selected by the address switch selection. If the received code matches the selection at the receiver, then the control function (open the garage door) is enabled.

ok as you told me this module not great for sending data and i using this module due to have address code for securing data.
but i have other module that haven't any hardware code you can see in this attachment.
i know this module is great for this project but i don't know how can i set code for this because when sending data from transmitter, receiver getting unwanted noises very fast and show in my lcd maybe because this modules work in 915MH near mobile frequency.
i really need to set any code maybe software that these modules getting only data from themselves not other data.i could send and receive my data from this modules very great but only getting unwanted data.
can you help me?

There is some problem in understanding here - the Tx & Rx devices do not work as and are not meant to send variable data. The sole function of the transmitter is to send a code that results from the address switch selection. The sole purpose of the receiver is to compare the received code with the set address bits it has. If they match, it generates a logic signal that can start opening/closing a garage door.

If one wished to use one of these transmitters to send data, he would have to make up a table of codes, one for each address switch combination. These would be selected by using the data to address the chip in place of the switches. The receiver is very limited. It might be necessary to scan through the addresses to generate a code match, which could then be decoded back to ASCII or whatever. The problem is that there will be some minimum time to scan all address switch combinations and wait for a match indication. That time is then the minimum time for each transmission. And there's no way to handshake the process.

Smoke signals might be faster.

Reading the brag on the switch to FSK indicates that the maker is quite happy about signal-to-noise improvements. The transmission only has to cover 50 meters or so. Reading an earlier post or the data sheet will let you discover why the data bits come on in the high state.

There is some problem in understanding here - the Tx & Rx devices do not work as and are not meant to send variable data. The sole function of the transmitter is to send a code that results from the address switch selection. The sole purpose of the receiver is to compare the received code with the set address bits it has. If they match, it generates a logic signal that can start opening/closing a garage door.

If one wished to use one of these transmitters to send data, he would have to make up a table of codes, one for each address switch combination. These would be selected by using the data to address the chip in place of the switches. The receiver is very limited. It might be necessary to scan through the addresses to generate a code match, which could then be decoded back to ASCII or whatever. The problem is that there will be some minimum time to scan all address switch combinations and wait for a match indication. That time is then the minimum time for each transmission. And there's no way to handshake the process.

Smoke signals might be faster.

Reading the brag on the switch to FSK indicates that the maker is quite happy about signal-to-noise improvements. The transmission only has to cover 50 meters or so. Reading an earlier post or the data sheet will let you discover why the data bits come on in the high state.

Click to expand...

hi
thanks but i have already stated that (HM-T and R) this is different and haven't any address code. and have rs232 input for data transmission look at the data sheet.
due to haven't any address code i need to make software code maybe use "CRC based framing"
i am looking for software programming.

Either you are not reading the datasheets or you do not understand what you are reading. Both devices have six, count 'em six, address bits. In order for proper operation all six bits MUST be hardwired to GND or VCC to select one of 64 unique addresses. THEY MUST BE THE SAME FOR BOTH the transmitter and the receiver or there will be no data coming out of the receiver. What do you not understand about this process?