Sam SunFish7

Searching for code for HCS12 Starter Kit (uses MC9S12E128 CPU)

Discussion created by Sam SunFish7 on Jun 9, 2007
Latest reply on Jun 18, 2007 by CrasyCat
 I am sorry to post such basic question.
 
 I have just bought an HCS12 starter kit.   I was using an MSP430  chip but it was unsuitable ( I blew it up - it runs at 3v  and I needed 5v).  so I need to port my code.
 
 there are just a few routines are which architecture specific
 
*  set clock speed to maximum
* microsecond {interval timing & delay} routines
* digital and analogue pin IO routines
* pin interrupt routines ( so as to detect the falling edge of clock line)
* sending/receiving data to/from the host PC
 
for the MSP 430 I was able to find some code on the internet and adapt it.  but I cannot find any code repository for HCS 12 .  please can someone point me in the right direction.
 
at the moment I am stuck... I can run the ADC sample program that comes with the kit, however the sample programme to change the CPU speed does not work as  it should;  I don't want to have to learn the intricacies of the architecture of the chip ( it's too advanced for me ).
 
many thanks,
 
Sam
 
PS  if it is of any interest,   I'm trying to multiplex several PS2  mice.  they are special, so using USB-PS2 converters is impossible. 

Outcomes