must be a copy/paste error...Code:SerOut Inputsig............ Serin InputSig............
must be a copy/paste error...Code:SerOut Inputsig............ Serin InputSig............
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Originally Posted by mister_e
Not sure what you are trying to tell me but I'm still stuck.
you send on the same pin you receive?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Oh lol yea guess that wouldn't work well thanks... hmm How do you send to serial port on a different serial pin? Now I understand the problem im confused on how to fix it lol.
I seem to have a lot of "Only learning opportunities."but atleast im learning
how about something like
Code:'12F675 @ __CONFIG _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_ON & _MCLRE_OFF & _BODEN_ON DEFINE OSCCAL_1K 1 INCLUDE "modedefs.bas" TX_Pin var GPIO.0 'To DB9 RX pin 2 RX_Pin var GPIO.1 'To DB9 TX pin 3 TRISIO.0 = 0 'Set GPIO.0 to output. TRISIO.1 = 1 'Set GPIO.1 to input ANSEL = 0 'disable ADCs CMCON = 7 'disable comparator AChar var byte tx_pin = 0 'inverted mode idle state achar="A" Pause 100 'OSC settle time... loop: SerOut tx_pin,N2400,["Waiting for ",achar,13,10] SERIN rx_pin,N2400,[achar] serout tx_pin,N2400,["Got it...",13,10] goto loop
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Thank you very much Mister_e that works perfect and will get me a good start on serial
Its so great to have cool people around that help us noobs![]()
You're welcome. Great to hear it help you.
Have fun!
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks