Hi mackrackit
I did and I am still hoping to get it working: Post #893 above has ON INTERRUPT -DISABLE-ENABLE-RESUME in the code.Yes, I told you to use DISABLE-ENABLE-RESUME... I thought you were playing with ONINTERUPPT.
Thanks for the TX program, I had to change:
To:Code:@DEVICEPIC12F675,MCLR_OFF,INTRC_OSC_NOCLKOUT,WDT_OFF,BOD_OFF @ DEVICE PWRT_ON,PROTECT_OFF
To make the program compile, are the above changes ok?Code:@ __config _INTRC_OSC_NOCLKOUT & _WDT_OFF & _MCLRE_OFF & _CP_OFF & _BODEN_OFF & _PWRTE_ON
So what happened when I ran it? Well the RFEN led lit for five seconds immediately either button was pressed but nothing was transmitted. I then commented out the delay loop, the RFEN led lit when buttons pressed then went off when button released - still no data sent.
I see where you're coming from with the IF - THEN with the program then going onto the ENDIF statement.
I made a small change adding:
The result was the RFEN led lit for five seconds immediately either button was pressed but nothing was transmitted (as before) however, when the delay loop was commented out data was trnsmitted.Code:IF (GPIO.3=1) AND (GPIO.4=1) THEN goto Main if (GPIO.3=0) OR (GPIO.4=0) THEN 'Look for ENDIF
It seems to me that the delay loop is killing the data transfer. What do you think?
I've saved Bruce's original code as Tx - Rx Master, works a treat.But first you may want to try Bruce's code as he wrote it to make sure your hardware is working correctly.
Dave




Bookmarks