Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 02:18 19 May 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 : Can you disable CTRL+C break?

     Page 2 of 2    
Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9082
Posted: 04:36pm 14 Jan 2013
Copy link to clipboard 
Print this post

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: Australia
Posts: 819
Posted: 05:20pm 14 Jan 2013
Copy link to clipboard 
Print this post

  Quote  I just wish my colour one would arrive(ordered on the 4th


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: Australia
Posts: 819
Posted: 11:12am 15 Jan 2013
Copy link to clipboard 
Print this post

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 States
Posts: 1421
Posted: 11:17am 15 Jan 2013
Copy link to clipboard 
Print this post

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.Edited by CircuitGizmos 2013-01-16
Micromites and Maximites! - Beginning Maximite
 
MOBI
Guru

Joined: 02/12/2012
Location: Australia
Posts: 819
Posted: 12:12pm 15 Jan 2013
Copy link to clipboard 
Print this post

  gizmos said  The LCD shield has a reset button on it. When used as a shield with the CGCOLORMAX, pressing the reset button resets the microcontroller.


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 States
Posts: 1421
Posted: 12:20pm 15 Jan 2013
Copy link to clipboard 
Print this post

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: Australia
Posts: 819
Posted: 12:49pm 15 Jan 2013
Copy link to clipboard 
Print this post

  gizmos said  Wasn't pushing the LCD shield specifically. Just saying that the reset line on the shield footprint/header works.


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 Zealand
Posts: 9082
Posted: 01:11pm 15 Jan 2013
Copy link to clipboard 
Print this post

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 States
Posts: 1421
Posted: 02:03pm 15 Jan 2013
Copy link to clipboard 
Print this post

  MOBI said  
  gizmos said  Wasn't pushing the LCD shield specifically. Just saying that the reset line on the shield footprint/header works.


I wouldn't blame you if you did, I would if I sold them.



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 States
Posts: 535
Posted: 02:41pm 15 Jan 2013
Copy link to clipboard 
Print this post

  Grogster said   WHILE I THINK OF IT - How come MM BASIC does not use the [BREAK] key on the keyboard to stop the program running?

...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: Australia
Posts: 935
Posted: 02:43pm 15 Jan 2013
Copy link to clipboard 
Print this post

  Grogster said   NOTE FOR NEXT RELEASE OF MM HARDWARE: Include RESET tact switch on PCB.

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 States
Posts: 1421
Posted: 02:58pm 15 Jan 2013
Copy link to clipboard 
Print this post

  BobD said   I'm sure someone will tell us.


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 Zealand
Posts: 9082
Posted: 03:24pm 15 Jan 2013
Copy link to clipboard 
Print this post

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: Canada
Posts: 268
Posted: 09:32am 19 Jan 2013
Copy link to clipboard 
Print this post

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: Australia
Posts: 290
Posted: 11:24am 19 Jan 2013
Copy link to clipboard 
Print this post

  boss said   Hi,

.. 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: Canada
Posts: 268
Posted: 12:13pm 19 Jan 2013
Copy link to clipboard 
Print this post

Yes,

Ctrl-Break is a very good combination.
 
     Page 2 of 2    
Print this page


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

© JAQ Software 2024