Hot!usart 18F45K22

Author
rogerpic
Starting Member
  • Total Posts : 50
  • Reward points : 0
  • Joined: 2018/01/06 04:06:07
  • Location: 0
  • Status: offline
2018/01/29 04:52:11 (permalink)
0

usart 18F45K22

I have the next problem, i want to make a connection with my pc with a pic 18f45k22. A connection usart
i tried to make the files with code configurator. I can send characters from the pic 18f45k22 to the pc but when i want to make
a connection from pc to pic i doesn't work. What i mean is i program that if i push "1" then must going a signal from the pc and a usb convertor trough my pic. If 1 is pressed then must there an output going high from my pic 18f45k22 that doesn't work do i something wrong i don't know. I measure no signal with my oscilloscoop at the output. Also the input goes high at the rx input from my pic18f45k22 but it seems to be no response at the output at rb0. is it the program i don't know
#1

7 Replies Related Threads

    mbrowning
    Just a Member
    • Total Posts : 1153
    • Reward points : 0
    • Joined: 2005/03/16 14:32:56
    • Location: Melbourne, FL
    • Status: online
    Re: usart 18F45K22 2018/01/29 10:40:42 (permalink)
    0
            case '0' : IO_RA0_SetHigh();
            case '1' : IO_RA0_SetLow();

    Seems that pressing "1" will not set RA0 high.

    Oh well - there's always next year
    #2
    qɥb
    Monolothic Member
    • Total Posts : 3332
    • Reward points : 0
    • Joined: 2017/09/09 05:07:30
    • Location: Jupiter
    • Status: offline
    Re: usart 18F45K22 2018/01/29 14:26:50 (permalink)
    +1 (1)
    '0' will set RA0 high then low.
    '1' will just set RA0 low.
    You won't see anything if you're watching RB0 !

    This forum is mis-configured so it only works correctly if you access it via https protocol.
    The Microchip website links to it using http protocol. Will they ever catch on?
    PicForum "it just works"
    #3
    mbrowning
    Just a Member
    • Total Posts : 1153
    • Reward points : 0
    • Joined: 2005/03/16 14:32:56
    • Location: Melbourne, FL
    • Status: online
    Re: usart 18F45K22 2018/01/29 14:30:57 (permalink)
    0
    Ha - I didn't even notice there's no break statement after each case. And the OP was watching RB0 rather than RA0. Must need new glasses.

    Oh well - there's always next year
    #4
    rogerpic
    Starting Member
    • Total Posts : 50
    • Reward points : 0
    • Joined: 2018/01/06 04:06:07
    • Location: 0
    • Status: offline
    Re: usart 18F45K22 2018/05/16 06:02:33 (permalink)
    0
    The problem think  has a solution but what i know want to do is to receive a signal from a TSOP sensor and that signal to lead to a controller so that controller must measure that signal, i did it maybe 30 times to make or design that program. but always goes it like shit. no what i wrong do i dont know but maybe someone can me help on pad. it seems that i must learn the debug functions first? I thinks so , no?
    #5
    qɥb
    Monolothic Member
    • Total Posts : 3332
    • Reward points : 0
    • Joined: 2017/09/09 05:07:30
    • Location: Jupiter
    • Status: offline
    Re: usart 18F45K22 2018/05/16 06:24:36 (permalink)
    0
    I have no idea what you just meant to say, but if you have some code that doesn't work, show us the code.
    We can't comment on code we can't see.
     

    This forum is mis-configured so it only works correctly if you access it via https protocol.
    The Microchip website links to it using http protocol. Will they ever catch on?
    PicForum "it just works"
    #6
    rogerpic
    Starting Member
    • Total Posts : 50
    • Reward points : 0
    • Joined: 2018/01/06 04:06:07
    • Location: 0
    • Status: offline
    18F45K22 2018/05/16 07:29:56 (permalink)
    0
    There will be a next problem
    post edited by rogerpic - 2018/05/16 09:49:03
    #7
    rodims
    Super Member
    • Total Posts : 1377
    • Reward points : 0
    • Joined: 2009/02/10 11:08:59
    • Location: 51.9627, 7.6262
    • Status: offline
    Re: usart 18F45K22 2018/05/16 08:48:18 (permalink)
    0
    What does this have to do with your original topic / the title of this post ?
    If you are just recycling your old thread, you should better create a new post to avoid confusion and wasted time.
     
    [edit: There will be a next problem means: he will make a new post. ]
    post edited by rodims - 2018/05/16 11:00:13
    #8
    Jump to:
    © 2018 APG vNext Commercial Version 4.5