Active low transmitter question


Closed Thread
Results 1 to 40 of 56

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default Re: Active low transmitter question

    Hi Ioannis - Looking back at the thread I've done a pretty miserable job of it so far certainly information wise and I apologise to everyone.

    *I think it would be best to have the Data sheet of the that transmitter.* For sure, I'll add a screen shot then a full data sheet if needed.

    I intend to use maybe a 12F683 to pull a Transmitter Input pin LOW for a few m/s to make it transmit then hold the Tx pin high to stop false triggering via floating voltages if this is safe to do this without damaging the transmitter or pic. I'll add some code as soon as possible, here's the screenshot:

    Name:  Tx.JPG
Views: 2903
Size:  125.3 KB

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: Active low transmitter question

    I intend to use maybe a 12F683 to pull a Transmitter Input pin LOW for a few m/s to make it transmit then hold the Tx pin high to stop false triggering via floating voltages if this is safe to do this without damaging the transmitter or pic
    what is your doubt ?

    the data so far indicates no need for pullups , the schematic shows none.

    a pic pin when configured as output will never "float" its either high or low when set
    Warning I'm not a teacher

  3. #3
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default Re: Active low transmitter question

    "what is your doubt ?

    the data so far indicates no need for pullups , the schematic shows none.

    a pic pin when configured as output will never "float" its either high or low when set"


    Hi Richard / Everyone - Thanks for your input. What you write makes total sense, I completely got the wrong end of the stick,
    lack of knowledge on my part, so no pullups needed yet (bear with me, I think I will need one on the Rx though pulldown)

    Tx first though:

    Here is my simple Tx test code given no pullups needed, Tx driven directly by OUTPUT pin state.


    '12F683'

    ANSEL = %00000000 'Disable analog select so ports work as digital i/o
    CMCON0 = %00000111 'Disable analog comparators
    OPTION_REG.7=1 'Disable internal pull-ups

    TRISIO = %00000000 'Set to OUTPUT
    GPIO = %11111111 'Set all outputs HIGH to stop a false Tx

    TestTx VAR BYTE

    FOR TestTx = 1 TO 3 'Test transmit loop

    LOW GPIO.4 'Pull Tx line LOW on transmitter to cause a Tx
    PAUSE 50 'Wait for Tx
    HIGH GPIO.4 'Stop Tx pull line HIGH
    PAUSE 2500 'Wait 2.5 seconds

    NEXT TestTx
    END

    So how does this look for basic a Tx test loop?

    I'll post the Rx Data sheet and the reason given what Richard said above why I think I need a pulldown resistor later tonight.

    Cheers David

  4. #4
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default Re: Active low transmitter question

    Name:  Rx.JPG
Views: 2920
Size:  102.2 KB

    Here's the Rx schematic. When an Rx is received it outputs 5v onto the corresponding pin, which will then be read by the pic.

    My question now is (and this should have been the question all along):

    On the 12F683 pic I need to set a Tris pin to INPUT and read the pin for state change from LOW to High as the Rx is received.

    TRISIO = %00000001 'Set to Input

    TestRx 'LABEL
    Do SomeThing 'LABEL

    TestRx
    IF
    GPIO.0 = 0 THEN TestRx 'Nothing has happened continue to loop and check for state change

    IF

    GPIO.0 = 1 then DoSomeThing

    DoSomeThing

    Set alarm off in this case........

    So, here's the $64k question from me: How do I hold GPIO.0 LOW until a 5v Rx is received? Is it a pulldown resistor?

Similar Threads

  1. better coding methods to freeing active ram in small pics
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 21st December 2012, 17:47
  2. Active low input?
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th August 2010, 20:31
  3. Low Power Transmitter in a TO39 Package
    By BobP in forum Off Topic
    Replies: 2
    Last Post: - 29th October 2008, 10:28
  4. active LCD with input pen
    By micro in forum Off Topic
    Replies: 2
    Last Post: - 25th December 2005, 20:09

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts