Resetting a slave from master mcu


+ Reply to 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

    diodes can be like signal diodes 1N4148. Not backwards in order to pull MCLR low to reset and that is considering you do LOW VOLTAGE PROGRAMMING setting, if not doing that then would use the 2n3906 or any NPN to pull down all the slaves through the diodes. The @ RESET is an assembly instruction using the @ for PBP to do machine code directly ( I think you know all that stuff)...... so if you want a hard reset after ICSP then yes to use MCLR but if chips are running, you could give instruction to GOTO reset.

    Name:  reset.JPG
Views: 1418
Size:  125.9 KB

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


    Did you find this post helpful? Yes | No

    Default Re: Resetting a slave from master mcu

    Quote Originally Posted by amgen View Post
    ... diodes can be like signal diodes 1N4148. Not backwards in order to pull MCLR low to reset and that is considering you do LOW VOLTAGE PROGRAMMING setting...
    Nah, I'm doing regular ICSP programming for now, but I'm considering using ZIF socket adapter for programming, and then installing the PICs on IC sockets.

    The nice thing with IC sockets, I can't damage the PIC while soldering. A dab of hot glue at both ends should stop the PIC from falling out.


    Quote Originally Posted by amgen View Post
    ... The @ RESET is an assembly instruction using the @ for PBP to do machine code directly ( I think you know all that stuff). ...
    I graduated back in '83, was 2nd in my assembler classes. But I've never used it in my professional career as mainframe programmer.


    Quote Originally Posted by amgen View Post
    ... if not doing that then would use the 2n3906 or any NPN to pull down all the slaves through the diodes.
    Can you explain this like I'm 5? I looked at NPN and PNP transistors but I can't figure out how to do that.
    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!

  3. #3


    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: 1674
Size:  60.6 KB
    Last edited by amgen; - 1st October 2024 at 00:47.

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


    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

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


    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!

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


    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: 1529
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 04: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!

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


    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

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


    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!

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


    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

Similar Threads

  1. Master to slave 16F767
    By sachymo in forum General
    Replies: 6
    Last Post: - 3rd June 2008, 20:22
  2. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 19:33
  3. PIC master slave howto
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th September 2007, 22: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, 22:59
  5. i2c master/slave
    By lab310 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 8th April 2005, 22:23

Members who have read this thread : 8

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