Sign in

username:

password:



Not a member?

Search m68hc11



Search tips

Subscribe to m68hc11



m68hc11 by Keywords

27c256 | 4K81H | 68HC11A1 | 68HC11P1 | 68hc24 | 68HC711E9 | 68HC811 | 8255 | A2D | ADC | ADC12138 | Am85C30 | BRCLR | Buffalo | CMOS | EEPROM | EPROM | Ethernet | EVB | EVBU | HC11E1 | HC11E9 | HC711E9 | Horray | ImageCraft | IRQ | Keypad | LCD | MC68HC11D0FN | MC68HC11E1CFU3 | MC68HC11F1 | MC68HC711E9 | MC68HC711E9CFN2 | Microcore11 | Microstamp11 | Minikit | NVRAM | PSD | PSD8xx | PSD9xx | PT1000 | RS232 | RTS | RXD | SPI | SRAM | TXD | Watchdogs | XIRQ

Sponsor

controlSUITE™ software
Comprehensive.
Intuitive.
Optimized.

Real-world software for real-time control. Details Here!

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | | Port E and random number


Advertise Here

Port E and random number - kl_mistress - Apr 20 9:24:00 2005


dear alll,

Hi im the new member name alex.

Im a student, and currently im learning about duet board of 68hc11.
I want to know to program a random number between 100-200 or anything
I just dont understand. I read Peter spasov 68hc11 yet im still blur
on it
May i or please help me by showing some examples on how to do random
number and whats is the purpose of it

Regarding port e, which is my project im doing of potiometer. I have
to use to potionmeter to set to Port E for ADC to output to portb
which the led will led.

ANyone can help?

plzzz

regards,

alex





(You need to be a member of m68hc11 -- send a blank email to m68hc11-subscribe@yahoogroups.com )


Re: Port E and random number - Mike McCarty - Apr 20 13:40:00 2005

kl_mistress wrote:

>dear alll,
>
>Hi im the new member name alex. >

Welcome aboard!

>Im a student, and currently im learning about duet board of 68hc11. I'm sorry not to know what a "duet board" is.

>I want to know to program a random number between 100-200 or anything
>I just dont understand. I read Peter spasov 68hc11 yet im still blur
>on it
>May i or please help me by showing some examples on how to do random
>number and whats is the purpose of it There seem to be several questions, there. First, the MC68HC11 is a
deterministic
machine. It cannot generate random numbers on its own. However, with some
external hardware, random numbers can be generated. In particual, the A/D
connected to PORTE can be used with an external random noise source to
generate
random numbers. On the other hand, perhaps pseudo-random numbers will
suffice
for your application. Random numbers and pseudo-random numbers have many
applications. Since I don't know what your background is, it is
difficult for me
to give applications you might recognize. Monte Carlo methods use random or
pseudo-random numbers to perform numerical calcuations (like computing
volume of complicated objects in multi-dimensional spaces, for example)
which would otherwise be extremely difficult or impossible. They are used
in cryptography. There are many uses.

>Regarding port e, which is my project im doing of potiometer. I have
>to use to potionmeter to set to Port E for ADC to output to portb
>which the led will led. I'm not sure I understand what you are saying. I don't know the verb "led".
I'll guess that you mean you want to use the A/D connected to PORTE to
get a value which is displayed as an 8 bits on PORTB.

The steps are:

Turn on the A/D. Select whether to use the E clock or the R/C clock.
Initiate a conversion on the selected input pin.
Wait for the completion flag to be set.
Read the value from the A/D result location.
Output the value to PORTB.

>ANyone can help? I don't know whether I have helped, yet, but give us more information
about your project and more information will be forthcoming.

No solutions to homework problems, but help to get you over a hurdle
if you need it.

Mike
--

p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
I speak only for myself, and I am unanimous in that!




(You need to be a member of m68hc11 -- send a blank email to m68hc11-subscribe@yahoogroups.com )