Reply by Joe Dee Kay June 25, 20102010-06-25
Yes the SPI is different. If anyone else has this problem update the
xferSPI0
UINT8 xferSPI0(UINT8 abyte) {
while((SPI0SR & BM_SPTEF) == 0) ; // wait until transmitter available
SPI0DR = abyte; // start transfer
while((SPI0SR & BM_SPIF) == 0) ; // wait until transfer finished
return(SPI0DR); // read back data received
}

On Thu, Jun 24, 2010 at 9:08 PM, Petrescu wrote:

> Hi,
> You did not tell us what tools you use. I checked my tools (Freescale
> special edition)
> and there are huge differences between mc9s12dp256.h and
> mc9s12xdp512.h - so
> one idea is to download from Freescale the CodeWarrior Special Edition
> for HCS12,
> install it and check for what you need. Take care - look at the general
> block diagram
> of the micro - it is possible that some modules to need to be reconfigured.
> Yoan
> Joe Dee Kay wrote:
> > Tried that doesn't work. There are really only 3-4 address changes from
> the
> > other processor. Matter of fact I can take the updated file compile it
> for
> > use with the older board and it works on that board. It just doesn't work
> on
> > the new one.
> > I probably just have to send it back.
> > Thanks all for your help though
> >
> > On Thu, Jun 24, 2010 at 12:31 PM, Redd, Emmett R <
> > E...@missouristate.edu > wrote:
> >
> >
> >> Build one yourself from the datasheet/user guide information. It would
> >> probably take less time than what you have waited for responses on this
> >> forum. You might also learn something in the process.
> >>
> >> Emmett Redd Ph.D. mailto:E...@missouristate.edu
> >> Professor (417)836-5221
> >> Department of Physics, Astronomy, and Materials Science
> >> Missouri State University Fax (417)836-6226
> >> 901 SOUTH NATIONAL Lab (417)836-3770
> >> SPRINGFIELD, MO 65897 USA Dept (417)836-5131
> >>
> >> "In theory there is no difference between theory and practice. In
> practice
> >> there is." -- Yogi Berra or Jan van de Snepscheut
> >>
> >> ________________________________________
> >> From: 6... <68HC12%40yahoogroups.com> <68HC12%
> 40yahoogroups.com> [
> >> 6... <68HC12%40yahoogroups.com> <68HC12%
> 40yahoogroups.com>] On Behalf Of Joe Dee
> >> Kay [j...@gmail.com > 40gmail.com>]
>
> >> Sent: Thursday, June 24, 2010 2:14 PM
> >> To: 6... <68HC12%40yahoogroups.com> <68HC12%
> 40yahoogroups.com> >> Subject: Re: [68HC12] upgrade question
> >>
> >>
> >> I found a file online put it in and still doesn't work. Any other ideas?
> >>
> >> On Wed, Jun 23, 2010 at 10:18 AM, Joe Dee Kay
> > >> wrote:
> >>
> >>
> >>> I thought about that but such a file isn't included with the resource
> CD.
> >>> They just have the dp256 version. I thought they would be the same. Any
> >>>
> >> idea
> >>
> >>> where I can find the dp512.h?
> >>>
> >>> On Tue, Jun 22, 2010 at 11:02 PM, jpdi > 40free.fr>> >>>
> >> wrote:
> >>
> >>>> Hello, Joe,
> >>>>
> >>>> If you wrote your program in C language, you have to include the .H
> file
> >>>> corresponding with your CPU, because port addresses aren't the same.
> >>>> I used DP256 before, and included "mc9s12dp256.h" file, now
> >>>> "mc9s12xdp512.h"
> >>>> file.
> >>>> You just have to compile again with the correct addresses, and that
> >>>>
> >> would
> >>
> >>>> be
> >>>> OK.
> >>>>
> >>>> Best regards.
> >>>> Joel
> >>>>
> >>>> -----Message d'origine-----
> >>>> De : 6... <68HC12%40yahoogroups.com> <68HC12%
> 40yahoogroups.com> <68HC12%
> >>>>
> >> 40yahoogroups.com> [mailto:
> >>
> >>>> 6... <68HC12%40yahoogroups.com> <68HC12%
> 40yahoogroups.com> <68HC12%
>
> >>>>
> >> 40yahoogroups.com>] De la part de
> >>
> >>
> >>>> Joe Dee Kay
> >>>> Envoy: mardi 22 juin 2010 22:50
> >>>> : 6... <68HC12%40yahoogroups.com> <68HC12%
> 40yahoogroups.com> <68HC12%
>
> >>>>
> >> 40yahoogroups.com>
> >>
> >>
> >>>> Objet : [68HC12] upgrade question
> >>>>
> >>>>
> >>>> I have two s12compact boards from elmicro, s12dg256 and s12dp512. I
> just
> >>>> got
> >>>> the s12dp512. Are there any changes that need to be made to the
> programs
> >>>> for
> >>>> the s12dp512. I tried running a program that uses the DAC which works
> on
> >>>> the
> >>>> s12dg256 and it doesn't work on the s12dp512.
> >>>>
> >>>> Program details:
> >>>> The program gets a value from the ADC does some calculations and
> outputs
> >>>>
> >> a
> >>
> >>>> value on the DAC. When I measure the output from the DAC I get 0 V.
> Like
> >>>>
> >> I
> >>
> >>>> said the program works on the other processor so I'm thinking maybe
> it's
> >>>>
> >> a
> >>
> >>>> hardware problem but I want to be sure I'm not missing anything.
> >>>>
> >>>> Thanks
> >>>> --
> >>>> Joe Dee
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>
> >>
> >>
> >
> >
> >
> >
>
>

