Ok, ignoring the video and the different device and back onto this one.
How do I mimic a 'single momentary' button press to ground on Transmitter Input pin1 using a pic instead of a button? do I:
Set TRISIO = %11111110 'set bit 0 to output
Then set GPIO.0 = 0 'Pulls Tx pin1 LOW causes a Tx
Pause 50ms 'Alow time for Tx
Then set GPIO.0 = 1 'pulls Tx pin1 High, from data sheet Tx Input pins are internally pulled high anyway
Or would the above cause two Tx's (two state changes).
Or do I:
Set TRISIO = %11111110 'set bit 0 to output
Then set GPIO.0 = 0 'Pulls Tx pin1 LOW causes a Tx
pause 50ms 'Alow time for Tx
Then Change TRISIO = %00000001 'Set bit.0 to input and mimic a floating open switch, Tx Input pins are internally pulled high (data sheet)
And then when I want to Tx again set the TRIS bit 0 then GPIO.0 LOW etc.
Bookmarks