Technical discussions about Freescale Microcontrollers: M68HC11. (Freescale Semiconductor is a Subsidiary of Motorola).
MicroStamp11 Init Problems?!? - purplehazedjimi - Aug 23 8:30:42 2006
Hey All,
The problem I am having with my 6811 involves some form of
initialization, I think. The problem, specifically, is this: when I
remove the microcontroller from the dev board (which also removes
power) my Port A (PA4-PA6) lines stop working. When power is reapplied,
I can verify the code is still running, i.e. all other lines continue
to function properly, but the port A lines mentioned above aren't. If
anyone has any ideas on what the problem might be, I am all eyes.
Thanks,
PurpleHazedJimi
P.S. The microcontorller is from www.technologicalarts.com if that helps

(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )
Re: MicroStamp11 Init Problems?!? - BobG...@aol.com - Aug 23 8:43:35 2006
all other lines continue
to function properly, but the port A lines mentioned above aren't
==========================================
And of course, you ARE initializing the data direction register for port a
as part of the initialization? Which hc11? E0? E9? D0?
[Non-text portions of this message have been removed]

(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )
RE: MicroStamp11 Init Problems?!? - grant hornback - Aug 23 9:33:49 2006
Hey Bob,
Thanks for replying! The hc11 is a DO variety, and I do believe I am initializing the
data direction register, however, I am not sure that I am initializing it properly. If
you don't mind me asking, do I want to initialize them by storing a binary %00111010 into
the ddrd (location $0009)? I want PA4-PA6 to be outputs. Thanks for your time!
-Grant
To: m...@yahoogroups.comFrom: B...@aol.comDate: Wed, 23 Aug 2006 08:41:00 -0400Subject:
Re: [m68HC11] MicroStamp11 Init Problems?!?
all other lines continue to function properly, but the port A lines mentioned above
aren't==========================================And of course, you ARE initializing the
data direction register for port a as part of the initialization? Which hc11? E0? E9?
D0?[Non-text portions of this message have been removed]
_________________________________________________________________
Express yourself with gadgets on Windows Live Spaces
http://discoverspaces.live.com?source=hmtag1&loc=us
[Non-text portions of this message have been removed]

(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )
Re: MicroStamp11 Init Problems?!? - BobG...@aol.com - Aug 23 13:31:12 2006
DDRD is at $0009, but we were talking about porta... is only has 2 ddra bits, and they are
located in PACTL at $0026 (DDRA7 and DDRA3). I got this out of my pink D3 book... hope its
right...
-----Original Message-----
From: g...@hotmail.com
To: m...@yahoogroups.com
Sent: Wed, 23 Aug 2006 9:19 AM
Subject: RE: [m68HC11] MicroStamp11 Init Problems?!?
Hey Bob,
Thanks for replying! The hc11 is a DO variety, and I do believe I am
initializing the data direction register, however, I am not sure that I am
initializing it properly. If you don't mind me asking, do I want to initialize
them by storing a binary %00111010 into the ddrd (location $0009)? I want
PA4-PA6 to be outputs. Thanks for your time!
-Grant
To: m...@yahoogroups.comFrom: B...@aol.comDate: Wed, 23 Aug 2006
08:41:00 -0400Subject: Re: [m68HC11] MicroStamp11 Init Problems?!?
all other lines continue to function properly, but the port A lines mentioned
above aren't==========================================And of course, you ARE
initializing the data direction register for port a as part of the
initialization? Which hc11? E0? E9? D0?[Non-text portions of this message have
been removed]
_________________________________________________________________
Express yourself with gadgets on Windows Live Spaces
http://discoverspaces.live.com?source=hmtag1&loc=us
[Non-text portions of this message have been removed]

(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )
RE: MicroStamp11 Init Problems?!? - Anders Friberg - Aug 23 16:57:35 2006
> If you don't mind me asking, do I want to initialize them by
> storing a binary %00111010 into the ddrd (location $0009)? I
> want PA4-PA6 to be outputs. Thanks for your time!
>
I don't know which pins you actually can configure in the D0 but if you want
PA4-PA6 to be outputs shouldn't you use binary %x111xxxx (not xx111xxx)?
Rightmost bit is for PA0 etc.
Regards,
Anders

