Using FullDuplexSerial with a single wire
DiverBob
Posts: 1,116
I have coded a MCP12F683 (4 channel ADC - 8 pin chip) to send 4 channel ADC information to the uOled-96. So far it has been a one-way download only, with the ADC continously sending the data every 1 second, but due to the current draw I want to code a signal to start the ADC process and have the ADC in sleep mode while not needed. Before I dive into changing the code for this, is there any advice from someone who has tried this before (example code always appreciated - why re-invent the wheel)? I am tying the IO line to VCC via a 4.7K resistor and the line itself is going through a resistor prior to going into the prop, otherwise it is a direct connection between the two processors. On the 12F683 side I am programming it using PicBasic Pro and have been using the DEBUG command to transfer data at 2400 baud (I know, slow but speed isn't the issue here, power consumption is!). I plan on using the DEBUGIN command to read the output from the prop.
Thanks for any help
Bob Sweeney
Thanks for any help
Bob Sweeney
Comments
you can use the fullduplexserial-object (FDS) with one wire
you define the same pin for tx and rx and use mode 4
the FDS has four modes of operation
it is described in the sourcecode
take a look into this thread
http://forums.parallax.com/showthread.php?p=680429
best regards
Stefan
Post Edited (StefanL38) : 12/26/2008 10:54:17 AM GMT
I'll try this out later today and report back on my success (thinking positively!)
Bob Sweeney