That's odd. Are you using the voltages recommended in the datasheets? Try connecting an oscilloscope to the transmitter output when the communication is working, and then do the same when it stops working. That might give you some hints.
Robert
That's odd. Are you using the voltages recommended in the datasheets? Try connecting an oscilloscope to the transmitter output when the communication is working, and then do the same when it stops working. That might give you some hints.
Robert
"No one is completely worthless. They can always serve as a bad example."
Anonymous
Dear all,
My design is working.There was something wrong with 3.3V supply. But there is another problem now.
Pic18F1320 on transmitter board gives some data to xbee transmitter.It then sends data to xbee receiver.Value is received correctly by xbee receiver on receiver board.I can check it on hyper terminal.Now I want to do calculations on this data via another 18F1320 on receiver board.
The problem is for some strange reason 18F1320 pulls the voltage level down of serial data to almost 1.3V. A soon as I remove controller from circuit or reset it permanently the voltage level of serial data goes up to correct 3.3V. I have changed the controller & related circuitry as well as breadboard but to no avail?
D0 of Xbee is connected to RX of 18F1320.
any suggestions.
Well, I can only guess. You may have not set correctly I/O, ADC or other parameters of the chip yoy are using...
Ioannis
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
I already have changed the chip & verified the code and chip on another board. It just has to receive the data from Xbee receiver on its Rx pin,do some calculations & send it through Tx pin to LCD. Both Xbee & 18F1320 work fine when separated. As soon as 18F1320 is inserted in circuit something weird goes on.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
'Receiver side code
DEFINE OSC 8
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 20h ' Enable transmit, BRGH = 0
DEFINE HSER_SPBRG 12 ' 9600 Baud @ 8MHz, 0.16%
DEFINE HSER_CLROERR 1 ' Clear overflow automatically
TRISB = %00000000 ' Set RX (PortB.4) to output
char var byte
i var byte
TrisA= %00000000 'All PORTA pins configured as output
ADCON1= %11111111 'All PORTA pins configured as digital
loop:
'RCSTA = $90 ' Enable serial port & continuous receive
'TXSTA = $20 ' Enable transmit, BRGH = 0
'SPBRG = 12 ' 9600 Baud @ 8MHz, 0.16%
for i=1 to 6
Hserin [char] ' Get a char from serial port
next i
Pause 850 ' Delay for 1 usec,use larger delay for real device
'RCSTA = $90 ' Enable serial port & continuous receive
'TXSTA = $24 ' Enable transmit, BRGH = 1
'SPBRG = 25 ' 19200 Baud @ 8MHz, 0.16%
for i=1 to 6
Hserout [char]
next i
Pause 850
Goto loop ' Go back to loop and blink LED forever
;End
Bookmarks