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 : Can you disable CTRL+C break?
Page 2 of 2 | |||||
Author | Message | ||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9307 |
Thanks for trying - no big deal. You designed and coded that chip for MM use anyway, not PC! I suspect it is cos your chip will most likely not have any code, speed or ability(or all of those) to be able to establish a link with the PC. It is my understanding that the PC will query the keyboard on power up, and certain data is exchanged between them both on a PC, which, naturally, would not be in place on your little chip. :) However - still looking at it for custom keyboards for the MM(it intended purpose). Smoke makes things work. When the smoke gets out, it stops! |
||||
MOBI Guru Joined: 02/12/2012 Location: AustraliaPosts: 819 |
I ordered my two CG MMs from gizmos on the 3rd and arrived (and working) on 13th. Quite happy with that. Slight digression, but why does the PS2 keyboard "capslock" button not cause the associated LED to light up. The code to make it happen is not long. Or...am I doing something wrong? David M. |
||||
MOBI Guru Joined: 02/12/2012 Location: AustraliaPosts: 819 |
I wonder if "ctrl-c" was a hang over from teletype days. Ctrl-c produces the code Hex 03 which is "end of transmission" (ETX) Also, instead of cycling the power, has anyone used the "reset" pin (mclr)? Ok, it wipes out all data in RAM, but so does cycling the power, it is just that pressing a "reset button" is easier. I am surprised that there isn't a "reset button" on the MM. David M. |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1425 |
The LCD shield has a reset button on it. When used as a shield with the CGCOLORMAX, pressing the reset button resets the microcontroller. Ctrl-C IS a hold-over from those times. Micromites and Maximites! - Beginning Maximite |
||||
MOBI Guru Joined: 02/12/2012 Location: AustraliaPosts: 819 |
Ok, I guess there would not be many occasions where a full screen would be needed in the world of controllers and an LCD is more than enough. I use my own home grown I2C LCD which doesn't have a reset button so I guess I'll just have to wire a "reset" button up. David M. |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1425 |
Wasn't pushing the LCD shield specifically. Just saying that the reset line on the shield footprint/header works. Micromites and Maximites! - Beginning Maximite |
||||
MOBI Guru Joined: 02/12/2012 Location: AustraliaPosts: 819 |
I wouldn't blame you if you did, I would if I sold them. I try and make all my own peripheral devices, mostly I2C based simply because of the reason we are all on TBS - viz to have fun and push the barriers - besides keeping the grey amorphous mass coherent. As a result, I'm not likely to know about other products and capabilities. Never mind, if I keep following all the posts, I'll find out these things in time. Have we got enough (time i.e.). David M. |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9307 |
NOTE FOR NEXT RELEASE OF MM HARDWARE: Include RESET tact switch on PCB. Smoke makes things work. When the smoke gets out, it stops! |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1425 |
I don't sell the LCD shield. I just made example code using one. Micromites and Maximites! - Beginning Maximite |
||||
hitsware Guru Joined: 23/11/2012 Location: United StatesPosts: 535 |
...an ideal key choice, I would have thought... However, there must be a reason, so I would love to know what that is. Perhaps as simple as the fact that CTRL+C would have been used in the BASIC that MM is based on? Perhaps this was how you stopped programs running in MS BASIC or GW-BASIC etc back in the day? ...I never programmed in either of these. CTRL+BREAK in GW or Q basic .... also on VIC20 or C64 (IIRC ?) Good question :) |
||||
BobD Guru Joined: 07/12/2011 Location: AustraliaPosts: 935 |
You don't want it on the PCB. The back panel (if there is room) would be better. It is easy enough to wire yourself. It is pin 1 on the programming header. Just ground it momentarily and all reset. You can get Ground on pin 3 of the same header. Not sure if CGCOLORMAX has the programming header available. I'm sure someone will tell us. |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1425 |
I'm someone! The programming header (6x1) is on the CGMMSTICK and the CGCOLORMAX. The CGCOLORMAX also has the reset line on the shield footprint. Micromites and Maximites! - Beginning Maximite |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9307 |
Okey dokey on the reset via the programming header. Also makes more sense to have it on the back panel, if you are boxing it up. Smoke makes things work. When the smoke gets out, it stops! |
||||
boss Senior Member Joined: 19/08/2011 Location: CanadaPosts: 268 |
Hi, OPTION BREAK in version 4.3 is a great solution. In my program I'm using OPTION BREAK 0 which represents Ctrl_Shift @. This key combination is relly hard to press accidentaly. |
||||
ajkw Senior Member Joined: 29/06/2011 Location: AustraliaPosts: 290 |
.. using OPTION BREAK 0 which represents Ctrl_Shift @ Option break 0 is also Ctrl_SPACE Option break 204 is Ctrl_BREAK I think that it may be useful if pin 0 could be allowed/included in SETPIN pin, cfg , target. eg SETPIN 0,6,endroutine |
||||
boss Senior Member Joined: 19/08/2011 Location: CanadaPosts: 268 |
Yes, Ctrl-Break is a very good combination. |
||||
Page 2 of 2 |
Print this page |