Port B bit 0 as output on PA4 soic-20 pkg

cancel
Showing results for 
Search instead for 
Did you mean: 

Port B bit 0 as output on PA4 soic-20 pkg

Jump to solution
544 Views
CustomSarge
Contributor III

I can't make it drive a ULN2003 (~170uA).

Tried 2 chips, both same syndrome.

Works fine as input, with pull up or not.

Same circuitry using bits 0-5 as outputs, 1-5 behave fine.

With 15+ years using 68xxx08 chips, I think I found my 1st errata.

Am I missing something here?  TNX K.Sargent

Labels (1)
Tags (2)
0 Kudos
1 Solution
379 Views
tonyp
Senior Contributor II

I just read the S08PA4 reference which states "PTB0 provide true open drain when operated as output."  Hope this helps.

View solution in original post

0 Kudos
5 Replies
379 Views
tonyp
Senior Contributor II

Are you sure this is not of those few pins (usually 2) that are either input-only or output-only?  PA4 in some MCUs was that case.

0 Kudos
379 Views
CustomSarge
Contributor III

I scoured the datasheet... no reference.

I'm also 3 for 3... put an soic-20 on a test conversion board.

Put same code (as simple as it gets...) Same Result.

PS Pins typed as input only "shouldn't" reset the cpu on enough pullup to make them behave as outputs...

I had to remap b3 to b0 (a luxury of this design) and it ... works just fine.

Somebody at Freescale needs to step up and tell me I'm wrong or WHAT...

0 Kudos
380 Views
tonyp
Senior Contributor II

I just read the S08PA4 reference which states "PTB0 provide true open drain when operated as output."  Hope this helps.

0 Kudos
379 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi Tony

yes, this is correct

pastedImage_0.png

0 Kudos
379 Views
CustomSarge
Contributor III

Howdy, Yup, I stand corrected. It's logged in:

Pg 139 of RM

Pg 34 of RM (as copied)

Pg 7 of DS note #4

Pg 27 of DS note #2

I was working from the port description section and missed it.

I'd appreciate stuffing a note in the output enable section, at the b0 descriptor.

I'll maintain that when I put enough pullup (1k) to drive the ULN2003,

  turning it off (low) reset the processor... odd.

I tried 2.2k, well enough to pull .2mA, but output (as data=1) didn't rise enough.

I saw ~1.5V (Vdd=3.3) when set as output and data=1, not exactly OC behavior,

  with nothing connected to pin.

I'm just observing strange stuff, and have no time to do a real proof.

I just remapped b7<->b0 since my b7 was an input, working fine.

Thanks for the guidance (D+ on my incomplete homework...)  K.Sargent

0 Kudos