Reply by "kdp...@gmail.com [68HC12]" December 3, 20162016-12-03
Board: Dragon12-plus2 MC9S12DG256

IDE: CODEWARRIOR
Reply by "Jef...@yahoo.com [68HC12]" December 1, 20162016-12-01
-What board is it?-What IDE are you using?Typically, the board maker will have sample code for IO and like driving the LCD.

On Wednesday, November 30, 2016 6:26 PM, "Nigel Johnson MIEEE n...@ieee.org [68HC12]" <6...> wrote:

  As we say, there is no time like the last minute!  
Nigel Johnson
MSc., MIEEE, MCSE
G4AJQ/VE3ID

(905)459-7533 x 5031

Professor,
School of Mechanical and Electrical Engineering & Technology
Faculty of Applied Science and Technology
Sheridan College
7899 McLaughlin Road (Box 7500),
Brampton ON
L6V 1G6

On 11/30/16 17:17, Tom Almy m...@almy.us [68HC12] wrote:

  Seems reasonable (and typical of the students I had!) for a project that involves only programming (hardware is just HCS12 board).

On Nov 30, 2016, at 12:45 PM, 'Mr. Andrei Chichak' g...@chichak.ca [68HC12] <6...> wrote:

The HCS12 board comes itself with LCD screen so That won't be an external component right! and is there any specific commands to integrate RNG to LCD screen? 

You’re kidding, right?  Are you just starting your final project with about a week to go in your class?

--
Nigel Johnson
MSc., MIEEE
VE3ID/G4AJQ/VA3MCU

Amateur Radio, the origin of the open-source concept!

You can reach me by voice on Skype: TILBURY2591

If time travel ever will be possible, it already is. Ask me again yesterday

This e-mail is not and cannot, by its nature, be confidential. En route from me to you, it will pass across the public Internet, easily readable by any number of system administrators along the way.

Please consider the environment when deciding if you really need to print this message

#yiv9288164537 #yiv9288164537 -- #yiv9288164537ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv9288164537 #yiv9288164537ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv9288164537 #yiv9288164537ygrp-mkp #yiv9288164537hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv9288164537 #yiv9288164537ygrp-mkp #yiv9288164537ads {margin-bottom:10px;}#yiv9288164537 #yiv9288164537ygrp-mkp .yiv9288164537ad {padding:0 0;}#yiv9288164537 #yiv9288164537ygrp-mkp .yiv9288164537ad p {margin:0;}#yiv9288164537 #yiv9288164537ygrp-mkp .yiv9288164537ad a {color:#0000ff;text-decoration:none;}#yiv9288164537 #yiv9288164537ygrp-sponsor #yiv9288164537ygrp-lc {font-family:Arial;}#yiv9288164537 #yiv9288164537ygrp-sponsor #yiv9288164537ygrp-lc #yiv9288164537hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv9288164537 #yiv9288164537ygrp-sponsor #yiv9288164537ygrp-lc .yiv9288164537ad {margin-bottom:10px;padding:0 0;}#yiv9288164537 #yiv9288164537actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv9288164537 #yiv9288164537activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv9288164537 #yiv9288164537activity span {font-weight:700;}#yiv9288164537 #yiv9288164537activity span:first-child {text-transform:uppercase;}#yiv9288164537 #yiv9288164537activity span a {color:#5085b6;text-decoration:none;}#yiv9288164537 #yiv9288164537activity span span {color:#ff7900;}#yiv9288164537 #yiv9288164537activity span .yiv9288164537underline {text-decoration:underline;}#yiv9288164537 .yiv9288164537attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv9288164537 .yiv9288164537attach div a {text-decoration:none;}#yiv9288164537 .yiv9288164537attach img {border:none;padding-right:5px;}#yiv9288164537 .yiv9288164537attach label {display:block;margin-bottom:5px;}#yiv9288164537 .yiv9288164537attach label a {text-decoration:none;}#yiv9288164537 blockquote {margin:0 0 0 4px;}#yiv9288164537 .yiv9288164537bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv9288164537 .yiv9288164537bold a {text-decoration:none;}#yiv9288164537 dd.yiv9288164537last p a {font-family:Verdana;font-weight:700;}#yiv9288164537 dd.yiv9288164537last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv9288164537 dd.yiv9288164537last p span.yiv9288164537yshortcuts {margin-right:0;}#yiv9288164537 div.yiv9288164537attach-table div div a {text-decoration:none;}#yiv9288164537 div.yiv9288164537attach-table {width:400px;}#yiv9288164537 div.yiv9288164537file-title a, #yiv9288164537 div.yiv9288164537file-title a:active, #yiv9288164537 div.yiv9288164537file-title a:hover, #yiv9288164537 div.yiv9288164537file-title a:visited {text-decoration:none;}#yiv9288164537 div.yiv9288164537photo-title a, #yiv9288164537 div.yiv9288164537photo-title a:active, #yiv9288164537 div.yiv9288164537photo-title a:hover, #yiv9288164537 div.yiv9288164537photo-title a:visited {text-decoration:none;}#yiv9288164537 div#yiv9288164537ygrp-mlmsg #yiv9288164537ygrp-msg p a span.yiv9288164537yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv9288164537 .yiv9288164537green {color:#628c2a;}#yiv9288164537 .yiv9288164537MsoNormal {margin:0 0 0 0;}#yiv9288164537 o {font-size:0;}#yiv9288164537 #yiv9288164537photos div {float:left;width:72px;}#yiv9288164537 #yiv9288164537photos div div {border:1px solid #666666;height:62px;overflow:hidden;width:62px;}#yiv9288164537 #yiv9288164537photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv9288164537 #yiv9288164537reco-category {font-size:77%;}#yiv9288164537 #yiv9288164537reco-desc {font-size:77%;}#yiv9288164537 .yiv9288164537replbq {margin:4px;}#yiv9288164537 #yiv9288164537ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv9288164537 #yiv9288164537ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv9288164537 #yiv9288164537ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv9288164537 #yiv9288164537ygrp-mlmsg select, #yiv9288164537 input, #yiv9288164537 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv9288164537 #yiv9288164537ygrp-mlmsg pre, #yiv9288164537 code {font:115% monospace;}#yiv9288164537 #yiv9288164537ygrp-mlmsg * {line-height:1.22em;}#yiv9288164537 #yiv9288164537ygrp-mlmsg #yiv9288164537logo {padding-bottom:10px;}#yiv9288164537 #yiv9288164537ygrp-msg p a {font-family:Verdana;}#yiv9288164537 #yiv9288164537ygrp-msg p#yiv9288164537attach-count span {color:#1E66AE;font-weight:700;}#yiv9288164537 #yiv9288164537ygrp-reco #yiv9288164537reco-head {color:#ff7900;font-weight:700;}#yiv9288164537 #yiv9288164537ygrp-reco {margin-bottom:20px;padding:0px;}#yiv9288164537 #yiv9288164537ygrp-sponsor #yiv9288164537ov li a {font-size:130%;text-decoration:none;}#yiv9288164537 #yiv9288164537ygrp-sponsor #yiv9288164537ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv9288164537 #yiv9288164537ygrp-sponsor #yiv9288164537ov ul {margin:0;padding:0 0 0 8px;}#yiv9288164537 #yiv9288164537ygrp-text {font-family:Georgia;}#yiv9288164537 #yiv9288164537ygrp-text p {margin:0 0 1em 0;}#yiv9288164537 #yiv9288164537ygrp-text tt {font-size:120%;}#yiv9288164537 #yiv9288164537ygrp-vital ul li:last-child {border-right:none !important;}#yiv9288164537
Reply by "Nig...@ieee.org [68HC12]" November 30, 20162016-11-30
As we say, there is no time like the last minute!
Nigel Johnson
MSc., MIEEE, MCSE
G4AJQ/VE3ID

