Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 19:35 27 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MM/CMM: reset signal

Author Message
Juri74

Senior Member

Joined: 06/02/2012
Location: Italy
Posts: 162
Posted: 04:47am 17 Jun 2013
Copy link to clipboard 
Print this post

hello guys,
does anyone know if it is possible to generate or pick a reset signal when cmm/mm reset? even taking it somewhere from existing hardware (or adding components)
i'm tryng some hardware and i require a reset signal when maximite crash.. (reboot) to reset attached equipment when this happen.
is there a way to pick a reset signal somewhere?

thank you!

Juri
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 11:42am 17 Jun 2013
Copy link to clipboard 
Print this post

By crash I presume that you mean a PIC32 exception. In 4.4 (including the current beta) this will cause MMBasic to run RESTART.BAS. In this file you could toggle an I/O pin which would give you the reset pulse.

RESTART.BAS is also run if the watchdog timer reaches zero.

Geoff
Geoff Graham - http://geoffg.net
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 07:43pm 17 Jun 2013
Copy link to clipboard 
Print this post

You would also need to connect the MCLR line of the pic32 to any hardware that needs a reset.
It is an input for the pic32 and it is active low, meaning that a reset external to the pic32 will connect this pin to ground, most of the time with a simple switch.
You will need to connect this signal to make it perform correctly.

If the pic32 crashes this signal will not be available and you will need to generate it from software. This can not be done to the same mclr line as it would then reset itself.
The easiest is as Geoff suggested to use an I/O pin to signal that the PIC32 had an internal reset.
As you now have two signals that can reset your external hardware you will need to respond if one of those is a logic low (connected to ground).
You could do that with two diodes or a logic chip.

Microblocks. Build with logic.
 
Juri74

Senior Member

Joined: 06/02/2012
Location: Italy
Posts: 162
Posted: 06:53am 18 Jun 2013
Copy link to clipboard 
Print this post

thank you! i think i will use the restart.bas file
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024