12.07.2015 Views

PIC18F to PIC24F Migration: An Overview - Microchip

PIC18F to PIC24F Migration: An Overview - Microchip

PIC18F to PIC24F Migration: An Overview - Microchip

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NEW <strong>PIC24F</strong> FEATURES• Open-drain inputs, when enabled, are active forboth port and peripheral activities. The I 2 C pinsalready have this function and are unaffected bythe ODCx register setting.• The Parallel Master Port (PMP) inputs are uniquefor the input buffer and can be software selectedas either a TTL or Schmitt Trigger (ST) inputbuffer. This feature is available through thePADCFGx register.• Digital-only pins are 5.5V input <strong>to</strong>lerant and areconvenient for interfacing in<strong>to</strong> 5V components.• Additional pins are available forinterrupt-on-change and open-drainconfigurations.• The PMP is now a separate peripheral and notintegrated in<strong>to</strong> the I/O port functions as was the<strong>PIC18F</strong> Parallel Slave Port (PSP). Please see theproduct data sheet for additional information.• Pull-ups are only available on PORTB in <strong>PIC18F</strong>devices and have a single enable bit <strong>to</strong> control allpull-ups. <strong>PIC24F</strong> supports pull-ups that can beselectively enabled on individual pins.• Interrupt-on-change on <strong>PIC18F</strong> devices is alsoimplemented with a single control bit for threePORTB pins. <strong>PIC24F</strong> interrupt-on-change pinscan all be individually enabled.UNSUPPORTED <strong>PIC18F</strong> FEATURESThe <strong>PIC24F</strong> port architecture does not permit the por<strong>to</strong>utput <strong>to</strong> drive the peripheral input. The user musteither configure the pin as a peripheral input, or por<strong>to</strong>utput, but not both.MIGRATION CONSIDERATIONS• Enabling a digital or analog input or output on<strong>to</strong> apin with a configurable open-drain option will notcause the pull-up <strong>to</strong> be au<strong>to</strong>matically disabled.The pull-up is not disabled if the pin has a configurableopen-drain option. It is important <strong>to</strong> disablethe pull-up in software when it is not needed.• Pins without an analog function can <strong>to</strong>lerate inputvoltages up <strong>to</strong> 5.5V. This can minimize hardwarechanges when migrating from a <strong>PIC18F</strong> device. Ahigher voltage output can be created by adding anexternal pull-up resis<strong>to</strong>r on the pin and writing azero <strong>to</strong> the data latch. Setting the TRIS bit will pullthe output up <strong>to</strong> the supply voltage and clearingthe TRIS bit will output a digital zero.• Drive strength, slew rate and input voltage thresholdscan change au<strong>to</strong>matically when a peripheralis enabled. It is important <strong>to</strong> review the specificdata sheets for differences between devices.• Most of the input buffers for <strong>PIC24F</strong> devices areSchmitt Trigger (ST). Verify that the output levelsof associated components meet the ST inputvoltage thresholds.DS39764A-page 28© 2006 <strong>Microchip</strong> Technology Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!