--
Joe Dee


Reply by Petrescu June 25, 20102010-06-25
Hi,
You did not tell us what tools you use. I checked my tools (Freescale
special edition)
and there are huge differences between mc9s12dp256.h and
mc9s12xdp512.h - so
one idea is to download from Freescale the CodeWarrior Special Edition
for HCS12,
install it and check for what you need. Take care - look at the general
block diagram
of the micro - it is possible that some modules to need to be reconfigured.
Yoan
Joe Dee Kay wrote:
> Tried that doesn't work. There are really only 3-4 address changes from the
> other processor. Matter of fact I can take the updated file compile it for
> use with the older board and it works on that board. It just doesn't work on
> the new one.
> I probably just have to send it back.
> Thanks all for your help though
>
> On Thu, Jun 24, 2010 at 12:31 PM, Redd, Emmett R <
> E...@missouristate.edu> wrote:
>
>
>> Build one yourself from the datasheet/user guide information. It would
>> probably take less time than what you have waited for responses on this
>> forum. You might also learn something in the process.
>>
>> Emmett Redd Ph.D. mailto:E...@missouristate.edu
>> Professor (417)836-5221
>> Department of Physics, Astronomy, and Materials Science
>> Missouri State University Fax (417)836-6226
>> 901 SOUTH NATIONAL Lab (417)836-3770
>> SPRINGFIELD, MO 65897 USA Dept (417)836-5131
>>
>> "In theory there is no difference between theory and practice. In practice
>> there is." -- Yogi Berra or Jan van de Snepscheut
>>
>> ________________________________________
>> From: 6... <68HC12%40yahoogroups.com> [
>> 6... <68HC12%40yahoogroups.com>] On Behalf Of Joe Dee
>> Kay [j...@gmail.com ]
>> Sent: Thursday, June 24, 2010 2:14 PM
>> To: 6... <68HC12%40yahoogroups.com>
>> Subject: Re: [68HC12] upgrade question
>> I found a file online put it in and still doesn't work. Any other ideas?
>>
>> On Wed, Jun 23, 2010 at 10:18 AM, Joe Dee Kay >
>> wrote:
>>
>>
>>> I thought about that but such a file isn't included with the resource CD.
>>> They just have the dp256 version. I thought they would be the same. Any
>>>
>> idea
>>
>>> where I can find the dp512.h?
>>>
>>> On Tue, Jun 22, 2010 at 11:02 PM, jpdi >
>>>
>> wrote:
>>
>>>> Hello, Joe,
>>>>
>>>> If you wrote your program in C language, you have to include the .H file
>>>> corresponding with your CPU, because port addresses aren't the same.
>>>> I used DP256 before, and included "mc9s12dp256.h" file, now
>>>> "mc9s12xdp512.h"
>>>> file.
>>>> You just have to compile again with the correct addresses, and that
>>>>
>> would
>>
>>>> be
>>>> OK.
>>>>
>>>> Best regards.
>>>> Joel
>>>>
>>>> -----Message d'origine-----
>>>> De : 6... <68HC12%40yahoogroups.com> <68HC12%
>>>>
>> 40yahoogroups.com> [mailto:
>>
>>>> 6... <68HC12%40yahoogroups.com> <68HC12%
>>>>
>> 40yahoogroups.com>] De la part de
>>
>>
>>>> Joe Dee Kay
>>>> Envoy: mardi 22 juin 2010 22:50
>>>> : 6... <68HC12%40yahoogroups.com> <68HC12%
>>>>
>> 40yahoogroups.com>
>>
>>
>>>> Objet : [68HC12] upgrade question
>>>>
>>>>
>>>> I have two s12compact boards from elmicro, s12dg256 and s12dp512. I just
>>>> got
>>>> the s12dp512. Are there any changes that need to be made to the programs
>>>> for
>>>> the s12dp512. I tried running a program that uses the DAC which works on
>>>> the
>>>> s12dg256 and it doesn't work on the s12dp512.
>>>>
>>>> Program details:
>>>> The program gets a value from the ADC does some calculations and outputs
>>>>
>> a
>>
>>>> value on the DAC. When I measure the output from the DAC I get 0 V. Like
>>>>
>> I
>>
>>>> said the program works on the other processor so I'm thinking maybe it's
>>>>
>> a
>>
>>>> hardware problem but I want to be sure I'm not missing anything.
>>>>
>>>> Thanks
>>>> --
>>>> Joe Dee
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>
>
>
Reply by Joe Dee Kay June 24, 20102010-06-24
Tried that doesn't work. There are really only 3-4 address changes from the
other processor. Matter of fact I can take the updated file compile it for
use with the older board and it works on that board. It just doesn't work on
the new one.
I probably just have to send it back.
Thanks all for your help though

