Use MC9S12DT256 atd pins as digital outputs?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Use MC9S12DT256 atd pins as digital outputs?

1,541 Views
RichTestardi
Senior Contributor II

Hi all,

 

I'm having a bit of trouble navigating the modular documentation for the MC9S12DT256 -- it is very hard to be sure you *can't* do something when you have to search a dozen places, so I thought I'd ask here before I concluded negatively.

 

Is it possible to use the PADxx/ANxx pins on the MC9S12DT256 as digital outputs?  It seems clearly easy to me to use them as digital inputs, but I can't find the "DDR" register to turn them into outputs!

 

Can someone point me to where I should look in the doc, or what register names I should use in the headers?

 

Thanks!!!

 

-- Rich

 

PS I now have StickOS (MCU-Resident Rapid Prototyping and Education Environment from the canyourbadgedothis.com contest!) running on 9S08 and 9S12 (minus the 9S12 pin controller, obviously, which should be done tomorrow) -- it is very exciting to run on the new MCUs!

Labels (1)
0 Kudos
3 Replies

335 Views
Sten
Contributor IV

If you take a look at the table 2.1, Signal Properties Summary, on page 57 of the Device User's Guide, you can clearly see that the PAD[0..15] pins can only be used as digital or analog inputs.

 

Sten

 

 

0 Kudos

335 Views
kef
Specialist I

No you can't use S12D ATD pins as digital outputs. 

But newer S12C, S12XD families allow to use ATD pins as digital outputs.

0 Kudos

335 Views
RichTestardi
Senior Contributor II
Thank you both -- that tells me where to find the answer for future questions I am bound to have and also explains why I (incorrectly) got my hopes up following some threads on the S12C!
0 Kudos