Jordan Corey

Problem with HCS12E128 and Processor Expert

Discussion created by Jordan Corey on Apr 19, 2006
Latest reply on Apr 25, 2006 by Jordan Corey
I've got a Softec demo board using the HCS12E128 and I'm having an issue when I use the Processor Expert beans on a 16-bit port.  Specifically when I use the PortAD as a GPIO port and I assign BitIO beans to it.  If I assign a BitIO bean to PAD04, and then just write my code as normal it wont work.  We found a way to fix it by going into cpu.c and the bitbean header file and changing all references from the PortAD from Hi to Lo.  So like DDRADLo has to be changed to DDRADHi or DDRAD, and the rest of the registers must be switched as well.  I have to do this by hand everytime processor expert regenerates the code.  Does anyone know of a fix for this?