On Thu, Jun 24, 2010 at 12:31 PM, Redd, Emmett R <
E...@missouristate.edu> wrote:

> Build one yourself from the datasheet/user guide information. It would
> probably take less time than what you have waited for responses on this
> forum. You might also learn something in the process.
>
> Emmett Redd Ph.D. mailto:E...@missouristate.edu
> Professor (417)836-5221
> Department of Physics, Astronomy, and Materials Science
> Missouri State University Fax (417)836-6226
> 901 SOUTH NATIONAL Lab (417)836-3770
> SPRINGFIELD, MO 65897 USA Dept (417)836-5131
>
> "In theory there is no difference between theory and practice. In practice
> there is." -- Yogi Berra or Jan van de Snepscheut
>
> ________________________________________
> From: 6... <68HC12%40yahoogroups.com> [
> 6... <68HC12%40yahoogroups.com>] On Behalf Of Joe Dee
> Kay [j...@gmail.com ]
> Sent: Thursday, June 24, 2010 2:14 PM
> To: 6... <68HC12%40yahoogroups.com>
> Subject: Re: [68HC12] upgrade question
> I found a file online put it in and still doesn't work. Any other ideas?
>
> On Wed, Jun 23, 2010 at 10:18 AM, Joe Dee Kay >
> wrote:
>
> > I thought about that but such a file isn't included with the resource CD.
> > They just have the dp256 version. I thought they would be the same. Any
> idea
> > where I can find the dp512.h?
> >
> > On Tue, Jun 22, 2010 at 11:02 PM, jpdi >
> wrote:
> >
> >>
> >>
> >> Hello, Joe,
> >>
> >> If you wrote your program in C language, you have to include the .H file
> >> corresponding with your CPU, because port addresses aren't the same.
> >> I used DP256 before, and included "mc9s12dp256.h" file, now
> >> "mc9s12xdp512.h"
> >> file.
> >> You just have to compile again with the correct addresses, and that
> would
> >> be
> >> OK.
> >>
> >> Best regards.
> >> Joel
> >>
> >> -----Message d'origine-----
> >> De : 6... <68HC12%40yahoogroups.com> <68HC12%
> 40yahoogroups.com> [mailto:
> >> 6... <68HC12%40yahoogroups.com> <68HC12%
> 40yahoogroups.com>] De la part de
>
> >> Joe Dee Kay
> >> Envoy: mardi 22 juin 2010 22:50
> >> : 6... <68HC12%40yahoogroups.com> <68HC12%
> 40yahoogroups.com> >> Objet : [68HC12] upgrade question
> >>
> >>
> >> I have two s12compact boards from elmicro, s12dg256 and s12dp512. I just
> >> got
> >> the s12dp512. Are there any changes that need to be made to the programs
> >> for
> >> the s12dp512. I tried running a program that uses the DAC which works on
> >> the
> >> s12dg256 and it doesn't work on the s12dp512.
> >>
> >> Program details:
> >> The program gets a value from the ADC does some calculations and outputs
> a
> >> value on the DAC. When I measure the output from the DAC I get 0 V. Like
> I
> >> said the program works on the other processor so I'm thinking maybe it's
> a
> >> hardware problem but I want to be sure I'm not missing anything.
> >>
> >> Thanks
> >> --
> >> Joe Dee
> >>
> >>
> >>
> >>
> >>
> >>
>
>

