PDA

View Full Version : Max Forth examples for NMI 68HC11 boards


earlwb
05-09-03, 03:59 PM
Do you have any examples of MAX Forth programs on the NMI 68HC11 boards?
I forgot I had two boards I had purchased a while back from you, and it would be nice to use them for something, even though the ISOPOD tends to spoil me rotten.
Thanks
Earl

nmitech
05-09-03, 04:37 PM
earlwb,

I have many example programs and appnotes for the HC11 FORTH. It will take me sometimes to sort them out and post them up. So if you have any specific need, let me know i can look for it and post it up right away.

Please use this link to look up for more examples later,

http://www.newmicros.com/forth/hc11/examples/


--lc--

earlwb
05-09-03, 06:07 PM
Oh the usual things, like LED's On Off,
how a RC servo might be run off of it.
Maybe a PWM program for a motor controller like a H bridge.
Mainly, what the program looks like to enter into the board and then have it run would help the most. As I don't see how to get a program to run after you enter it.
Except by typing in a command on the terminal to run it.
Thanks
Earl

nmitech
05-09-03, 06:42 PM
The AUTORAM.TXT & AUTOEEX.TXT from the previous link are good example programs for autostart. The AUTORAM.TXT is an autostart example when you develope your program in ram, where AUTOEEX.TXT is loaded to an eeprom application. Both examples will run after program download and a system reset is applied.

There is no LED nor PWM on any NMI-HC11 boards, so there is no LED or RC servo example available. But to toggle the I/O port is as simple as, &#60 data byte &#62 &#60 port &#62 C!
i.e,
FF B004 C! ( turn on PortB, bit0-7 )
00 B004 C! ( turn off PortB )

or

B004 C@ 01 OR B004 C! ( turn on PB0 )
B004 C@ FE AND B004 C! ( turn off PB0 )

earlwb
05-09-03, 10:22 PM
Thank you very much, that'swhat I was missing.
I appreciate it,
Earl