Resetting a slave from master mcu


Closed Thread
Results 1 to 26 of 26

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: Resetting a slave from master mcu

    crap, I figured you were a kid ..... I always put the pics in sockets, saves a lot of F-ups. For transistor, logic level MOSFET is good to use. The logic level means it will be full on with 5 volts on gate, no resistors required.... N-channel like BS170 ... with this, the reset is a high pulse on master...(dah)
    Name:  icsp.JPG
Views: 2640
Size:  60.6 KB
    Last edited by amgen; - 1st October 2024 at 01:47.

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


    Did you find this post helpful? Yes | No

    Default Re: Resetting a slave from master mcu

    I'm doing regular ICSP programming for now
    any pic programmer worth its salt can program chips that support LVP in "regular ICSP" mode without that nasty hv pulse being needed at all
    Warning I'm not a teacher

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Resetting a slave from master mcu

    Quote Originally Posted by richard View Post
    any pic programmer worth its salt can program chips that support LVP in "regular ICSP" mode without that nasty hv pulse being needed at all
    Low-voltage programming is not used by melabs programmers and should always be disabled in the configuration settings.
    https://melabs.com/support/icsp.htm


    I'm gonna take my PicKit4 out of storage and give it another shot.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Resetting a slave from master mcu

    Quote Originally Posted by amgen View Post
    crap, I figured you were a kid .....
    I'm a kid at heart, and I get out of bed at the same speed as them.


    Quote Originally Posted by amgen View Post
    ..... I always put the pics in sockets, saves a lot of F-ups....
    Yeah, I'd hate to notice a mistake at the end of assembling my boards.


    Quote Originally Posted by amgen View Post
    ... For transistor, logic level MOSFET is good to use. The logic level means it will be full on with 5 volts on gate, no resistors required.... N-channel like BS170 ... with this, the reset is a high pulse on master...(dah)
    I finally got a few SN7407 thanks to Mr E's suggestion a while back. This runs awesome, and I have room for 6 slaves, that should be enough for my boards.

    Name:  MCLR slaves from master.png
Views: 2908
Size:  31.3 KB


    I don't have to worry about the surges up towards the Master during programming the Slave.

    (Which is good, cause my MeLabs U2 programmer doesn't do LVP, and I can't get my PicKit4 to run properly).
    Last edited by Demon; - 2nd October 2024 at 05:52.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  5. #5
    Join Date
    May 2013
    Location
    australia
    Posts
    2,682


    Did you find this post helpful? Yes | No

    Default Re: Resetting a slave from master mcu

    Quote Originally Posted by Demon View Post
    I don't have to worry about the surges up towards the Master during programming the Slave.
    No, but the 120 ohm pullup will be a pin killer if the vdd is 5v
    Warning I'm not a teacher

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Resetting a slave from master mcu

    Quote Originally Posted by richard View Post
    No, but the 120 ohm pullup will be a pin killer if the vdd is 5v
    Yeah, I was blindly following SN7407 datasheet. I don't really care about timing, so I upped it to 1K pull-up.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  7. #7
    Join Date
    May 2013
    Location
    australia
    Posts
    2,682


    Did you find this post helpful? Yes | No

    Default Re: Resetting a slave from master mcu

    Yeah, I was blindly following SN7407 datasheet. I don't really care about timing, so I upped it to 1K pull-up.
    given that I-inh max for a SN7407 gate is 40uA and a pic output pin could drive more than 20 of them and still produce a clean TTL signal.
    i cannot see that signal timing would even be a consideration. just what need does the pullup fulfill ?
    Warning I'm not a teacher

  8. #8
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Resetting a slave from master mcu

    Quote Originally Posted by richard View Post
    given that I-inh max for a SN7407 gate is 40uA and a pic output pin could drive more than 20 of them and still produce a clean TTL signal.
    i cannot see that signal timing would even be a consideration. just what need does the pullup fulfill ?
    Except from preventing the input pin on the SN7407 from floating, I don't see one for my application.

    I don't really care about "precision timing"; I just trigger the MCLR reset on the Slave with a 10usec pause. I still have a pull-up downstream on the Slave PIC.

    Code:
    SlaveMCLR = 0
    PauseUS 10
    SlaveMCLR = 1

    EDIT: I figured I'd read the instructions AFTER posting that reply.

    11.1 Layout Guidelines: ... All unused inputs of digital logic devices must be connected to a high or low bias to prevent them from floating.
    Promptly runs over to breadboard to pull down the other 5 unused inputs.
    Last edited by Demon; - 3rd October 2024 at 20:41.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. Master to slave 16F767
    By sachymo in forum General
    Replies: 6
    Last Post: - 3rd June 2008, 21:22
  2. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 20:33
  3. PIC master slave howto
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th September 2007, 23:35
  4. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 23:59
  5. i2c master/slave
    By lab310 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 8th April 2005, 23:23

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