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: ItalyPosts: 162 |
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: AustraliaPosts: 3194 |
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: ThailandPosts: 2209 |
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: ItalyPosts: 162 |
thank you! i think i will use the restart.bas file |
||||
Print this page |