--
Joe Dee


Reply by "Redd, Emmett R" June 24, 20102010-06-24
Build one yourself from the datasheet/user guide information. It would probably take less time than what you have waited for responses on this forum. You might also learn something in the process.

Emmett Redd Ph.D. mailto:E...@missouristate.edu
Professor (417)836-5221
Department of Physics, Astronomy, and Materials Science
Missouri State University Fax (417)836-6226
901 SOUTH NATIONAL Lab (417)836-3770
SPRINGFIELD, MO 65897 USA Dept (417)836-5131

"In theory there is no difference between theory and practice. In practice there is." -- Yogi Berra or Jan van de Snepscheut

________________________________________
From: 6... [6...] On Behalf Of Joe Dee Kay [j...@gmail.com]
Sent: Thursday, June 24, 2010 2:14 PM
To: 6...
Subject: Re: [68HC12] upgrade question

I found a file online put it in and still doesn't work. Any other ideas?

On Wed, Jun 23, 2010 at 10:18 AM, Joe Dee Kay wrote:

> I thought about that but such a file isn't included with the resource CD.
> They just have the dp256 version. I thought they would be the same. Any idea
> where I can find the dp512.h?
>
> On Tue, Jun 22, 2010 at 11:02 PM, jpdi wrote:
>
>> Hello, Joe,
>>
>> If you wrote your program in C language, you have to include the .H file
>> corresponding with your CPU, because port addresses aren't the same.
>> I used DP256 before, and included "mc9s12dp256.h" file, now
>> "mc9s12xdp512.h"
>> file.
>> You just have to compile again with the correct addresses, and that would
>> be
>> OK.
>>
>> Best regards.
>> Joel
>>
>> -----Message d'origine-----
>> De : 6... <68HC12%40yahoogroups.com> [mailto:
>> 6... <68HC12%40yahoogroups.com>] De la part de
>> Joe Dee Kay
>> Envoy: mardi 22 juin 2010 22:50
>> : 6... <68HC12%40yahoogroups.com>
>> Objet : [68HC12] upgrade question
>> I have two s12compact boards from elmicro, s12dg256 and s12dp512. I just
>> got
>> the s12dp512. Are there any changes that need to be made to the programs
>> for
>> the s12dp512. I tried running a program that uses the DAC which works on
>> the
>> s12dg256 and it doesn't work on the s12dp512.
>>
>> Program details:
>> The program gets a value from the ADC does some calculations and outputs a
>> value on the DAC. When I measure the output from the DAC I get 0 V. Like I
>> said the program works on the other processor so I'm thinking maybe it's a
>> hardware problem but I want to be sure I'm not missing anything.
>>
>> Thanks
>> --
>> Joe Dee
>>
>>
>>
>>

Reply by Joe Dee Kay June 24, 20102010-06-24
I found a file online put it in and still doesn't work. Any other ideas?

On Wed, Jun 23, 2010 at 10:18 AM, Joe Dee Kay wrote:

> I thought about that but such a file isn't included with the resource CD.
> They just have the dp256 version. I thought they would be the same. Any idea
> where I can find the dp512.h?
>
> On Tue, Jun 22, 2010 at 11:02 PM, jpdi wrote:
>
>> Hello, Joe,
>>
>> If you wrote your program in C language, you have to include the .H file
>> corresponding with your CPU, because port addresses aren't the same.
>> I used DP256 before, and included "mc9s12dp256.h" file, now
>> "mc9s12xdp512.h"
>> file.
>> You just have to compile again with the correct addresses, and that would
>> be
>> OK.
>>
>> Best regards.
>> Joel
>>
>> -----Message d'origine-----
>> De : 6... <68HC12%40yahoogroups.com> [mailto:
>> 6... <68HC12%40yahoogroups.com>] De la part de
>> Joe Dee Kay
>> Envoy: mardi 22 juin 2010 22:50
>> : 6... <68HC12%40yahoogroups.com>
>> Objet : [68HC12] upgrade question
>> I have two s12compact boards from elmicro, s12dg256 and s12dp512. I just
>> got
>> the s12dp512. Are there any changes that need to be made to the programs
>> for
>> the s12dp512. I tried running a program that uses the DAC which works on
>> the
>> s12dg256 and it doesn't work on the s12dp512.
>>
>> Program details:
>> The program gets a value from the ADC does some calculations and outputs a
>> value on the DAC. When I measure the output from the DAC I get 0 V. Like I
>> said the program works on the other processor so I'm thinking maybe it's a
>> hardware problem but I want to be sure I'm not missing anything.
>>
>> Thanks
>> --
>> Joe Dee
>>
>>
>>
>>
Reply by Joe Dee Kay June 23, 20102010-06-23
I thought about that but such a file isn't included with the resource CD.
They just have the dp256 version. I thought they would be the same. Any idea
where I can find the dp512.h?

On Tue, Jun 22, 2010 at 11:02 PM, jpdi wrote:

> Hello, Joe,
>
> If you wrote your program in C language, you have to include the .H file
> corresponding with your CPU, because port addresses aren't the same.
> I used DP256 before, and included "mc9s12dp256.h" file, now
> "mc9s12xdp512.h"
> file.
> You just have to compile again with the correct addresses, and that would
> be
> OK.
>
> Best regards.
> Joel
>
> -----Message d'origine-----
> De : 6... <68HC12%40yahoogroups.com> [mailto:
> 6... <68HC12%40yahoogroups.com>] De la part de
> Joe Dee Kay
> Envoy: mardi 22 juin 2010 22:50
> : 6... <68HC12%40yahoogroups.com>
> Objet : [68HC12] upgrade question
> I have two s12compact boards from elmicro, s12dg256 and s12dp512. I just
> got
> the s12dp512. Are there any changes that need to be made to the programs
> for
> the s12dp512. I tried running a program that uses the DAC which works on
> the
> s12dg256 and it doesn't work on the s12dp512.
>
> Program details:
> The program gets a value from the ADC does some calculations and outputs a
> value on the DAC. When I measure the output from the DAC I get 0 V. Like I
> said the program works on the other processor so I'm thinking maybe it's a
> hardware problem but I want to be sure I'm not missing anything.
>
> Thanks
> --
> Joe Dee
>
>
>
>
Reply by jpdi June 23, 20102010-06-23
Hello, Joe,

If you wrote your program in C language, you have to include the .H file
corresponding with your CPU, because port addresses aren't the same.
I used DP256 before, and included "mc9s12dp256.h" file, now "mc9s12xdp512.h"
file.
You just have to compile again with the correct addresses, and that would be
OK.

Best regards.
Joel
-----Message d'origine-----
De: 6... [mailto:6...] De la part de
Joe Dee Kay
Envoy mardi 22 juin 2010 22:50
: 6...
Objet: [68HC12] upgrade question

I have two s12compact boards from elmicro, s12dg256 and s12dp512. I just got
the s12dp512. Are there any changes that need to be made to the programs for
the s12dp512. I tried running a program that uses the DAC which works on the
s12dg256 and it doesn't work on the s12dp512.

Program details:
The program gets a value from the ADC does some calculations and outputs a
value on the DAC. When I measure the output from the DAC I get 0 V. Like I
said the program works on the other processor so I'm thinking maybe it's a
hardware problem but I want to be sure I'm not missing anything.

Thanks
--
Joe Dee


Reply by Joe Dee Kay June 22, 20102010-06-22
I have two s12compact boards from elmicro, s12dg256 and s12dp512. I just got
the s12dp512. Are there any changes that need to be made to the programs for
the s12dp512. I tried running a program that uses the DAC which works on the
s12dg256 and it doesn't work on the s12dp512.

Program details:
The program gets a value from the ADC does some calculations and outputs a
value on the DAC. When I measure the output from the DAC I get 0 V. Like I
said the program works on the other processor so I'm thinking maybe it's a
hardware problem but I want to be sure I'm not missing anything.

Thanks
--
Joe Dee