Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC 32 Push Pull output???
18-05-2012, 05:04 PM, (This post was last modified: 18-05-2012, 05:05 PM by KiloOne.)
#1
PIC 32 Push Pull output???
Rookie question.

I have a datasheet that says I need to drive one of its input lines with a Push Pull output from a microprocessor.

I have read the Wiki definition of a Push Pull output and looked at the MX440F256H datasheet but I still can't quite figure what pin on the MX440F256H I can drive it with.

I found one instance in a Google search where a guy says virtually all PIC pins are push pulls. But I am not wanting to trust this.

I also found this statement:
"Here is a neat trick to get a 'push-pull' output from two PORT A pins:

1: define them as analog (ADCON1)
2: TRIS them as outputs."

If I don't believe that either (and I am not sure how to do that anyway) then it looks like I may need external components.

What is the easiest way to do this?

Any hints?

Thanks,
Dale


Attached Files Thumbnail(s)
   
PIC32-Pinguino-OTG Rev C and PIC32-PINGUINO-MICRO rev.B
Win XP SP3
r381 x.3 Big Grin
AND spi.c {} error fixed
AND sdmmc.c pin error fixed
AND diskio.c fixed, MICRO can't use the RTCC
AND analog.c fixed for MICRO
Reply
18-05-2012, 05:55 PM,
#2
RE: PIC 32 Push Pull output???
Depending of the current you need for the load, you can use 2 outputs and reverse the state.
For example when output 1 is high, output 2 is low ( the current flow from 1 to 2 ). When output 2 is high and output 1 is low, the current flow from 2 to 1.

More detail could help us to help you......

JP

(18-05-2012, 05:04 PM)KiloOne Wrote: Rookie question.

I have a datasheet that says I need to drive one of its input lines with a Push Pull output from a microprocessor.

I have read the Wiki definition of a Push Pull output and looked at the MX440F256H datasheet but I still can't quite figure what pin on the MX440F256H I can drive it with.

I found one instance in a Google search where a guy says virtually all PIC pins are push pulls. But I am not wanting to trust this.

I also found this statement:
"Here is a neat trick to get a 'push-pull' output from two PORT A pins:

1: define them as analog (ADCON1)
2: TRIS them as outputs."

If I don't believe that either (and I am not sure how to do that anyway) then it looks like I may need external components.

What is the easiest way to do this?

Any hints?

Thanks,
Dale
Reply
18-05-2012, 06:16 PM,
#3
RE: PIC 32 Push Pull output???
The datasheet says max input current on any pin is +-10ma.

Here is the datasheet, pin 18 ON-OFF needs the push pull.

Thanks,
Dale


Attached Files
.pdf   GPS A2035 Maestro.pdf (Size: 889.55 KB / Downloads: 4)
PIC32-Pinguino-OTG Rev C and PIC32-PINGUINO-MICRO rev.B
Win XP SP3
r381 x.3 Big Grin
AND spi.c {} error fixed
AND sdmmc.c pin error fixed
AND diskio.c fixed, MICRO can't use the RTCC
AND analog.c fixed for MICRO
Reply
18-05-2012, 06:26 PM,
#4
RE: PIC 32 Push Pull output???
I think you can use only one output to drive this pin. The datasheet asks for a push pull output because of the current ( 10 mA is a high current for a cmos output ). But with a PIC you can drive more than 10 mA without any problem.

JP

(18-05-2012, 06:16 PM)KiloOne Wrote: The datasheet says max input current on any pin is +-10ma.

Here is the datasheet, pin 18 ON-OFF needs the push pull.

Thanks,
Dale
Reply
18-05-2012, 07:54 PM, (This post was last modified: 19-05-2012, 01:29 AM by KiloOne.)
#5
RE: PIC 32 Push Pull output???
Wow, getting mixed up with outputs and inputs etc Confused I guess I just hook it up direct to the pin.

Thanks,
Dale
PIC32-Pinguino-OTG Rev C and PIC32-PINGUINO-MICRO rev.B
Win XP SP3
r381 x.3 Big Grin
AND spi.c {} error fixed
AND sdmmc.c pin error fixed
AND diskio.c fixed, MICRO can't use the RTCC
AND analog.c fixed for MICRO
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)