Anyone program Microcontrollers? Specifically: HC11 in C?

Zach

Diamond Member
Oct 11, 1999
3,400
1
81
I've finally (after three years of sporatic work) have enough hardware wired up to run a microcontroller I purchased. It's a Motorolla 68HC11 based system, using way too many IR sensors and a couple bumpers.

End result, semi-functioning autonomous robot. But, I don't know where to find any resources on programming this thing in C. I have some pre-built libraries, but the comments aren't descriptive enough for me to learn much.

I've got it tooling around the living room, avoiding things.. but I can't figure out how to do things like (my first goals) to make the thing read PWM input from an R/C car (or plane) radio system, and output PWM to spare ports for getting some beep codes out to a speaker/piezo.

Anyone already into this? Work or play..
 

HigherGround

Golden Member
Jan 9, 2000
1,827
0
0
wow, the HC11!! I can't say that i'm an expert, but at one point i wrote three, maybe even four neat apps for this little gem. ( i still have that tiny programming reference guide ). Unfortunatly i wrote everything in assembly, and to be honest i'm not even sure if Motorola is providing C libs for that thing. Obviously this was when i was into hardware design ( i guess i crossed over to the evil side and now i'm doing strictly software engineering :) )
 

AvesPKS

Diamond Member
Apr 21, 2000
4,729
0
0
I've done some programming for the Motorola 68000 chip family. However, we've been doing it all in assembly. I'd also like to know about C possiblities.
 

misle

Diamond Member
Nov 30, 2000
3,371
0
76
All I've done is assembly and C++ with the 68HC11E.

Sorry.

Matt
 

Demon-Xanth

Lifer
Feb 15, 2000
20,551
2
81
I've done 68HC11 programming in hex and I got a few 68HC11s sitting in a drawer at home :)
 

Zach

Diamond Member
Oct 11, 1999
3,400
1
81
I got my C libs with my controller, and this is the compiler I use. Actually, it's the very old and pitiful looking version 5 that I use, I might be switching to command prompt Linux soon...

But, anyway.. nobody is doing it my way? :) I suppose I could try to learn assembly, but I don't even know that much C. Let alone the stuff in C++. All I want to do is read and output PWM for goodness sakes!

PS: How much you want for those HC11's, Demon-Xanth? What kind are they?

Edit: I've been looking for a book to get, but none so far have explicetly said what programming language they are using (like when using amazon.com), so if anyone can suggest anything I'd appreciate it. I've been to two different doc's in the ECE and CS colleges at my University, niether had even heard of the HC11 chip.. got an email address for a TA doing things right along my lines though. Wonder if he's using assembly.. probably.