(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )
RE: MicroStamp11 Init Problems?!? - grant hornback - Aug 23 21:49:47 2006
As per the HC11 reference manual there is no DDRA3 pin in the pactl register. There is
only a DDRA7 field in the pactl register which, if I am not mistaken, is used for the
controlling of the data direction of the PA7 line only none of the other PA pins. I am
only using the PA4-PA6 lines for digital output to control a LED display. These 3 lines
are output by default or used as control bus lines when in expanded mode. If I remember
correctly, my problem is not isolated to the port A only. I am also using the SPI
interface to control the LED display. I am using the PD5/SS pin for "chip enable" control
of the display. I am pretty sure that this line stops working when power is taken away
and reapplied also. The other two lines(PD3/MOSI and PD4/SCK) used for the actual SPI
communication contiinue to work under all conditions. Maybe this will help understand the
problem better? Any other suggestions?
To: m...@yahoogroups.comFrom: B...@aol.comDate: Wed, 23 Aug 2006 13:24:15 -0400Subject:
Re: [m68HC11] MicroStamp11 Init Problems?!?
DDRD is at $0009, but we were talking about porta... is only has 2 ddra bits, and they
are located in PACTL at $0026 (DDRA7 and DDRA3). I got this out of my pink D3 book... hope
its right... -----Original Message-----From: g...@hotmail.comTo: m...@yahoogroups.comSent:
Wed, 23 Aug 2006 9:19 AMSubject: RE: [m68HC11] MicroStamp11 Init Problems?!?Hey Bob,Thanks
for replying! The hc11 is a DO variety, and I do believe I am initializing the data
direction register, however, I am not sure that I am initializing it properly. If you
don't mind me asking, do I want to initialize them by storing a binary %00111010 into the
ddrd (location $0009)? I want PA4-PA6 to be outputs. Thanks for your time!-GrantTo:
m...@yahoogroups.comFrom: B...@aol.comDate: Wed, 23 Aug 2006 08:41:00 -0400Subject: Re:
[m68HC11] MicroStamp11 Init Problems?!?all other lines continue to function properly, but
the port A lines mentioned above aren't==========================================And of
course, you ARE initializing the data direction register for port a as part of the
initialization? Which hc11? E0? E9? D0?[Non-text portions of this message have been
removed] __________________________________________________________Express yourself with
gadgets on Windows Live Spaceshttp://discoverspaces.live.com?source=hmtag1&loc=us[Non-text
portions of this message have been removed]

(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )
Re: MicroStamp11 Init Problems?!? - BobG...@aol.com - Aug 23 22:30:19 2006
Are you trying to drive the tech arts dkki lcd board, which uses the spi to
send 8 bits into a serial to parallel shift register (pin saving trick)?
[Non-text portions of this message have been removed]

(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )
RE: MicroStamp11 Init Problems?!? - grant hornback - Aug 23 22:43:24 2006
No this is an Agilent LED matrix display purchased through digi-key.
To: m...@yahoogroups.comFrom: B...@aol.comDate: Wed, 23 Aug 2006 22:28:21 -0400Subject:
Re: [m68HC11] MicroStamp11 Init Problems?!?
Are you trying to drive the tech arts dkki lcd board, which uses the spi to send 8 bits
into a serial to parallel shift register (pin saving trick)?[Non-text portions of this
message have been removed]
_________________________________________________________________
Check the weather nationwide with MSN Search: Try it now!
http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG
[Non-text portions of this message have been removed]

(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )
Re: MicroStamp11 Init Problems?!? - BobG...@aol.com - Aug 23 23:02:32 2006
this is an Agilent LED matrix display purchased through digi-key.
===================================================
I use the turbo microstamps a lot, with the icc11 compiler. I have several
at work. Send me your program and I'll see of it looks like its outputting to
the spi, etc
[Non-text portions of this message have been removed]

(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )