Hi,
Two more sources for examples and comments about good programming
practice for HCS12:
a) Jonathan Valvano page at Texas University ( Google for that)
b) http://gel.sourceforge.net/ GEL is a library created by Stephane
Carrez ( http://www.gnu-m68hc11.org/blog/?q=blog/2)
for HC11 and HC/HCS12. It is written for gcc, but it is good idea to
check some of your routines
with different compiler(s).
Regards,
Yoan
Heart Online wrote: >
>
> i dont have any examples at all ... i found a template online some
> time ago .. i believe its called the haskell template has some
> librarys and codes especificaly writen for the hc12 dose alot of the
> work for you for the atd and pwm ... the lcd on the dragon bored too ..
>
> wish if there are more sample codes onlien for the 68hc12 .. but i
> cant find that much .. unlike other microprocessers like the ateml or
> pics and its frustrating to be honest ..
>
> so far i think the ultrasonic sensor by parllex works with on io pin
> on the dragon boards .. i found a code to have have a ( ultrasonic
> sensor ) functioning over the pwm ports .. but its not what i want
> sicne its not using the timer ports on the micro controller ..
>
> i dont know what to do to be honest ot program it .. been looking at
> the data sheets and stuff its easy to make since of how it works
> but i ronicly i cant write in assembly or c using the code worrior
> enviorment to get it to work .. i'll give it a shot thoguh and then
> post again here.
>
> ________________________________
> From: nielsen.daniel
> >
> To: 6...
Best regards,
Carl Barnes
www.technologicalarts.com
Evaluate * Educate * Embed
HC11 * HC12 * S12 * S12X
--- In 6..., Heart Online wrote: >
> i dont have any examples at all ... i found a template online some time
ago .. i believe its called the haskell template has some librarys and codes
especificaly writen for the hc12 dose alot of the work for you for the atd
and pwm ... the lcd on the dragon bored too ..
>
> wish if there are more sample codes onlien for the 68hc12 .. but i cant find
that much .. unlike other microprocessers like the ateml or pics and its
frustrating to be honest ..
>
>
> so far i think the ultrasonic sensor by parllex works with on io pin on the
dragon boards .. i found a code to have have a ( ultrasonic sensor )
functioning over the pwm ports .. but its not what i want sicne its not using
the timer ports on the micro controller ..
>
> i dont know what to do to be honest ot program it .. been looking at the data
sheets and stuff its easy to make since of how it works
> but i ronicly i cant write in assembly or c using the code worrior
enviorment to get it to work .. i'll give it a shot thoguh and then post
again here.
>
>
>
>
> ________________________________
> From: nielsen.daniel
> To: 6...
> Sent: Wed, November 11, 2009 6:38:31 PM
> Subject: [68HC12] Re: timer ports, ping ultrasonic sensors + dragon bored
12
>
>
> I also have the Learn By Example book and I have a brand new SRF08 sensor. I
need to get the SRF08 interfaced to the Dragon 12 Board through the I2C ports.
Anyone with advice or code?
>
>
>
>
>
>
>
>
>
There are examples for I2C, SPI, A/D, CAN, motor driving, etc. Just change the
device type to 9S12DG256 in the projects, and change port names and bits to
match your hardware configuration. There is an example of driving the SRF04
ultrasonic in the SSIM project, which uses timers. I believe the SRF04 is
similar to the Parallax device.
Best regards,
Carl Barnes
www.technologicalarts.com
Evaluate * Educate * Embed
--- In 6..., Heart Online wrote: >
> i dont have any examples at all ... i found a template online some time
ago .. i believe its called the haskell template has some librarys and codes
especificaly writen for the hc12 dose alot of the work for you for the atd
and pwm ... the lcd on the dragon bored too ..
>
> wish if there are more sample codes onlien for the 68hc12 .. but i cant find
that much .. unlike other microprocessers like the ateml or pics and its
frustrating to be honest ..
>
>
> so far i think the ultrasonic sensor by parllex works with on io pin on the
dragon boards .. i found a code to have have a ( ultrasonic sensor )
functioning over the pwm ports .. but its not what i want sicne its not using
the timer ports on the micro controller ..
>
> i dont know what to do to be honest ot program it .. been looking at the data
sheets and stuff its easy to make since of how it works
> but i ronicly i cant write in assembly or c using the code worrior
enviorment to get it to work .. i'll give it a shot thoguh and then post
again here.
>
>
>
>
> ________________________________
> From: nielsen.daniel
> To: 6...
> Sent: Wed, November 11, 2009 6:38:31 PM
> Subject: [68HC12] Re: timer ports, ping ultrasonic sensors + dragon bored
12
>
>
> I also have the Learn By Example book and I have a brand new SRF08 sensor. I
need to get the SRF08 interfaced to the Dragon 12 Board through the I2C ports.
Anyone with advice or code?
>
>
>
>
>
>
>
>
>
Reply by "nielsen.daniel"●November 11, 20092009-11-11
if you are using code warrior then this site should help with some things...
there is a link called Dragon12 examples. One is even for the SRF08 but it
doesnt quite work for me. good luck to you though
Reply by Heart Online●November 11, 20092009-11-11
i dont have any examples at all ... i found a template online some time
ago .. i believe its called the haskell template has some librarys and codes
especificaly writen for the hc12 dose alot of the work for you for the atd
and pwm ... the lcd on the dragon bored too ..
wish if there are more sample codes onlien for the 68hc12 .. but i cant find
that much .. unlike other microprocessers like the ateml or pics and its
frustrating to be honest ..
so far i think the ultrasonic sensor by parllex works with on io pin on the
dragon boards .. i found a code to have have a ( ultrasonic sensor )
functioning over the pwm ports .. but its not what i want sicne its not using
the timer ports on the micro controller ..
i dont know what to do to be honest ot program it .. been looking at the data
sheets and stuff its easy to make since of how it works
but i ronicly i cant write in assembly or c using the code worrior
enviorment to get it to work .. i'll give it a shot thoguh and then post
again here.
I also have the Learn By Example book and I have a brand new SRF08 sensor. I
need to get the SRF08 interfaced to the Dragon 12 Board through the I2C ports.
Anyone with advice or code?
Reply by "nielsen.daniel"●November 11, 20092009-11-11
I also have the Learn By Example book and I have a brand new SRF08 sensor. I
need to get the SRF08 interfaced to the Dragon 12 Board through the I2C ports.
Anyone with advice or code?
Reply by Heart Online●November 11, 20092009-11-11
hello
am new to the 68hc12 enviorment, but recently i have purchsed adragon bored
plus
from evbplus.com .. and some ultrasonic ping sensors from parllex
i waas wondering if anyone knows how to get the timer ports to work so i can use
asingle io pin on the dragon bored
to get it to work .. or if anyone has any sample codes that they wouldnt mind
shareing.
thank you.