(905)459-7533 x 5031

Professor,
School of Mechanical and Electrical Engineering & Technology
Faculty of Applied Science and Technology
Sheridan College
7899 McLaughlin Road (Box 7500),
Brampton ON
L6V 1G6
On 11/30/16 17:17, Tom Almy m...@almy.us [68HC12] wrote:
> Seems reasonable (and typical of the students I had!) for a project that involves only programming (hardware is just HCS12 board).
>> On Nov 30, 2016, at 12:45 PM, 'Mr. Andrei Chichak' g...@chichak.ca [68HC12] <6...

'
















Reply by "Tom...@almy.us [68HC12]" November 30, 20162016-11-30
Seems reasonable (and typical of the students I had!) for a project that involves only programming (hardware is just HCS12 board).
> On Nov 30, 2016, at 12:45 PM, 'Mr. Andrei Chichak' g...@chichak.ca [68HC12] <6...> wrote:
>>
>> The HCS12 board comes itself with LCD screen so That won't be an external component right! and is there any specific commands to integrate RNG to LCD screen?
>> You’re kidding, right? Are you just starting your final project with about a week to go in your class?
Reply by "'Mr...@chichak.ca [68HC12]" November 30, 20162016-11-30
>
> The HCS12 board comes itself with LCD screen so That won't be an external component right! and is there any specific commands to integrate RNG to LCD screen?
>

You’re kidding, right? Are you just starting your final project with about a week to go in your class?
Reply by "kdp...@gmail.com [68HC12]" November 30, 20162016-11-30
The HCS12 board comes itself with LCD screen so That won't be an external component right! and is there any specific commands to integrate RNG to LCD screen?
Reply by "and...@iba.se [68HC12]" November 30, 20162016-11-30
The original question was how to solve the project problem “using HCS12 board without using any external components”.



So the answer to this must be “yes if the LCD is on the board and correctly connected” J





From: 6... [mailto:6...]
Sent: Wednesday, November 30, 2016 7:42 PM
To: 6...
Subject: RE: [68HC12] HCS12 - RNG generation


I am actually thinking about to compare the generated random numbers and send the result to LCD screen is that possible?
[Non-text portions of this message have been removed]


Posted by:



Reply by "Dur...@gmail.com [68HC12]" November 30, 20162016-11-30
I am actually thinking about to compare the generated random numbers and
send the result to LCD screen is that possible?
Reply by "'Mr...@chichak.ca [68HC12]" November 30, 20162016-11-30
Use google and look for pseudo random number generators. It is typically just some multiplies, adds, and modulos with prime numbers.

Use an ARM processor that has a true random number generator device.

Build an external RNG device.
Andrei from The Great White North
(as seen on the embedded.fm podcast and blog)
Reply by "and...@iba.se [68HC12]" November 30, 20162016-11-30
Since it is a slot machine, how about:

- At power up, create some free running counter that will count with high frequency

- When the Slot machine handle is pulled or button is pressed, read the counter value

From: 6... [mailto:6...]
Sent: Tuesday, November 29, 2016 8:40 PM
To: 6...
Subject: [68HC12] HCS12 - RNG generation

I am trying to build Slot machine through HCS12 board without using any external components. I want to create a prototype of slot machine for that I need to have a working RNG code (may be in C language). give me the idea of where and how to start?

Thank you!